Class ExpressionsBasisScope

java.lang.Object
de.monticore.expressions.expressionsbasis._symboltable.ExpressionsBasisScope
All Implemented Interfaces:
IExpressionsBasisScope, IMCLiteralsBasisScope, IMCBasicsScope, de.monticore.symboltable.IScope
Direct Known Subclasses:
ExpressionsBasisArtifactScope, ExpressionsBasisGlobalScope

public class ExpressionsBasisScope extends Object implements IExpressionsBasisScope
  • Field Details

    • unknownSymbols

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

      protected boolean unknownSymbolsAlreadyResolved
    • enclosingScope

      protected IExpressionsBasisScope 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<IExpressionsBasisScope> subScopes
  • Constructor Details

    • ExpressionsBasisScope

      public ExpressionsBasisScope()
    • ExpressionsBasisScope

      public ExpressionsBasisScope(boolean shadowing)
    • ExpressionsBasisScope

      public ExpressionsBasisScope(IExpressionsBasisScope enclosingScope)
    • ExpressionsBasisScope

      public ExpressionsBasisScope(IExpressionsBasisScope 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
    • isUnknownSymbolsAlreadyResolved

      public boolean isUnknownSymbolsAlreadyResolved()
    • setUnknownSymbolsAlreadyResolved

      public void setUnknownSymbolsAlreadyResolved(boolean unknownSymbolsAlreadyResolved)
    • getEnclosingScope

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

      public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface IExpressionsBasisScope
    • 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(IExpressionsBasisScope subScope)
      Specified by:
      addSubScope in interface IExpressionsBasisScope
    • removeSubScope

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

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

      public void setSubScopes(List<IExpressionsBasisScope> 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(ExpressionsBasisTraverser visitor)
      Specified by:
      accept in interface IExpressionsBasisScope
    • accept

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

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

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