Class RegExTypeScope
- java.lang.Object
-
- de.monticore.regex.regextype._symboltable.RegExTypeScope
-
- All Implemented Interfaces:
IMCCommonLiteralsScope,IMCLiteralsBasisScope,IMCBasicsScope,IRegExTypeScope,IRegularExpressionsScope,de.monticore.symboltable.IScope,IMCBasicTypesScope
- Direct Known Subclasses:
RegExTypeArtifactScope,RegExTypeGlobalScope
public class RegExTypeScope extends java.lang.Object implements IRegExTypeScope
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<de.monticore.ast.ASTNode>astNodeprotected IRegExTypeScopeenclosingScopeprotected booleanexportingSymbolsprotected java.util.Optional<java.lang.String>nameprotected com.google.common.collect.LinkedListMultimap<java.lang.String,NamedCapturingGroupSymbol>namedCapturingGroupSymbolsprotected booleannamedCapturingGroupSymbolsAlreadyResolvedprotected booleanorderedprotected booleanshadowingprotected java.util.Optional<de.monticore.symboltable.IScopeSpanningSymbol>spanningSymbolprotected java.util.List<IRegExTypeScope>subScopesprotected com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind>unknownSymbolsprotected booleanunknownSymbolsAlreadyResolved
-
Constructor Summary
Constructors Constructor Description RegExTypeScope()RegExTypeScope(boolean shadowing)RegExTypeScope(IRegExTypeScope enclosingScope)RegExTypeScope(IRegExTypeScope enclosingScope, boolean shadowing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MCCommonLiteralsTraverser visitor)voidaccept(MCLiteralsBasisTraverser visitor)voidaccept(MCBasicsTraverser visitor)voidaccept(RegExTypeTraverser visitor)voidaccept(RegularExpressionsTraverser visitor)voidaccept(MCBasicTypesTraverser visitor)voidaccept(de.monticore.visitor.ITraverser visitor)voidadd(NamedCapturingGroupSymbol symbol)voidadd(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)voidaddSubScope(IMCCommonLiteralsScope subScope)voidaddSubScope(IMCLiteralsBasisScope subScope)voidaddSubScope(IMCBasicsScope subScope)voidaddSubScope(IRegExTypeScope subScope)voidaddSubScope(IRegularExpressionsScope subScope)voidaddSubScope(IMCBasicTypesScope subScope)de.monticore.ast.ASTNodegetAstNode()IRegExTypeScopegetEnclosingScope()java.lang.StringgetName()com.google.common.collect.LinkedListMultimap<java.lang.String,NamedCapturingGroupSymbol>getNamedCapturingGroupSymbols()de.monticore.symboltable.IScopeSpanningSymbolgetSpanningSymbol()java.util.List<IRegExTypeScope>getSubScopes()com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind>getUnknownSymbols()booleanisExportingSymbols()booleanisNamedCapturingGroupSymbolsAlreadyResolved()booleanisOrdered()booleanisPresentAstNode()booleanisPresentName()booleanisPresentSpanningSymbol()booleanisShadowing()booleanisUnknownSymbolsAlreadyResolved()voidremove(NamedCapturingGroupSymbol symbol)voidremove(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)voidremoveSubScope(IMCCommonLiteralsScope subScope)voidremoveSubScope(IMCLiteralsBasisScope subScope)voidremoveSubScope(IMCBasicsScope subScope)voidremoveSubScope(IRegExTypeScope subScope)voidremoveSubScope(IRegularExpressionsScope subScope)voidremoveSubScope(IMCBasicTypesScope subScope)java.util.List<NamedCapturingGroupSymbol>resolveNamedCapturingGroupSubKinds(boolean foundSymbols, java.lang.String name, de.monticore.symboltable.modifiers.AccessModifier modifier, java.util.function.Predicate<NamedCapturingGroupSymbol> predicate)voidsetAstNode(de.monticore.ast.ASTNode astNode)voidsetAstNodeAbsent()voidsetEnclosingScope(IMCCommonLiteralsScope newEnclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope newEnclosingScope)voidsetEnclosingScope(IMCBasicsScope newEnclosingScope)voidsetEnclosingScope(IRegExTypeScope enclosingScope)voidsetEnclosingScope(IRegularExpressionsScope newEnclosingScope)voidsetEnclosingScope(IMCBasicTypesScope newEnclosingScope)voidsetExportingSymbols(boolean exportingSymbols)voidsetName(java.lang.String name)voidsetNameAbsent()voidsetNamedCapturingGroupSymbolsAlreadyResolved(boolean namedCapturingGroupSymbolsAlreadyResolved)voidsetOrdered(boolean ordered)voidsetShadowing(boolean shadowing)voidsetSpanningSymbol(de.monticore.symboltable.IScopeSpanningSymbol spanningSymbol)voidsetSpanningSymbolAbsent()voidsetSubScopes(java.util.List<IRegExTypeScope> 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.regex.regextype._symboltable.IRegExTypeScope
getSymbolsSize
-
Methods inherited from interface de.monticore.regex.regularexpressions._symboltable.IRegularExpressionsScope
continueAsNamedCapturingGroupSubScope, continueNamedCapturingGroupWithEnclosingScope, filterNamedCapturingGroup, getLocalNamedCapturingGroupSymbols, resolveAdaptedNamedCapturingGroupLocallyMany, resolveNamedCapturingGroup, resolveNamedCapturingGroup, resolveNamedCapturingGroup, resolveNamedCapturingGroup, resolveNamedCapturingGroupDown, resolveNamedCapturingGroupDown, resolveNamedCapturingGroupDown, resolveNamedCapturingGroupDownMany, resolveNamedCapturingGroupDownMany, resolveNamedCapturingGroupDownMany, resolveNamedCapturingGroupDownMany, resolveNamedCapturingGroupLocally, resolveNamedCapturingGroupLocallyMany, resolveNamedCapturingGroupMany, resolveNamedCapturingGroupMany, resolveNamedCapturingGroupMany, resolveNamedCapturingGroupMany, resolveNamedCapturingGroupMany, resolveNamedCapturingGroupMany
-
-
-
-
Field Detail
-
unknownSymbols
protected com.google.common.collect.LinkedListMultimap<java.lang.String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> unknownSymbols
-
namedCapturingGroupSymbols
protected com.google.common.collect.LinkedListMultimap<java.lang.String,NamedCapturingGroupSymbol> namedCapturingGroupSymbols
-
unknownSymbolsAlreadyResolved
protected boolean unknownSymbolsAlreadyResolved
-
namedCapturingGroupSymbolsAlreadyResolved
protected boolean namedCapturingGroupSymbolsAlreadyResolved
-
enclosingScope
protected IRegExTypeScope 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<IRegExTypeScope> subScopes
-
-
Constructor Detail
-
RegExTypeScope
public RegExTypeScope()
-
RegExTypeScope
public RegExTypeScope(boolean shadowing)
-
RegExTypeScope
public RegExTypeScope(IRegExTypeScope enclosingScope)
-
RegExTypeScope
public RegExTypeScope(IRegExTypeScope 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
-
add
public void add(NamedCapturingGroupSymbol symbol)
- Specified by:
addin interfaceIRegularExpressionsScope
-
remove
public void remove(NamedCapturingGroupSymbol symbol)
- Specified by:
removein interfaceIRegularExpressionsScope
-
getNamedCapturingGroupSymbols
public com.google.common.collect.LinkedListMultimap<java.lang.String,NamedCapturingGroupSymbol> getNamedCapturingGroupSymbols()
- Specified by:
getNamedCapturingGroupSymbolsin interfaceIRegularExpressionsScope
-
isUnknownSymbolsAlreadyResolved
public boolean isUnknownSymbolsAlreadyResolved()
-
setUnknownSymbolsAlreadyResolved
public void setUnknownSymbolsAlreadyResolved(boolean unknownSymbolsAlreadyResolved)
-
isNamedCapturingGroupSymbolsAlreadyResolved
public boolean isNamedCapturingGroupSymbolsAlreadyResolved()
- Specified by:
isNamedCapturingGroupSymbolsAlreadyResolvedin interfaceIRegularExpressionsScope
-
setNamedCapturingGroupSymbolsAlreadyResolved
public void setNamedCapturingGroupSymbolsAlreadyResolved(boolean namedCapturingGroupSymbolsAlreadyResolved)
- Specified by:
setNamedCapturingGroupSymbolsAlreadyResolvedin interfaceIRegularExpressionsScope
-
getEnclosingScope
public IRegExTypeScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceIMCBasicsScope- Specified by:
getEnclosingScopein interfaceIMCBasicTypesScope- Specified by:
getEnclosingScopein interfaceIMCCommonLiteralsScope- Specified by:
getEnclosingScopein interfaceIMCLiteralsBasisScope- Specified by:
getEnclosingScopein interfaceIRegExTypeScope- Specified by:
getEnclosingScopein interfaceIRegularExpressionsScope- Specified by:
getEnclosingScopein interfacede.monticore.symboltable.IScope
-
setEnclosingScope
public void setEnclosingScope(IRegExTypeScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceIRegExTypeScope
-
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(IRegExTypeScope subScope)
- Specified by:
addSubScopein interfaceIRegExTypeScope
-
removeSubScope
public void removeSubScope(IRegExTypeScope subScope)
- Specified by:
removeSubScopein interfaceIRegExTypeScope
-
getSubScopes
public java.util.List<IRegExTypeScope> getSubScopes()
- Specified by:
getSubScopesin interfaceIMCBasicsScope- Specified by:
getSubScopesin interfaceIMCBasicTypesScope- Specified by:
getSubScopesin interfaceIMCCommonLiteralsScope- Specified by:
getSubScopesin interfaceIMCLiteralsBasisScope- Specified by:
getSubScopesin interfaceIRegExTypeScope- Specified by:
getSubScopesin interfaceIRegularExpressionsScope
-
setSubScopes
public void setSubScopes(java.util.List<IRegExTypeScope> subScopes)
-
addSubScope
public void addSubScope(IRegularExpressionsScope subScope)
- Specified by:
addSubScopein interfaceIRegularExpressionsScope
-
removeSubScope
public void removeSubScope(IRegularExpressionsScope subScope)
- Specified by:
removeSubScopein interfaceIRegularExpressionsScope
-
setEnclosingScope
public void setEnclosingScope(IRegularExpressionsScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIRegularExpressionsScope
-
addSubScope
public void addSubScope(IMCBasicTypesScope subScope)
- Specified by:
addSubScopein interfaceIMCBasicTypesScope
-
removeSubScope
public void removeSubScope(IMCBasicTypesScope subScope)
- Specified by:
removeSubScopein interfaceIMCBasicTypesScope
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope newEnclosingScope)
- Specified by:
setEnclosingScopein interfaceIMCBasicTypesScope
-
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(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(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
-
resolveNamedCapturingGroupSubKinds
public java.util.List<NamedCapturingGroupSymbol> resolveNamedCapturingGroupSubKinds(boolean foundSymbols, java.lang.String name, de.monticore.symboltable.modifiers.AccessModifier modifier, java.util.function.Predicate<NamedCapturingGroupSymbol> predicate)
- Specified by:
resolveNamedCapturingGroupSubKindsin interfaceIRegularExpressionsScope
-
accept
public void accept(RegExTypeTraverser visitor)
- Specified by:
acceptin interfaceIRegExTypeScope
-
accept
public void accept(RegularExpressionsTraverser visitor)
- Specified by:
acceptin interfaceIRegExTypeScope- Specified by:
acceptin interfaceIRegularExpressionsScope
-
accept
public void accept(MCBasicTypesTraverser visitor)
- Specified by:
acceptin interfaceIMCBasicTypesScope- Specified by:
acceptin interfaceIRegExTypeScope
-
accept
public void accept(MCCommonLiteralsTraverser visitor)
- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIRegExTypeScope- Specified by:
acceptin interfaceIRegularExpressionsScope
-
accept
public void accept(MCBasicsTraverser visitor)
- Specified by:
acceptin interfaceIMCBasicsScope- Specified by:
acceptin interfaceIMCBasicTypesScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIRegExTypeScope- Specified by:
acceptin interfaceIRegularExpressionsScope
-
accept
public void accept(MCLiteralsBasisTraverser visitor)
- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCLiteralsBasisScope- Specified by:
acceptin interfaceIRegExTypeScope- Specified by:
acceptin interfaceIRegularExpressionsScope
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
- Specified by:
acceptin interfaceIMCBasicsScope- Specified by:
acceptin interfaceIMCBasicTypesScope- Specified by:
acceptin interfaceIMCCommonLiteralsScope- Specified by:
acceptin interfaceIMCLiteralsBasisScope- Specified by:
acceptin interfaceIRegExTypeScope- Specified by:
acceptin interfaceIRegularExpressionsScope- Specified by:
acceptin interfacede.monticore.symboltable.IScope
-
-