Class OOTypeSymbol
- java.lang.Object
-
- de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
-
- de.monticore.symbols.basicsymbols._symboltable.TypeSymbol
-
- de.monticore.symbols.oosymbols._symboltable.OOTypeSymbolTOP
-
- de.monticore.symbols.oosymbols._symboltable.OOTypeSymbol
-
- All Implemented Interfaces:
ICommonBasicSymbolsSymbol,ICommonOOSymbolsSymbol,de.monticore.symboltable.IScopeSpanningSymbol,de.monticore.symboltable.ISymbol
- Direct Known Subclasses:
OOTypeSymbolSurrogateTOP
public class OOTypeSymbol extends OOTypeSymbolTOP
-
-
Field Summary
-
Fields inherited from class de.monticore.symbols.oosymbols._symboltable.OOTypeSymbolTOP
isAbstract, isClass, isEnum, isFinal, isInterface, isPrivate, isProtected, isPublic, isStatic
-
Fields inherited from class de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
accessModifier, astNode, enclosingScope, fullName, name, packageName, spannedScope, stereoinfo, superTypes
-
-
Constructor Summary
Constructors Constructor Description OOTypeSymbol(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFieldSymbol(FieldSymbol f)voidaddMethodSymbol(MethodSymbol m)voidaddTypeVarSymbol(TypeVarSymbol t)de.monticore.symboltable.modifiers.AccessModifiergetAccessModifier()java.util.List<FieldSymbol>getFieldList()get a list of all the fields the type definition can accessjava.util.List<FieldSymbol>getFieldList(java.lang.String fieldname)search in the scope for methods with a specific namejava.util.List<SymTypeExpression>getInterfaceList()java.util.List<MethodSymbol>getMethodList()get a list of all the methods the type definition can accessjava.util.List<MethodSymbol>getMethodList(java.lang.String methodname)search in the scope for methods with a specific nameSymTypeExpressiongetSuperClass()java.util.List<SymTypeExpression>getSuperClassesOnly()java.util.List<TypeVarSymbol>getTypeParameterList()booleanisPresentSuperClass()voidsetIsPrivate(boolean isPrivate)voidsetIsProtected(boolean isProtected)voidsetIsPublic(boolean isPublic)voidsetMethodList(java.util.List<MethodSymbol> methodList)-
Methods inherited from class de.monticore.symbols.oosymbols._symboltable.OOTypeSymbolTOP
accept, accept, accept, accept, determineFullName, determinePackageName, equals, getAstNode, getEnclosingScope, getSpannedScope, getThis, isIsAbstract, isIsClass, isIsEnum, isIsFinal, isIsInterface, isIsPrivate, isIsProtected, isIsPublic, isIsStatic, setEnclosingScope, setIsAbstract, setIsClass, setIsEnum, setIsFinal, setIsInterface, setIsStatic, setSpannedScope, toString
-
Methods inherited from class de.monticore.symbols.basicsymbols._symboltable.TypeSymbol
addFunctionSymbol, addVariableSymbol, getFunctionList, getFunctionList, getVariableList, getVariableList, setFunctionList
-
Methods inherited from class de.monticore.symbols.basicsymbols._symboltable.TypeSymbolTOP
addAllSuperTypes, addAllSuperTypes, addSuperTypes, addSuperTypes, clearSuperTypes, containsAllSuperTypes, containsSuperTypes, equalsSuperTypes, forEachSuperTypes, getFullName, getName, getPackageName, getStereoinfo, getSuperTypes, getSuperTypesList, 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
-
-
-
-
Method Detail
-
setMethodList
public void setMethodList(java.util.List<MethodSymbol> methodList)
-
getMethodList
public java.util.List<MethodSymbol> getMethodList()
get a list of all the methods the type definition can access
-
getMethodList
public java.util.List<MethodSymbol> getMethodList(java.lang.String methodname)
search in the scope for methods with a specific name
-
getFieldList
public java.util.List<FieldSymbol> getFieldList()
get a list of all the fields the type definition can access
-
getFieldList
public java.util.List<FieldSymbol> getFieldList(java.lang.String fieldname)
search in the scope for methods with a specific name
-
getTypeParameterList
public java.util.List<TypeVarSymbol> getTypeParameterList()
- Overrides:
getTypeParameterListin classTypeSymbol
-
addTypeVarSymbol
public void addTypeVarSymbol(TypeVarSymbol t)
- Overrides:
addTypeVarSymbolin classTypeSymbol
-
addFieldSymbol
public void addFieldSymbol(FieldSymbol f)
-
addMethodSymbol
public void addMethodSymbol(MethodSymbol m)
-
isPresentSuperClass
public boolean isPresentSuperClass()
- Overrides:
isPresentSuperClassin classTypeSymbol
-
getSuperClass
public SymTypeExpression getSuperClass()
- Overrides:
getSuperClassin classTypeSymbol
-
getSuperClassesOnly
public java.util.List<SymTypeExpression> getSuperClassesOnly()
- Overrides:
getSuperClassesOnlyin classTypeSymbol
-
getInterfaceList
public java.util.List<SymTypeExpression> getInterfaceList()
- Overrides:
getInterfaceListin classTypeSymbol
-
getAccessModifier
public de.monticore.symboltable.modifiers.AccessModifier getAccessModifier()
- Specified by:
getAccessModifierin interfacede.monticore.symboltable.ISymbol- Overrides:
getAccessModifierin classTypeSymbol
-
setIsPublic
public void setIsPublic(boolean isPublic)
- Overrides:
setIsPublicin classOOTypeSymbolTOP
-
setIsPrivate
public void setIsPrivate(boolean isPrivate)
- Overrides:
setIsPrivatein classOOTypeSymbolTOP
-
setIsProtected
public void setIsProtected(boolean isProtected)
- Overrides:
setIsProtectedin classOOTypeSymbolTOP
-
-