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

public class TypeSymbol extends TypeSymbolTOP
  • Constructor Details

    • TypeSymbol

      public TypeSymbol(String name)
  • Method Details

    • setFunctionList

      public void setFunctionList(List<FunctionSymbol> methodList)
    • getSuperClassesOnly

      public List<SymTypeExpression> getSuperClassesOnly()
    • getInterfaceList

      public List<SymTypeExpression> getInterfaceList()
    • getFunctionList

      public List<FunctionSymbol> getFunctionList()
      get a list of all the methods the type definition can access
    • getFunctionList

      public List<FunctionSymbol> getFunctionList(String methodname)
      search in the scope for methods with a specific name
    • getVariableList

      public List<VariableSymbol> getVariableList()
      get a list of all the fields the type definition can access
    • getVariableList

      public List<VariableSymbol> getVariableList(String fieldname)
      search in the scope for methods with a specific name
    • getTypeParameterList

      public List<TypeVarSymbol> getTypeParameterList()
    • addTypeVarSymbol

      public void addTypeVarSymbol(TypeVarSymbol t)
    • addVariableSymbol

      public void addVariableSymbol(VariableSymbol f)
    • addFunctionSymbol

      public void addFunctionSymbol(FunctionSymbol m)
    • isPresentSuperClass

      public boolean isPresentSuperClass()
    • getSuperClass

      public SymTypeExpression getSuperClass()
    • getAccessModifier

      public de.monticore.symboltable.modifiers.AccessModifier getAccessModifier()
      Specified by:
      getAccessModifier in interface de.monticore.symboltable.ISymbol
      Overrides:
      getAccessModifier in class TypeSymbolTOP