Class ASTAlt

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

public class ASTAlt extends de.monticore.ast.ASTCNode implements ASTGrammarNode
  • Field Details

  • Constructor Details

    • ASTAlt

      protected ASTAlt()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTAlt deepClone(ASTAlt result)
    • getGrammarAnnotation

      public ASTGrammarAnnotation getGrammarAnnotation()
    • isPresentGrammarAnnotation

      public boolean isPresentGrammarAnnotation()
    • containsComponent

      public boolean containsComponent(Object element)
    • containsAllComponent

      public boolean containsAllComponent(Collection<?> collection)
    • isEmptyComponent

      public boolean isEmptyComponent()
    • iteratorComponent

      public Iterator<ASTRuleComponent> iteratorComponent()
    • sizeComponent

      public int sizeComponent()
    • toArrayComponent

      public ASTRuleComponent[] toArrayComponent(ASTRuleComponent[] array)
    • toArrayComponent

      public Object[] toArrayComponent()
    • spliteratorComponent

      public Spliterator<ASTRuleComponent> spliteratorComponent()
    • streamComponent

      public Stream<ASTRuleComponent> streamComponent()
    • parallelStreamComponent

      public Stream<ASTRuleComponent> parallelStreamComponent()
    • getComponent

      public ASTRuleComponent getComponent(int index)
    • indexOfComponent

      public int indexOfComponent(Object element)
    • lastIndexOfComponent

      public int lastIndexOfComponent(Object element)
    • equalsComponent

      public boolean equalsComponent(Object o)
    • hashCodeComponent

      public int hashCodeComponent()
    • listIteratorComponent

      public ListIterator<ASTRuleComponent> listIteratorComponent()
    • listIteratorComponent

      public ListIterator<ASTRuleComponent> listIteratorComponent(int index)
    • subListComponent

      public List<ASTRuleComponent> subListComponent(int start, int end)
    • getComponentList

      public List<ASTRuleComponent> getComponentList()
    • isRightAssoc

      public boolean isRightAssoc()
    • setGrammarAnnotation

      public void setGrammarAnnotation(ASTGrammarAnnotation grammarAnnotation)
    • setGrammarAnnotationAbsent

      public void setGrammarAnnotationAbsent()
    • clearComponent

      public void clearComponent()
    • addComponent

      public boolean addComponent(ASTRuleComponent element)
    • addAllComponent

      public boolean addAllComponent(Collection<? extends ASTRuleComponent> collection)
    • removeComponent

      public boolean removeComponent(Object element)
    • removeAllComponent

      public boolean removeAllComponent(Collection<?> collection)
    • retainAllComponent

      public boolean retainAllComponent(Collection<?> collection)
    • removeIfComponent

      public boolean removeIfComponent(Predicate<? super ASTRuleComponent> filter)
    • forEachComponent

      public void forEachComponent(Consumer<? super ASTRuleComponent> action)
    • addComponent

      public void addComponent(int index, ASTRuleComponent element)
    • addAllComponent

      public boolean addAllComponent(int index, Collection<? extends ASTRuleComponent> collection)
    • removeComponent

      public ASTRuleComponent removeComponent(int index)
    • setComponent

      public ASTRuleComponent setComponent(int index, ASTRuleComponent element)
    • replaceAllComponent

      public void replaceAllComponent(UnaryOperator<ASTRuleComponent> operator)
    • sortComponent

      public void sortComponent(Comparator<? super ASTRuleComponent> comparator)
    • setComponentList

      public void setComponentList(List<ASTRuleComponent> component)
    • setRightAssoc

      public void setRightAssoc(boolean rightAssoc)
    • 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 ASTAlt _construct()
    • getEnclosingScope

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

      public void setEnclosingScope(IGrammarScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCSimpleGenericTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCCollectionTypesScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
    • 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