Class MCCommonScope
- java.lang.Object
-
- de.monticore.mccommon._symboltable.MCCommonScope
-
- All Implemented Interfaces:
ICardinalityScope,ICompletenessScope,IExpressionsBasisScope,IMCCommonLiteralsScope,IMCLiteralsBasisScope,IMCBasicsScope,IMCCommonScope,de.monticore.symboltable.IScope,IUMLModifierScope,IUMLStereotypeScope
- Direct Known Subclasses:
MCCommonArtifactScope,MCCommonGlobalScope
public class MCCommonScope extends java.lang.Object implements IMCCommonScope
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<de.monticore.ast.ASTNode>astNodeprotected IMCCommonScopeenclosingScopeprotected booleanexportingSymbolsprotected java.util.Optional<java.lang.String>nameprotected booleanorderedprotected booleanshadowingprotected java.util.Optional<de.monticore.symboltable.IScopeSpanningSymbol>spanningSymbolprotected java.util.List<IMCCommonScope>subScopesprotected com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind>unknownSymbolsprotected booleanunknownSymbolsAlreadyResolved
-
Constructor Summary
Constructors Constructor Description MCCommonScope()MCCommonScope(boolean shadowing)MCCommonScope(IMCCommonScope enclosingScope)MCCommonScope(IMCCommonScope enclosingScope, boolean shadowing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(CardinalityTraverser visitor)voidaccept(CompletenessTraverser visitor)voidaccept(ExpressionsBasisTraverser visitor)voidaccept(MCCommonLiteralsTraverser visitor)voidaccept(MCLiteralsBasisTraverser visitor)voidaccept(MCBasicsTraverser visitor)voidaccept(MCCommonTraverser visitor)voidaccept(UMLModifierTraverser visitor)voidaccept(UMLStereotypeTraverser visitor)voidaccept(de.monticore.visitor.ITraverser visitor)voidadd(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)voidaddSubScope(ICardinalityScope subScope)voidaddSubScope(ICompletenessScope subScope)voidaddSubScope(IExpressionsBasisScope subScope)voidaddSubScope(IMCCommonLiteralsScope subScope)voidaddSubScope(IMCLiteralsBasisScope subScope)voidaddSubScope(IMCBasicsScope subScope)voidaddSubScope(IMCCommonScope subScope)voidaddSubScope(IUMLModifierScope subScope)voidaddSubScope(IUMLStereotypeScope subScope)de.monticore.ast.ASTNodegetAstNode()IMCCommonScopegetEnclosingScope()java.lang.StringgetName()de.monticore.symboltable.IScopeSpanningSymbolgetSpanningSymbol()java.util.List<IMCCommonScope>getSubScopes()com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind>getUnknownSymbols()booleanisExportingSymbols()booleanisOrdered()booleanisPresentAstNode()booleanisPresentName()booleanisPresentSpanningSymbol()booleanisShadowing()booleanisUnknownSymbolsAlreadyResolved()voidremove(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)voidremoveSubScope(ICardinalityScope subScope)voidremoveSubScope(ICompletenessScope subScope)voidremoveSubScope(IExpressionsBasisScope subScope)voidremoveSubScope(IMCCommonLiteralsScope subScope)voidremoveSubScope(IMCLiteralsBasisScope subScope)voidremoveSubScope(IMCBasicsScope subScope)voidremoveSubScope(IMCCommonScope subScope)voidremoveSubScope(IUMLModifierScope subScope)voidremoveSubScope(IUMLStereotypeScope subScope)voidsetAstNode(de.monticore.ast.ASTNode astNode)voidsetAstNodeAbsent()voidsetEnclosingScope(ICardinalityScope newEnclosingScope)voidsetEnclosingScope(ICompletenessScope newEnclosingScope)voidsetEnclosingScope(IExpressionsBasisScope newEnclosingScope)voidsetEnclosingScope(IMCCommonLiteralsScope newEnclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope newEnclosingScope)voidsetEnclosingScope(IMCBasicsScope newEnclosingScope)voidsetEnclosingScope(IMCCommonScope enclosingScope)voidsetEnclosingScope(IUMLModifierScope newEnclosingScope)voidsetEnclosingScope(IUMLStereotypeScope newEnclosingScope)voidsetExportingSymbols(boolean exportingSymbols)voidsetName(java.lang.String name)voidsetNameAbsent()voidsetOrdered(boolean ordered)voidsetShadowing(boolean shadowing)voidsetSpanningSymbol(de.monticore.symboltable.IScopeSpanningSymbol spanningSymbol)voidsetSpanningSymbolAbsent()voidsetSubScopes(java.util.List<IMCCommonScope> subScopes)voidsetUnknownSymbolsAlreadyResolved(boolean unknownSymbolsAlreadyResolved)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.monticore.mccommon._symboltable.IMCCommonScope
getSymbolsSize
-
-
-
-
Field Detail
-
unknownSymbols
protected com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> unknownSymbols
-
unknownSymbolsAlreadyResolved
protected boolean unknownSymbolsAlreadyResolved
-
enclosingScope
protected IMCCommonScope enclosingScope
-
spanningSymbol
protected java.util.Optional<de.monticore.symboltable.IScopeSpanningSymbol> spanningSymbol
-
shadowing
protected boolean shadowing
-
exportingSymbols
protected boolean exportingSymbols
-
ordered
protected boolean ordered
-
name
protected java.util.Optional<java.lang.String> name
-
astNode
protected java.util.Optional<de.monticore.ast.ASTNode> astNode
-
subScopes
protected java.util.List<IMCCommonScope> subScopes
-
-
Constructor Detail
-
MCCommonScope
public MCCommonScope()
-
MCCommonScope
public MCCommonScope(boolean shadowing)
-
MCCommonScope
public MCCommonScope(IMCCommonScope enclosingScope)
-
MCCommonScope
public MCCommonScope(IMCCommonScope enclosingScope, boolean shadowing)
-
-
Method Detail
-
add
public void add(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)
- Specified by:
addin interfacede.monticore.symboltable.IScope
-
remove
public void remove(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)
- Specified by:
removein interfacede.monticore.symboltable.IScope
-
getUnknownSymbols
public com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> getUnknownSymbols()
- Specified by:
getUnknownSymbolsin interfacede.monticore.symboltable.IScope
-
isUnknownSymbolsAlreadyResolved
public boolean isUnknownSymbolsAlreadyResolved()
-
setUnknownSymbolsAlreadyResolved
public void setUnknownSymbolsAlreadyResolved(boolean unknownSymbolsAlreadyResolved)
-
getEnclosingScope
public IMCCommonScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceICardinalityScope- Specified by:
getEnclosingScopein interfaceICompletenessScope- Specified by:
getEnclosingScopein interfaceIExpressionsBasisScope- Specified by:
getEnclosingScopein interfaceIMCBasicsScope- Specified by:
getEnclosingScopein interfaceIMCCommonLiteralsScope- Specified by:
getEnclosingScopein interfaceIMCCommonScope- Specified by:
getEnclosingScopein interfaceIMCLiteralsBasisScope- Specified by:
getEnclosingScopein interfacede.monticore.symboltable.IScope- Specified by:
getEnclosingScopein interfaceIUMLModifierScope- Specified by:
getEnclosingScopein interfaceIUMLStereotypeScope
-
setEnclosingScope
public void setEnclosingScope(IMCCommonScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceIMCCommonScope
-
getSpanningSymbol
public de.monticore.symboltable.IScopeSpanningSymbol getSpanningSymbol()
- Specified by:
getSpanningSymbolin interfacede.monticore.symboltable.IScope
-
isPresentSpanningSymbol
public boolean isPresentSpanningSymbol()
- Specified by:
isPresentSpanningSymbolin interfacede.monticore.symboltable.IScope
-
setSpanningSymbol
public void setSpanningSymbol(de.monticore.symboltable.IScopeSpanningSymbol spanningSymbol)
- Specified by:
setSpanningSymbolin interfacede.monticore.symboltable.IScope
-
setSpanningSymbolAbsent
public void setSpanningSymbolAbsent()
- Specified by:
setSpanningSymbolAbsentin interfacede.monticore.symboltable.IScope
-
isShadowing
public boolean isShadowing()
- Specified by:
isShadowingin interfacede.monticore.symboltable.IScope
-
setShadowing
public void setShadowing(boolean shadowing)
- Specified by:
setShadowingin interfacede.monticore.symboltable.IScope
-
isExportingSymbols
public boolean isExportingSymbols()
- Specified by:
isExportingSymbolsin interfacede.monticore.symboltable.IScope
-
setExportingSymbols
public void setExportingSymbols(boolean exportingSymbols)
- Specified by:
setExportingSymbolsin interfacede.monticore.symboltable.IScope
-
isOrdered
public boolean isOrdered()
- Specified by:
isOrderedin interfacede.monticore.symboltable.IScope
-
setOrdered
public void setOrdered(boolean ordered)
- Specified by:
setOrderedin interfacede.monticore.symboltable.IScope
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacede.monticore.symboltable.IScope
-
isPresentName
public boolean isPresentName()
- Specified by:
isPresentNamein interfacede.monticore.symboltable.IScope
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfacede.monticore.symboltable.IScope
-
setNameAbsent
public void setNameAbsent()
- Specified by:
setNameAbsentin interfacede.monticore.symboltable.IScope
-
getAstNode
public de.monticore.ast.ASTNode getAstNode()
- Specified by:
getAstNodein interfacede.monticore.symboltable.IScope
-
isPresentAstNode
public boolean isPresentAstNode()
- Specified by:
isPresentAstNodein interfacede.monticore.symboltable.IScope
-
setAstNode
public void setAstNode(de.monticore.ast.ASTNode astNode)
- Specified by:
setAstNodein interfacede.monticore.symboltable.IScope
-
setAstNodeAbsent
public void setAstNodeAbsent()
- Specified by:
setAstNodeAbsentin interfacede.monticore.symboltable.IScope
-
addSubScope
public void addSubScope(IMCCommonScope subScope)
- Specified by:
addSubScopein interfaceIMCCommonScope
-
removeSubScope
public void removeSubScope(IMCCommonScope subScope)
- Specified by:
removeSubScopein interfaceIMCCommonScope
-
getSubScopes
public java.util.List<IMCCommonScope> getSubScopes()
- Specified by:
getSubScopesin interfaceICardinalityScope- Specified by:
getSubScopesin interfaceICompletenessScope- Specified by:
getSubScopesin interfaceIExpressionsBasisScope- Specified by:
getSubScopesin interfaceIMCBasicsScope- Specified by:
getSubScopesin interfaceIMCCommonLiteralsScope- Specified by:
getSubScopesin interfaceIMCCommonScope- Specified by:
getSubScopesin interfaceIMCLiteralsBasisScope- Specified by:
getSubScopesin interfaceIUMLModifierScope- Specified by:
getSubScopesin interfaceIUMLStereotypeScope
-
setSubScopes
public void setSubScopes(java.util.List<IMCCommonScope> subScopes)
-
addSubScope
public void addSubScope(ICardinalityScope subScope)
- Specified by:
addSubScopein interfaceICardinalityScope
-
removeSubScope
public void removeSubScope(ICardinalityScope subScope)
- Specified by:
removeSubScopein interfaceICardinalityScope
-
setEnclosingScope
public void setEnclosingScope(ICardinalityScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceICardinalityScope
-
addSubScope
public void addSubScope(ICompletenessScope subScope)
- Specified by:
addSubScopein interfaceICompletenessScope
-
removeSubScope
public void removeSubScope(ICompletenessScope subScope)
- Specified by:
removeSubScopein interfaceICompletenessScope
-
setEnclosingScope
public void setEnclosingScope(ICompletenessScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceICompletenessScope
-
addSubScope
public void addSubScope(IUMLModifierScope subScope)
- Specified by:
addSubScopein interfaceIUMLModifierScope
-
removeSubScope
public void removeSubScope(IUMLModifierScope subScope)
- Specified by:
removeSubScopein interfaceIUMLModifierScope
-
setEnclosingScope
public void setEnclosingScope(IUMLModifierScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIUMLModifierScope
-
addSubScope
public void addSubScope(IUMLStereotypeScope subScope)
- Specified by:
addSubScopein interfaceIUMLStereotypeScope
-
removeSubScope
public void removeSubScope(IUMLStereotypeScope subScope)
- Specified by:
removeSubScopein interfaceIUMLStereotypeScope
-
setEnclosingScope
public void setEnclosingScope(IUMLStereotypeScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIUMLStereotypeScope
-
addSubScope
public void addSubScope(IMCBasicsScope subScope)
- Specified by:
addSubScopein interfaceIMCBasicsScope
-
removeSubScope
public void removeSubScope(IMCBasicsScope subScope)
- Specified by:
removeSubScopein interfaceIMCBasicsScope
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIMCBasicsScope
-
addSubScope
public void addSubScope(IMCCommonLiteralsScope subScope)
- Specified by:
addSubScopein interfaceIMCCommonLiteralsScope
-
removeSubScope
public void removeSubScope(IMCCommonLiteralsScope subScope)
- Specified by:
removeSubScopein interfaceIMCCommonLiteralsScope
-
setEnclosingScope
public void setEnclosingScope(IMCCommonLiteralsScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIMCCommonLiteralsScope
-
addSubScope
public void addSubScope(IMCLiteralsBasisScope subScope)
- Specified by:
addSubScopein interfaceIMCLiteralsBasisScope
-
removeSubScope
public void removeSubScope(IMCLiteralsBasisScope subScope)
- Specified by:
removeSubScopein interfaceIMCLiteralsBasisScope
-
setEnclosingScope
public void setEnclosingScope(IMCLiteralsBasisScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIMCLiteralsBasisScope
-
addSubScope
public void addSubScope(IExpressionsBasisScope subScope)
- Specified by:
addSubScopein interfaceIExpressionsBasisScope
-
removeSubScope
public void removeSubScope(IExpressionsBasisScope subScope)
- Specified by:
removeSubScopein interfaceIExpressionsBasisScope
-
setEnclosingScope
public void setEnclosingScope(IExpressionsBasisScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIExpressionsBasisScope
-
accept
public void accept(MCCommonTraverser visitor)
- Specified by:
acceptin interfaceIMCCommonScope
-
accept
public void accept(CardinalityTraverser visitor)
- Specified by:
acceptin interfaceICardinalityScope- Specified by:
acceptin interfaceIMCCommonScope
-
accept
public void accept(CompletenessTraverser visitor)
- Specified by:
acceptin interfaceICompletenessScope- Specified by:
acceptin interfaceIMCCommonScope
-
accept
public void accept(UMLModifierTraverser visitor)
- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIUMLModifierScope
-
accept
public void accept(UMLStereotypeTraverser visitor)
- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
accept
public void accept(MCBasicsTraverser visitor)
- Specified by:
acceptin interfaceICardinalityScope- Specified by:
acceptin interfaceIExpressionsBasisScope- Specified by:
acceptin interfaceIMCBasicsScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
accept
public void accept(MCCommonLiteralsTraverser visitor)
- Specified by:
acceptin interfaceICardinalityScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
accept
public void accept(MCLiteralsBasisTraverser visitor)
- Specified by:
acceptin interfaceICardinalityScope- Specified by:
acceptin interfaceIExpressionsBasisScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIMCLiteralsBasisScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
accept
public void accept(ExpressionsBasisTraverser visitor)
- Specified by:
acceptin interfaceIExpressionsBasisScope- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
- Specified by:
acceptin interfaceICardinalityScope- Specified by:
acceptin interfaceICompletenessScope- Specified by:
acceptin interfaceIExpressionsBasisScope- Specified by:
acceptin interfaceIMCBasicsScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCCommonScope- Specified by:
acceptin interfaceIMCLiteralsBasisScope- Specified by:
acceptin interfacede.monticore.symboltable.IScope- Specified by:
acceptin interfaceIUMLModifierScope- Specified by:
acceptin interfaceIUMLStereotypeScope
-
-