Class MCCommonLiteralsScope

java.lang.Object
de.monticore.literals.mccommonliterals._symboltable.MCCommonLiteralsScope
All Implemented Interfaces:
IMCCommonLiteralsScope, IMCLiteralsBasisScope, IMCBasicsScope, de.monticore.symboltable.IScope
Direct Known Subclasses:
MCCommonLiteralsArtifactScope, MCCommonLiteralsGlobalScope

public class MCCommonLiteralsScope extends Object implements IMCCommonLiteralsScope
  • Field Details

    • unknownSymbols

      protected com.google.common.collect.LinkedListMultimap<String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> unknownSymbols
    • unknownSymbolsAlreadyResolved

      protected boolean unknownSymbolsAlreadyResolved
    • enclosingScope

      protected IMCCommonLiteralsScope enclosingScope
    • spanningSymbol

      protected Optional<de.monticore.symboltable.IScopeSpanningSymbol> spanningSymbol
    • shadowing

      protected boolean shadowing
    • exportingSymbols

      protected boolean exportingSymbols
    • ordered

      protected boolean ordered
    • name

      protected Optional<String> name
    • astNode

      protected Optional<de.monticore.ast.ASTNode> astNode
    • subScopes

      protected List<IMCCommonLiteralsScope> subScopes
  • Constructor Details

    • MCCommonLiteralsScope

      public MCCommonLiteralsScope()
    • MCCommonLiteralsScope

      public MCCommonLiteralsScope(boolean shadowing)
    • MCCommonLiteralsScope

      public MCCommonLiteralsScope(IMCCommonLiteralsScope enclosingScope)
    • MCCommonLiteralsScope

      public MCCommonLiteralsScope(IMCCommonLiteralsScope enclosingScope, boolean shadowing)
  • Method Details

    • add

      public void add(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)
      Specified by:
      add in interface de.monticore.symboltable.IScope
    • remove

      public void remove(de.monticore.symboltable.SymbolWithScopeOfUnknownKind symbol)
      Specified by:
      remove in interface de.monticore.symboltable.IScope
    • getUnknownSymbols

      public com.google.common.collect.LinkedListMultimap<String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> getUnknownSymbols()
      Specified by:
      getUnknownSymbols in interface de.monticore.symboltable.IScope
    • getUnknownSymbolsWithSubKinds

      public com.google.common.collect.LinkedListMultimap<String,de.monticore.symboltable.SymbolWithScopeOfUnknownKind> getUnknownSymbolsWithSubKinds()
    • isUnknownSymbolsAlreadyResolved

      public boolean isUnknownSymbolsAlreadyResolved()
    • setUnknownSymbolsAlreadyResolved

      public void setUnknownSymbolsAlreadyResolved(boolean unknownSymbolsAlreadyResolved)
    • getEnclosingScope

      public IMCCommonLiteralsScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface IMCBasicsScope
      Specified by:
      getEnclosingScope in interface IMCCommonLiteralsScope
      Specified by:
      getEnclosingScope in interface IMCLiteralsBasisScope
      Specified by:
      getEnclosingScope in interface de.monticore.symboltable.IScope
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface IMCCommonLiteralsScope
    • getSpanningSymbol

      public de.monticore.symboltable.IScopeSpanningSymbol getSpanningSymbol()
      Specified by:
      getSpanningSymbol in interface de.monticore.symboltable.IScope
    • isPresentSpanningSymbol

      public boolean isPresentSpanningSymbol()
      Specified by:
      isPresentSpanningSymbol in interface de.monticore.symboltable.IScope
    • setSpanningSymbol

      public void setSpanningSymbol(de.monticore.symboltable.IScopeSpanningSymbol spanningSymbol)
      Specified by:
      setSpanningSymbol in interface de.monticore.symboltable.IScope
    • setSpanningSymbolAbsent

      public void setSpanningSymbolAbsent()
      Specified by:
      setSpanningSymbolAbsent in interface de.monticore.symboltable.IScope
    • isShadowing

      public boolean isShadowing()
      Specified by:
      isShadowing in interface de.monticore.symboltable.IScope
    • setShadowing

      public void setShadowing(boolean shadowing)
      Specified by:
      setShadowing in interface de.monticore.symboltable.IScope
    • isExportingSymbols

      public boolean isExportingSymbols()
      Specified by:
      isExportingSymbols in interface de.monticore.symboltable.IScope
    • setExportingSymbols

      public void setExportingSymbols(boolean exportingSymbols)
      Specified by:
      setExportingSymbols in interface de.monticore.symboltable.IScope
    • isOrdered

      public boolean isOrdered()
      Specified by:
      isOrdered in interface de.monticore.symboltable.IScope
    • setOrdered

      public void setOrdered(boolean ordered)
      Specified by:
      setOrdered in interface de.monticore.symboltable.IScope
    • getName

      public String getName()
      Specified by:
      getName in interface de.monticore.symboltable.IScope
    • isPresentName

      public boolean isPresentName()
      Specified by:
      isPresentName in interface de.monticore.symboltable.IScope
    • setName

      public void setName(String name)
      Specified by:
      setName in interface de.monticore.symboltable.IScope
    • setNameAbsent

      public void setNameAbsent()
      Specified by:
      setNameAbsent in interface de.monticore.symboltable.IScope
    • getAstNode

      public de.monticore.ast.ASTNode getAstNode()
      Specified by:
      getAstNode in interface de.monticore.symboltable.IScope
    • isPresentAstNode

      public boolean isPresentAstNode()
      Specified by:
      isPresentAstNode in interface de.monticore.symboltable.IScope
    • setAstNode

      public void setAstNode(de.monticore.ast.ASTNode astNode)
      Specified by:
      setAstNode in interface de.monticore.symboltable.IScope
    • setAstNodeAbsent

      public void setAstNodeAbsent()
      Specified by:
      setAstNodeAbsent in interface de.monticore.symboltable.IScope
    • addSubScope

      public void addSubScope(IMCCommonLiteralsScope subScope)
      Specified by:
      addSubScope in interface IMCCommonLiteralsScope
    • removeSubScope

      public void removeSubScope(IMCCommonLiteralsScope subScope)
      Specified by:
      removeSubScope in interface IMCCommonLiteralsScope
    • getSubScopes

      public List<IMCCommonLiteralsScope> getSubScopes()
      Specified by:
      getSubScopes in interface IMCBasicsScope
      Specified by:
      getSubScopes in interface IMCCommonLiteralsScope
      Specified by:
      getSubScopes in interface IMCLiteralsBasisScope
    • setSubScopes

      public void setSubScopes(List<IMCCommonLiteralsScope> subScopes)
    • addSubScope

      public void addSubScope(IMCBasicsScope subScope)
      Specified by:
      addSubScope in interface IMCBasicsScope
    • removeSubScope

      public void removeSubScope(IMCBasicsScope subScope)
      Specified by:
      removeSubScope in interface IMCBasicsScope
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope newEnclosingScope)
      Specified by:
      setEnclosingScope in interface IMCBasicsScope
    • addSubScope

      public void addSubScope(IMCLiteralsBasisScope subScope)
      Specified by:
      addSubScope in interface IMCLiteralsBasisScope
    • removeSubScope

      public void removeSubScope(IMCLiteralsBasisScope subScope)
      Specified by:
      removeSubScope in interface IMCLiteralsBasisScope
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope newEnclosingScope)
      Specified by:
      setEnclosingScope in interface IMCLiteralsBasisScope
    • accept

      public void accept(MCCommonLiteralsTraverser visitor)
      Specified by:
      accept in interface IMCCommonLiteralsScope
    • accept

      public void accept(MCBasicsTraverser visitor)
      Specified by:
      accept in interface IMCBasicsScope
      Specified by:
      accept in interface IMCCommonLiteralsScope
    • accept

      public void accept(MCLiteralsBasisTraverser visitor)
      Specified by:
      accept in interface IMCCommonLiteralsScope
      Specified by:
      accept in interface IMCLiteralsBasisScope
    • accept

      public void accept(de.monticore.visitor.ITraverser visitor)
      Specified by:
      accept in interface IMCBasicsScope
      Specified by:
      accept in interface IMCCommonLiteralsScope
      Specified by:
      accept in interface IMCLiteralsBasisScope
      Specified by:
      accept in interface de.monticore.symboltable.IScope