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 java.lang.Object implements ICommonBasicSymbolsSymbol, de.monticore.symboltable.IScopeSpanningSymbol
-
-
Field Summary
Fields Modifier and Type Field Description protected de.monticore.symboltable.modifiers.AccessModifieraccessModifierprotected java.util.Optional<ASTType>astNodeprotected IBasicSymbolsScopeenclosingScopeprotected java.lang.StringfullNameprotected java.lang.Stringnameprotected java.lang.StringpackageNameprotected IBasicSymbolsScopespannedScopeprotected java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>>stereoinfoprotected java.util.List<SymTypeExpression>superTypes
-
Constructor Summary
Constructors Constructor Description TypeSymbolTOP(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MCBasicsTraverser visitor)voidaccept(BasicSymbolsTraverser visitor)voidaccept(de.monticore.visitor.ITraverser visitor)booleanaddAllSuperTypes(int index, java.util.Collection<? extends SymTypeExpression> collection)booleanaddAllSuperTypes(java.util.Collection<? extends SymTypeExpression> collection)voidaddSuperTypes(int index, SymTypeExpression element)booleanaddSuperTypes(SymTypeExpression element)voidclearSuperTypes()booleancontainsAllSuperTypes(java.util.Collection<?> collection)booleancontainsSuperTypes(java.lang.Object element)protected java.lang.StringdetermineFullName()protected java.lang.StringdeterminePackageName()booleanequals(java.lang.Object obj)booleanequalsSuperTypes(java.lang.Object o)voidforEachSuperTypes(java.util.function.Consumer<? super SymTypeExpression> action)de.monticore.symboltable.modifiers.AccessModifiergetAccessModifier()ASTTypegetAstNode()IBasicSymbolsScopegetEnclosingScope()java.lang.StringgetFullName()java.lang.StringgetName()java.lang.StringgetPackageName()IBasicSymbolsScopegetSpannedScope()java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>>getStereoinfo()SymTypeExpressiongetSuperTypes(int index)java.util.List<SymTypeExpression>getSuperTypesList()protected TypeSymbolgetThis()inthashCodeSuperTypes()intindexOfSuperTypes(java.lang.Object element)booleanisEmptySuperTypes()booleanisPresentAstNode()java.util.Iterator<SymTypeExpression>iteratorSuperTypes()intlastIndexOfSuperTypes(java.lang.Object element)java.util.ListIterator<SymTypeExpression>listIteratorSuperTypes()java.util.ListIterator<SymTypeExpression>listIteratorSuperTypes(int index)java.util.stream.Stream<SymTypeExpression>parallelStreamSuperTypes()booleanremoveAllSuperTypes(java.util.Collection<?> collection)booleanremoveIfSuperTypes(java.util.function.Predicate<? super SymTypeExpression> filter)SymTypeExpressionremoveSuperTypes(int index)booleanremoveSuperTypes(java.lang.Object element)voidreplaceAllSuperTypes(java.util.function.UnaryOperator<SymTypeExpression> operator)booleanretainAllSuperTypes(java.util.Collection<?> collection)voidsetAccessModifier(de.monticore.symboltable.modifiers.AccessModifier accessModifier)voidsetAstNode(ASTType astNode)voidsetAstNodeAbsent()voidsetEnclosingScope(IBasicSymbolsScope enclosingScope)voidsetFullName(java.lang.String fullName)voidsetName(java.lang.String name)voidsetPackageName(java.lang.String packageName)voidsetSpannedScope(IBasicSymbolsScope scope)voidsetStereoinfo(java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>> stereoinfo)SymTypeExpressionsetSuperTypes(int index, SymTypeExpression element)voidsetSuperTypesList(java.util.List<SymTypeExpression> superTypes)intsizeSuperTypes()voidsortSuperTypes(java.util.Comparator<? super SymTypeExpression> comparator)java.util.Spliterator<SymTypeExpression>spliteratorSuperTypes()java.util.stream.Stream<SymTypeExpression>streamSuperTypes()java.util.List<SymTypeExpression>subListSuperTypes(int start, int end)java.lang.Object[]toArraySuperTypes()SymTypeExpression[]toArraySuperTypes(SymTypeExpression[] array)java.lang.StringtoString()
-
-
-
Field Detail
-
name
protected java.lang.String name
-
enclosingScope
protected IBasicSymbolsScope enclosingScope
-
astNode
protected java.util.Optional<ASTType> astNode
-
accessModifier
protected de.monticore.symboltable.modifiers.AccessModifier accessModifier
-
stereoinfo
protected java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>> stereoinfo
-
fullName
protected java.lang.String fullName
-
packageName
protected java.lang.String packageName
-
superTypes
protected java.util.List<SymTypeExpression> superTypes
-
spannedScope
protected IBasicSymbolsScope spannedScope
-
-
Method Detail
-
containsSuperTypes
public boolean containsSuperTypes(java.lang.Object element)
-
containsAllSuperTypes
public boolean containsAllSuperTypes(java.util.Collection<?> collection)
-
isEmptySuperTypes
public boolean isEmptySuperTypes()
-
iteratorSuperTypes
public java.util.Iterator<SymTypeExpression> iteratorSuperTypes()
-
sizeSuperTypes
public int sizeSuperTypes()
-
toArraySuperTypes
public SymTypeExpression[] toArraySuperTypes(SymTypeExpression[] array)
-
toArraySuperTypes
public java.lang.Object[] toArraySuperTypes()
-
spliteratorSuperTypes
public java.util.Spliterator<SymTypeExpression> spliteratorSuperTypes()
-
streamSuperTypes
public java.util.stream.Stream<SymTypeExpression> streamSuperTypes()
-
parallelStreamSuperTypes
public java.util.stream.Stream<SymTypeExpression> parallelStreamSuperTypes()
-
getSuperTypes
public SymTypeExpression getSuperTypes(int index)
-
indexOfSuperTypes
public int indexOfSuperTypes(java.lang.Object element)
-
lastIndexOfSuperTypes
public int lastIndexOfSuperTypes(java.lang.Object element)
-
equalsSuperTypes
public boolean equalsSuperTypes(java.lang.Object o)
-
hashCodeSuperTypes
public int hashCodeSuperTypes()
-
listIteratorSuperTypes
public java.util.ListIterator<SymTypeExpression> listIteratorSuperTypes()
-
listIteratorSuperTypes
public java.util.ListIterator<SymTypeExpression> listIteratorSuperTypes(int index)
-
subListSuperTypes
public java.util.List<SymTypeExpression> subListSuperTypes(int start, int end)
-
getSuperTypesList
public java.util.List<SymTypeExpression> getSuperTypesList()
-
clearSuperTypes
public void clearSuperTypes()
-
addSuperTypes
public boolean addSuperTypes(SymTypeExpression element)
-
addAllSuperTypes
public boolean addAllSuperTypes(java.util.Collection<? extends SymTypeExpression> collection)
-
removeSuperTypes
public boolean removeSuperTypes(java.lang.Object element)
-
removeAllSuperTypes
public boolean removeAllSuperTypes(java.util.Collection<?> collection)
-
retainAllSuperTypes
public boolean retainAllSuperTypes(java.util.Collection<?> collection)
-
removeIfSuperTypes
public boolean removeIfSuperTypes(java.util.function.Predicate<? super SymTypeExpression> filter)
-
forEachSuperTypes
public void forEachSuperTypes(java.util.function.Consumer<? super SymTypeExpression> action)
-
addSuperTypes
public void addSuperTypes(int index, SymTypeExpression element)
-
addAllSuperTypes
public boolean addAllSuperTypes(int index, java.util.Collection<? extends SymTypeExpression> collection)
-
removeSuperTypes
public SymTypeExpression removeSuperTypes(int index)
-
setSuperTypes
public SymTypeExpression setSuperTypes(int index, SymTypeExpression element)
-
replaceAllSuperTypes
public void replaceAllSuperTypes(java.util.function.UnaryOperator<SymTypeExpression> operator)
-
sortSuperTypes
public void sortSuperTypes(java.util.Comparator<? super SymTypeExpression> comparator)
-
setSuperTypesList
public void setSuperTypesList(java.util.List<SymTypeExpression> superTypes)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacede.monticore.symboltable.ISymbol
-
setName
public void setName(java.lang.String name)
-
getEnclosingScope
public IBasicSymbolsScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceICommonBasicSymbolsSymbol- Specified by:
getEnclosingScopein interfacede.monticore.symboltable.ISymbol
-
setEnclosingScope
public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceICommonBasicSymbolsSymbol
-
getAstNode
public ASTType getAstNode()
- Specified by:
getAstNodein interfacede.monticore.symboltable.ISymbol
-
isPresentAstNode
public boolean isPresentAstNode()
- Specified by:
isPresentAstNodein interfacede.monticore.symboltable.ISymbol
-
setAstNode
public void setAstNode(ASTType astNode)
-
setAstNodeAbsent
public void setAstNodeAbsent()
-
getAccessModifier
public de.monticore.symboltable.modifiers.AccessModifier getAccessModifier()
- Specified by:
getAccessModifierin interfacede.monticore.symboltable.ISymbol
-
setAccessModifier
public void setAccessModifier(de.monticore.symboltable.modifiers.AccessModifier accessModifier)
- Specified by:
setAccessModifierin interfacede.monticore.symboltable.ISymbol
-
getStereoinfo
public java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>> getStereoinfo()
- Specified by:
getStereoinfoin interfacede.monticore.symboltable.ISymbol
-
setStereoinfo
public void setStereoinfo(java.util.Map<de.monticore.symboltable.stereotypes.IStereotypeReference,java.util.Optional<de.monticore.interpreter.Value>> stereoinfo)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getThis
protected TypeSymbol getThis()
-
setFullName
public void setFullName(java.lang.String fullName)
-
getFullName
public java.lang.String getFullName()
- Specified by:
getFullNamein interfacede.monticore.symboltable.ISymbol
-
setPackageName
public void setPackageName(java.lang.String packageName)
-
getPackageName
public java.lang.String getPackageName()
- Specified by:
getPackageNamein interfacede.monticore.symboltable.ISymbol
-
accept
public void accept(BasicSymbolsTraverser visitor)
- Specified by:
acceptin interfaceICommonBasicSymbolsSymbol
-
accept
public void accept(MCBasicsTraverser visitor)
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
- Specified by:
acceptin interfacede.monticore.symboltable.ISymbol
-
determinePackageName
protected java.lang.String determinePackageName()
-
determineFullName
protected java.lang.String determineFullName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSpannedScope
public IBasicSymbolsScope getSpannedScope()
- Specified by:
getSpannedScopein interfacede.monticore.symboltable.IScopeSpanningSymbol
-
setSpannedScope
public void setSpannedScope(IBasicSymbolsScope scope)
-
-