Class TypeSymbol
- 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
-
-
Field Summary
-
Fields inherited from class de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
accessModifier, astNode, enclosingScope, fullName, name, packageName, spannedScope, stereoinfo, superTypes
-
-
Constructor Summary
Constructors Constructor Description TypeSymbol(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFunctionSymbol(FunctionSymbol m)voidaddTypeVarSymbol(TypeVarSymbol t)voidaddVariableSymbol(VariableSymbol f)de.monticore.symboltable.modifiers.AccessModifiergetAccessModifier()java.util.List<FunctionSymbol>getFunctionList()get a list of all the methods the type definition can accessjava.util.List<FunctionSymbol>getFunctionList(java.lang.String methodname)search in the scope for methods with a specific namejava.util.List<SymTypeExpression>getInterfaceList()SymTypeExpressiongetSuperClass()java.util.List<SymTypeExpression>getSuperClassesOnly()java.util.List<TypeVarSymbol>getTypeParameterList()java.util.List<VariableSymbol>getVariableList()get a list of all the fields the type definition can accessjava.util.List<VariableSymbol>getVariableList(java.lang.String fieldname)search in the scope for methods with a specific namebooleanisPresentSuperClass()voidsetFunctionList(java.util.List<FunctionSymbol> methodList)-
Methods inherited from class de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
accept, accept, accept, addAllSuperTypes, addAllSuperTypes, addSuperTypes, addSuperTypes, clearSuperTypes, containsAllSuperTypes, containsSuperTypes, determineFullName, determinePackageName, equals, equalsSuperTypes, forEachSuperTypes, getAstNode, getEnclosingScope, getFullName, getName, getPackageName, getSpannedScope, getStereoinfo, getSuperTypes, getSuperTypesList, getThis, hashCodeSuperTypes, indexOfSuperTypes, isEmptySuperTypes, isPresentAstNode, iteratorSuperTypes, lastIndexOfSuperTypes, listIteratorSuperTypes, listIteratorSuperTypes, parallelStreamSuperTypes, removeAllSuperTypes, removeIfSuperTypes, removeSuperTypes, removeSuperTypes, replaceAllSuperTypes, retainAllSuperTypes, setAccessModifier, setAstNode, setAstNodeAbsent, setEnclosingScope, setFullName, setName, setPackageName, setSpannedScope, setStereoinfo, setSuperTypes, setSuperTypesList, sizeSuperTypes, sortSuperTypes, spliteratorSuperTypes, streamSuperTypes, subListSuperTypes, toArraySuperTypes, toArraySuperTypes, toString
-
-
-
-
Method Detail
-
setFunctionList
public void setFunctionList(java.util.List<FunctionSymbol> methodList)
-
getSuperClassesOnly
public java.util.List<SymTypeExpression> getSuperClassesOnly()
-
getInterfaceList
public java.util.List<SymTypeExpression> getInterfaceList()
-
getFunctionList
public java.util.List<FunctionSymbol> getFunctionList()
get a list of all the methods the type definition can access
-
getFunctionList
public java.util.List<FunctionSymbol> getFunctionList(java.lang.String methodname)
search in the scope for methods with a specific name
-
getVariableList
public java.util.List<VariableSymbol> getVariableList()
get a list of all the fields the type definition can access
-
getVariableList
public java.util.List<VariableSymbol> getVariableList(java.lang.String fieldname)
search in the scope for methods with a specific name
-
getTypeParameterList
public java.util.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:
getAccessModifierin interfacede.monticore.symboltable.ISymbol- Overrides:
getAccessModifierin classTypeSymbolTOP
-
-