Class SymbolWithScopeOfUnknownKind

java.lang.Object
de.monticore.symboltable.SymbolWithScopeOfUnknownKind
All Implemented Interfaces:
IScopeSpanningSymbol, ISymbol

public class SymbolWithScopeOfUnknownKind extends Object implements IScopeSpanningSymbol
Represents a symbol of a kind unknown to a language.
  • Field Details

  • Constructor Details

    • SymbolWithScopeOfUnknownKind

      public SymbolWithScopeOfUnknownKind(String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ISymbol
      Returns:
      the symbol name
    • setName

      public void setName(String name)
    • getEnclosingScope

      public IScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface ISymbol
      Returns:
      Returns the enclosing scope of this symbol. Symbol classes implementing the ISymbol interface override this method and refine the return type to the scASTope classes of the language.
    • setEnclosingScope

      public void setEnclosingScope(IScope enclosingScope)
    • getAstNode

      public ASTNode getAstNode()
      This method always fails since an unknown symbol may not have a related ASTNode.
      Specified by:
      getAstNode in interface ISymbol
    • isPresentAstNode

      public boolean isPresentAstNode()
      This method always returns false since an unknown symbol may not have a related ASTNode.
      Specified by:
      isPresentAstNode in interface ISymbol
    • getAccessModifier

      public AccessModifier getAccessModifier()
      Specified by:
      getAccessModifier in interface ISymbol
      Returns:
      the access modifier, such as public or protected in Java. By default, the AccessModifier.ALL_INCLUSION is returned, which indicates that the symbol does not have any access modifier. Note that this is not the same as the (implicit) access modifier BasicAccessModifier.PACKAGE_LOCAL of Java.
    • setAccessModifier

      public void setAccessModifier(AccessModifier accessModifier)
      Description copied from interface: ISymbol
      Sets the access modifier, such as public or protected in Java.
      Specified by:
      setAccessModifier in interface ISymbol
      Parameters:
      accessModifier - the access modifier
    • setFullName

      public void setFullName(String fullName)
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface ISymbol
      Returns:
      the package of this symbol. All symbols within an artifact usually have the same package name. For example, the state chart p.q.SC and its containing states all have the package p.q.
      See Also:
    • setPackageName

      public void setPackageName(String packageName)
    • getPackageName

      public String getPackageName()
      Specified by:
      getPackageName in interface ISymbol
      Returns:
      the package of this symbol. The package name of all symbols within an artifact is usually the same. For example, the package name of a state chart p.q.SC and its containing state s are the same, i.e., p.q.
      See Also:
    • getStereoinfo

      public Map<IStereotypeReference,Optional<Value>> getStereoinfo()
      Description copied from interface: ISymbol
      Returns the stereotypes of this symbol, associated with values for them if present.
      The keys of the map reference IStereotypeSymbols, while the values reference the optionally associated stereovalue.
      Specified by:
      getStereoinfo in interface ISymbol
    • accept

      public void accept(ITraverser visitor)
      Specified by:
      accept in interface ISymbol
    • determinePackageName

      protected String determinePackageName()
    • determineFullName

      protected String determineFullName()
    • getSpannedScope

      public IScope getSpannedScope()
      Specified by:
      getSpannedScope in interface IScopeSpanningSymbol
      Returns:
      the scope spanned by this symbol.
    • setSpannedScope

      public void setSpannedScope(IScope scope)