Package de.monticore.symboltable
Class SymbolWithScopeOfUnknownKind
java.lang.Object
de.monticore.symboltable.SymbolWithScopeOfUnknownKind
- All Implemented Interfaces:
IScopeSpanningSymbol,ISymbol
Represents a symbol of a kind unknown to a language.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessModifierprotected IScopeprotected Stringprotected Stringprotected Stringprotected IScopeprotected Map<IStereotypeReference, Optional<Value>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ITraverser visitor) protected Stringprotected StringThis method always fails since an unknown symbol may not have a related ASTNode.getName()Returns the stereotypes of this symbol, associated with values for them if present.
The keys of the map referenceIStereotypeSymbols, while the values reference the optionally associated stereovalue.booleanThis method always returnsfalsesince an unknown symbol may not have a related ASTNode.voidsetAccessModifier(AccessModifier accessModifier) Sets the access modifier, such as public or protected in Java.voidsetEnclosingScope(IScope enclosingScope) voidsetFullName(String fullName) voidvoidsetPackageName(String packageName) voidsetSpannedScope(IScope scope) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.symboltable.ISymbol
getSourcePosition
-
Field Details
-
name
-
enclosingScope
-
accessModifier
-
stereoinfo
-
fullName
-
packageName
-
spannedScope
-
-
Constructor Details
-
SymbolWithScopeOfUnknownKind
-
-
Method Details
-
getName
-
setName
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfaceISymbol- Returns:
- Returns the enclosing scope of this symbol. Symbol classes implementing the
ISymbolinterface override this method and refine the return type to the scASTope classes of the language.
-
setEnclosingScope
-
getAstNode
This method always fails since an unknown symbol may not have a related ASTNode.- Specified by:
getAstNodein interfaceISymbol
-
isPresentAstNode
public boolean isPresentAstNode()This method always returnsfalsesince an unknown symbol may not have a related ASTNode.- Specified by:
isPresentAstNodein interfaceISymbol
-
getAccessModifier
- Specified by:
getAccessModifierin interfaceISymbol- Returns:
- the access modifier, such as public or protected in Java. By default, the
AccessModifier.ALL_INCLUSIONis returned, which indicates that the symbol does not have any access modifier. Note that this is not the same as the (implicit) access modifierBasicAccessModifier.PACKAGE_LOCALof Java.
-
setAccessModifier
Description copied from interface:ISymbolSets the access modifier, such as public or protected in Java.- Specified by:
setAccessModifierin interfaceISymbol- Parameters:
accessModifier- the access modifier
-
setFullName
-
getFullName
- Specified by:
getFullNamein interfaceISymbol- Returns:
- the package of this symbol. All symbols within an artifact usually have the same
package name. For example, the state chart
p.q.SCand its containing states all have the packagep.q. - See Also:
-
setPackageName
-
getPackageName
- Specified by:
getPackageNamein interfaceISymbol- Returns:
- the package of this symbol. The package name of all symbols within an artifact is
usually the same. For example, the package name of a state chart
p.q.SCand its containing statesare the same, i.e.,p.q. - See Also:
-
getStereoinfo
Description copied from interface:ISymbolReturns the stereotypes of this symbol, associated with values for them if present.
The keys of the map referenceIStereotypeSymbols, while the values reference the optionally associated stereovalue.- Specified by:
getStereoinfoin interfaceISymbol
-
accept
-
determinePackageName
-
determineFullName
-
getSpannedScope
- Specified by:
getSpannedScopein interfaceIScopeSpanningSymbol- Returns:
- the scope spanned by this symbol.
-
setSpannedScope
-