Class MCFunctionTypesScope

java.lang.Object
de.monticore.types.mcfunctiontypes._symboltable.MCFunctionTypesScope
All Implemented Interfaces:
IMCBasicsScope, de.monticore.symboltable.IScope, IMCBasicTypesScope, IMCFunctionTypesScope
Direct Known Subclasses:
MCFunctionTypesArtifactScope, MCFunctionTypesGlobalScope

public class MCFunctionTypesScope extends Object implements IMCFunctionTypesScope
  • Field Details

    • unknownSymbols

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

      protected boolean unknownSymbolsAlreadyResolved
    • enclosingScope

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

    • MCFunctionTypesScope

      public MCFunctionTypesScope()
    • MCFunctionTypesScope

      public MCFunctionTypesScope(boolean shadowing)
    • MCFunctionTypesScope

      public MCFunctionTypesScope(IMCFunctionTypesScope enclosingScope)
    • MCFunctionTypesScope

      public MCFunctionTypesScope(IMCFunctionTypesScope 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 IMCFunctionTypesScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface IMCBasicsScope
      Specified by:
      getEnclosingScope in interface IMCBasicTypesScope
      Specified by:
      getEnclosingScope in interface IMCFunctionTypesScope
      Specified by:
      getEnclosingScope in interface de.monticore.symboltable.IScope
    • setEnclosingScope

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

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

      public List<IMCFunctionTypesScope> getSubScopes()
      Specified by:
      getSubScopes in interface IMCBasicsScope
      Specified by:
      getSubScopes in interface IMCBasicTypesScope
      Specified by:
      getSubScopes in interface IMCFunctionTypesScope
    • setSubScopes

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

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

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

      public void setEnclosingScope(IMCBasicTypesScope newEnclosingScope)
      Specified by:
      setEnclosingScope in interface IMCBasicTypesScope
    • 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
    • accept

      public void accept(MCFunctionTypesTraverser visitor)
      Specified by:
      accept in interface IMCFunctionTypesScope
    • accept

      public void accept(MCBasicTypesTraverser visitor)
      Specified by:
      accept in interface IMCBasicTypesScope
      Specified by:
      accept in interface IMCFunctionTypesScope
    • accept

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

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