Class ASTNonTerminal

java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.grammar.grammar._ast.ASTNonTerminal
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTGrammarNode, ASTRuleComponent, ASTRuleComponentTOP, Cloneable

public class ASTNonTerminal extends de.monticore.ast.ASTCNode implements ASTRuleComponent, ASTGrammarNode
  • Field Details

  • Constructor Details

    • ASTNonTerminal

      protected ASTNonTerminal()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTNonTerminal deepClone(ASTNonTerminal result)
    • getUsageName

      public String getUsageName()
    • isPresentUsageName

      public boolean isPresentUsageName()
    • getName

      public String getName()
      Specified by:
      getName in interface ASTRuleComponent
      Specified by:
      getName in interface ASTRuleComponentTOP
    • getReferencedSymbol

      public String getReferencedSymbol()
    • isPresentReferencedSymbol

      public boolean isPresentReferencedSymbol()
    • getSymbolName

      public String getSymbolName()
    • isPresentSymbolName

      public boolean isPresentSymbolName()
    • isGenSymbol

      public boolean isGenSymbol()
    • isPlusKeywords

      public boolean isPlusKeywords()
    • getIteration

      public int getIteration()
    • setUsageName

      public void setUsageName(String usageName)
    • setUsageNameAbsent

      public void setUsageNameAbsent()
    • setName

      public void setName(String name)
    • setReferencedSymbol

      public void setReferencedSymbol(String referencedSymbol)
    • setReferencedSymbolAbsent

      public void setReferencedSymbolAbsent()
    • setSymbolName

      public void setSymbolName(String symbolName)
    • setSymbolNameAbsent

      public void setSymbolNameAbsent()
    • setGenSymbol

      public void setGenSymbol(boolean genSymbol)
    • setPlusKeywords

      public void setPlusKeywords(boolean plusKeywords)
    • setIteration

      public void setIteration(int iteration)
    • 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 ASTNonTerminal _construct()
    • getSymbol

      public RuleComponentSymbol getSymbol()
      Specified by:
      getSymbol in interface ASTRuleComponentTOP
    • isPresentSymbol

      public boolean isPresentSymbol()
      Specified by:
      isPresentSymbol in interface ASTRuleComponentTOP
    • setSymbol

      public void setSymbol(RuleComponentSymbol symbol)
    • setSymbolAbsent

      public void setSymbolAbsent()
    • getEnclosingScope

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

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

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

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

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

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

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

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