Class ASTBlock

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

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

  • Constructor Details

    • ASTBlock

      protected ASTBlock()
  • 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 ASTBlock 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 ASTBlock deepClone(ASTBlock result)
    • getOption

      public ASTOption getOption()
    • isPresentOption

      public boolean isPresentOption()
    • getInitAction

      public ASTActionExt getInitAction()
    • isPresentInitAction

      public boolean isPresentInitAction()
    • containsAlt

      public boolean containsAlt(Object element)
    • containsAllAlt

      public boolean containsAllAlt(Collection<?> collection)
    • isEmptyAlt

      public boolean isEmptyAlt()
    • iteratorAlt

      public Iterator<ASTAlt> iteratorAlt()
    • sizeAlt

      public int sizeAlt()
    • toArrayAlt

      public ASTAlt[] toArrayAlt(ASTAlt[] array)
    • toArrayAlt

      public Object[] toArrayAlt()
    • spliteratorAlt

      public Spliterator<ASTAlt> spliteratorAlt()
    • streamAlt

      public Stream<ASTAlt> streamAlt()
    • parallelStreamAlt

      public Stream<ASTAlt> parallelStreamAlt()
    • getAlt

      public ASTAlt getAlt(int index)
    • indexOfAlt

      public int indexOfAlt(Object element)
    • lastIndexOfAlt

      public int lastIndexOfAlt(Object element)
    • equalsAlt

      public boolean equalsAlt(Object o)
    • hashCodeAlt

      public int hashCodeAlt()
    • listIteratorAlt

      public ListIterator<ASTAlt> listIteratorAlt()
    • listIteratorAlt

      public ListIterator<ASTAlt> listIteratorAlt(int index)
    • subListAlt

      public List<ASTAlt> subListAlt(int start, int end)
    • getAltList

      public List<ASTAlt> getAltList()
    • getIteration

      public int getIteration()
    • setOption

      public void setOption(ASTOption option)
    • setOptionAbsent

      public void setOptionAbsent()
    • setInitAction

      public void setInitAction(ASTActionExt initAction)
    • setInitActionAbsent

      public void setInitActionAbsent()
    • clearAlt

      public void clearAlt()
    • addAlt

      public boolean addAlt(ASTAlt element)
    • addAllAlt

      public boolean addAllAlt(Collection<? extends ASTAlt> collection)
    • removeAlt

      public boolean removeAlt(Object element)
    • removeAllAlt

      public boolean removeAllAlt(Collection<?> collection)
    • retainAllAlt

      public boolean retainAllAlt(Collection<?> collection)
    • removeIfAlt

      public boolean removeIfAlt(Predicate<? super ASTAlt> filter)
    • forEachAlt

      public void forEachAlt(Consumer<? super ASTAlt> action)
    • addAlt

      public void addAlt(int index, ASTAlt element)
    • addAllAlt

      public boolean addAllAlt(int index, Collection<? extends ASTAlt> collection)
    • removeAlt

      public ASTAlt removeAlt(int index)
    • setAlt

      public ASTAlt setAlt(int index, ASTAlt element)
    • replaceAllAlt

      public void replaceAllAlt(UnaryOperator<ASTAlt> operator)
    • sortAlt

      public void sortAlt(Comparator<? super ASTAlt> comparator)
    • setAltList

      public void setAltList(List<ASTAlt> alt)
    • 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 ASTBlock _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