Class ASTConstantTOP

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTConstantTOP
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTGrammarNode, ASTITerminal, Cloneable
Direct Known Subclasses:
ASTConstant

public abstract class ASTConstantTOP extends de.monticore.ast.ASTCNode implements ASTITerminal, ASTGrammarNode
  • Field Details

  • Constructor Details

    • ASTConstantTOP

      protected ASTConstantTOP()
  • Method Details

    • deepEquals

      public boolean deepEquals(Object o)
      Specified by:
      deepEquals in interface ASTITerminal
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEquals

      public boolean deepEquals(Object o, boolean forceSameOrder)
      Specified by:
      deepEquals in interface ASTITerminal
      Specified by:
      deepEquals in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o)
      Specified by:
      deepEqualsWithComments in interface ASTITerminal
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • deepEqualsWithComments

      public boolean deepEqualsWithComments(Object o, boolean forceSameOrder)
      Specified by:
      deepEqualsWithComments in interface ASTITerminal
      Specified by:
      deepEqualsWithComments in interface de.monticore.ast.ASTNode
    • equalAttributes

      public boolean equalAttributes(Object o)
      Specified by:
      equalAttributes in interface ASTITerminal
      Specified by:
      equalAttributes in interface de.monticore.ast.ASTNode
    • equalsWithComments

      public boolean equalsWithComments(Object o)
      Specified by:
      equalsWithComments in interface ASTITerminal
      Specified by:
      equalsWithComments in interface de.monticore.ast.ASTNode
    • deepClone

      public ASTConstant deepClone()
      Specified by:
      deepClone in interface ASTITerminal
      Specified by:
      deepClone in interface de.monticore.ast.ASTNode
      Specified by:
      deepClone in class de.monticore.ast.ASTCNode
    • deepClone

      public ASTConstant deepClone(ASTConstant result)
    • getUsageName

      public String getUsageName()
      Specified by:
      getUsageName in interface ASTITerminal
    • isPresentUsageName

      public boolean isPresentUsageName()
      Specified by:
      isPresentUsageName in interface ASTITerminal
    • getString

      public String getString()
    • isPresentString

      public boolean isPresentString()
    • getKeyConstant

      public ASTKeyConstant getKeyConstant()
    • isPresentKeyConstant

      public boolean isPresentKeyConstant()
    • getTokenConstant

      public ASTTokenConstant getTokenConstant()
    • isPresentTokenConstant

      public boolean isPresentTokenConstant()
    • getName

      public String getName()
      Specified by:
      getName in interface ASTITerminal
    • setUsageName

      public void setUsageName(String usageName)
      Specified by:
      setUsageName in interface ASTITerminal
    • setUsageNameAbsent

      public void setUsageNameAbsent()
      Specified by:
      setUsageNameAbsent in interface ASTITerminal
    • setString

      public void setString(String string)
    • setStringAbsent

      public void setStringAbsent()
    • setKeyConstant

      public void setKeyConstant(ASTKeyConstant keyConstant)
    • setKeyConstantAbsent

      public void setKeyConstantAbsent()
    • setTokenConstant

      public void setTokenConstant(ASTTokenConstant tokenConstant)
    • setTokenConstantAbsent

      public void setTokenConstantAbsent()
    • setName

      public void setName(String name)
      Specified by:
      setName in interface ASTITerminal
    • accept

      public void accept(GrammarTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTGrammarNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCCommonLiteralsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCSimpleGenericTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCLiteralsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCCollectionTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCBasicTypesTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(de.monticore.visitor.ITraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface de.monticore.ast.ASTNode
      Parameters:
      visitor - the visitor to dispatch to
    • _construct

      protected ASTConstant _construct()
    • getEnclosingScope

      public IGrammarScope getEnclosingScope()
      Specified by:
      getEnclosingScope in interface ASTITerminal
      Specified by:
      getEnclosingScope in interface de.monticore.ast.ASTNode
    • setEnclosingScope

      public void setEnclosingScope(IGrammarScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • setEnclosingScope

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

      public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • setEnclosingScope

      public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTITerminal
    • evaluate

      public de.monticore.interpreter.Value evaluate(IGrammarInterpreter interpreter)
    • evaluate

      public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
      Specified by:
      evaluate in interface de.monticore.ast.ASTNode