Class TypeSymbolTOP

java.lang.Object
de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
All Implemented Interfaces:
ICommonBasicSymbolsSymbol, de.monticore.symboltable.IScopeSpanningSymbol, de.monticore.symboltable.ISymbol
Direct Known Subclasses:
TypeSymbol

public abstract class TypeSymbolTOP extends Object implements ICommonBasicSymbolsSymbol, de.monticore.symboltable.IScopeSpanningSymbol
  • Field Details

    • name

      protected String name
    • enclosingScope

      protected IBasicSymbolsScope enclosingScope
    • astNode

      protected Optional<ASTType> astNode
    • accessModifier

      protected de.monticore.symboltable.modifiers.AccessModifier accessModifier
    • stereoinfo

      protected Map<de.monticore.symboltable.stereotypes.IStereotypeReference,Optional<de.monticore.values.MCValue>> stereoinfo
    • fullName

      protected String fullName
    • packageName

      protected String packageName
    • superTypes

      protected List<SymTypeExpression> superTypes
    • spannedScope

      protected IBasicSymbolsScope spannedScope
  • Constructor Details

    • TypeSymbolTOP

      public TypeSymbolTOP(String name)
  • Method Details

    • containsSuperTypes

      public boolean containsSuperTypes(Object element)
    • containsAllSuperTypes

      public boolean containsAllSuperTypes(Collection<?> collection)
    • isEmptySuperTypes

      public boolean isEmptySuperTypes()
    • iteratorSuperTypes

      public Iterator<SymTypeExpression> iteratorSuperTypes()
    • sizeSuperTypes

      public int sizeSuperTypes()
    • toArraySuperTypes

      public SymTypeExpression[] toArraySuperTypes(SymTypeExpression[] array)
    • toArraySuperTypes

      public Object[] toArraySuperTypes()
    • spliteratorSuperTypes

      public Spliterator<SymTypeExpression> spliteratorSuperTypes()
    • streamSuperTypes

      public Stream<SymTypeExpression> streamSuperTypes()
    • parallelStreamSuperTypes

      public Stream<SymTypeExpression> parallelStreamSuperTypes()
    • getSuperTypes

      public SymTypeExpression getSuperTypes(int index)
    • indexOfSuperTypes

      public int indexOfSuperTypes(Object element)
    • lastIndexOfSuperTypes

      public int lastIndexOfSuperTypes(Object element)
    • equalsSuperTypes

      public boolean equalsSuperTypes(Object o)
    • hashCodeSuperTypes

      public int hashCodeSuperTypes()
    • listIteratorSuperTypes

      public ListIterator<SymTypeExpression> listIteratorSuperTypes()
    • listIteratorSuperTypes

      public ListIterator<SymTypeExpression> listIteratorSuperTypes(int index)
    • subListSuperTypes

      public List<SymTypeExpression> subListSuperTypes(int start, int end)
    • getSuperTypesList

      public List<SymTypeExpression> getSuperTypesList()
    • clearSuperTypes

      public void clearSuperTypes()
    • addSuperTypes

      public boolean addSuperTypes(SymTypeExpression element)
    • addAllSuperTypes

      public boolean addAllSuperTypes(Collection<? extends SymTypeExpression> collection)
    • removeSuperTypes

      public boolean removeSuperTypes(Object element)
    • removeAllSuperTypes

      public boolean removeAllSuperTypes(Collection<?> collection)
    • retainAllSuperTypes

      public boolean retainAllSuperTypes(Collection<?> collection)
    • removeIfSuperTypes

      public boolean removeIfSuperTypes(Predicate<? super SymTypeExpression> filter)
    • forEachSuperTypes

      public void forEachSuperTypes(Consumer<? super SymTypeExpression> action)
    • addSuperTypes

      public void addSuperTypes(int index, SymTypeExpression element)
    • addAllSuperTypes

      public boolean addAllSuperTypes(int index, Collection<? extends SymTypeExpression> collection)
    • removeSuperTypes

      public SymTypeExpression removeSuperTypes(int index)
    • setSuperTypes

      public SymTypeExpression setSuperTypes(int index, SymTypeExpression element)
    • replaceAllSuperTypes

      public void replaceAllSuperTypes(UnaryOperator<SymTypeExpression> operator)
    • sortSuperTypes

      public void sortSuperTypes(Comparator<? super SymTypeExpression> comparator)
    • setSuperTypesList

      public void setSuperTypesList(List<SymTypeExpression> superTypes)
    • getName

      public String getName()
      Specified by:
      getName in interface de.monticore.symboltable.ISymbol
    • setName

      public void setName(String name)
    • getEnclosingScope

      public IBasicSymbolsScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface ICommonBasicSymbolsSymbol
      Specified by:
      getEnclosingScope in interface de.monticore.symboltable.ISymbol
    • setEnclosingScope

      public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ICommonBasicSymbolsSymbol
    • getAstNode

      public ASTType getAstNode()
      Specified by:
      getAstNode in interface de.monticore.symboltable.ISymbol
    • isPresentAstNode

      public boolean isPresentAstNode()
      Specified by:
      isPresentAstNode in interface de.monticore.symboltable.ISymbol
    • setAstNode

      public void setAstNode(ASTType astNode)
    • setAstNodeAbsent

      public void setAstNodeAbsent()
    • getAccessModifier

      public de.monticore.symboltable.modifiers.AccessModifier getAccessModifier()
      Specified by:
      getAccessModifier in interface de.monticore.symboltable.ISymbol
    • setAccessModifier

      public void setAccessModifier(de.monticore.symboltable.modifiers.AccessModifier accessModifier)
      Specified by:
      setAccessModifier in interface de.monticore.symboltable.ISymbol
    • getStereoinfo

      public Map<de.monticore.symboltable.stereotypes.IStereotypeReference,Optional<de.monticore.values.MCValue>> getStereoinfo()
      Specified by:
      getStereoinfo in interface de.monticore.symboltable.ISymbol
    • setStereoinfo

      public void setStereoinfo(Map<de.monticore.symboltable.stereotypes.IStereotypeReference,Optional<de.monticore.values.MCValue>> stereoinfo)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getThis

      protected TypeSymbol getThis()
    • setFullName

      public void setFullName(String fullName)
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface de.monticore.symboltable.ISymbol
    • setPackageName

      public void setPackageName(String packageName)
    • getPackageName

      public String getPackageName()
      Specified by:
      getPackageName in interface de.monticore.symboltable.ISymbol
    • accept

      public void accept(BasicSymbolsTraverser visitor)
      Specified by:
      accept in interface ICommonBasicSymbolsSymbol
    • accept

      public void accept(MCBasicsTraverser visitor)
    • accept

      public void accept(de.monticore.visitor.ITraverser visitor)
      Specified by:
      accept in interface de.monticore.symboltable.ISymbol
    • determinePackageName

      protected String determinePackageName()
    • determineFullName

      protected String determineFullName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSpannedScope

      public IBasicSymbolsScope getSpannedScope()
      Specified by:
      getSpannedScope in interface de.monticore.symboltable.IScopeSpanningSymbol
    • setSpannedScope

      public void setSpannedScope(IBasicSymbolsScope scope)