Class ASTLexBlock

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

public class ASTLexBlock extends de.monticore.ast.ASTCNode implements ASTLexComponent, ASTGrammarNode
  • Field Details

  • Constructor Details

    • ASTLexBlock

      protected ASTLexBlock()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTLexBlock deepClone(ASTLexBlock result)
    • getOption

      public ASTLexOption getOption()
    • isPresentOption

      public boolean isPresentOption()
    • getInitAction

      public ASTActionExt getInitAction()
    • isPresentInitAction

      public boolean isPresentInitAction()
    • containsLexAlt

      public boolean containsLexAlt(Object element)
    • containsAllLexAlt

      public boolean containsAllLexAlt(Collection<?> collection)
    • isEmptyLexAlt

      public boolean isEmptyLexAlt()
    • iteratorLexAlt

      public Iterator<ASTLexAlt> iteratorLexAlt()
    • sizeLexAlt

      public int sizeLexAlt()
    • toArrayLexAlt

      public ASTLexAlt[] toArrayLexAlt(ASTLexAlt[] array)
    • toArrayLexAlt

      public Object[] toArrayLexAlt()
    • spliteratorLexAlt

      public Spliterator<ASTLexAlt> spliteratorLexAlt()
    • streamLexAlt

      public Stream<ASTLexAlt> streamLexAlt()
    • parallelStreamLexAlt

      public Stream<ASTLexAlt> parallelStreamLexAlt()
    • getLexAlt

      public ASTLexAlt getLexAlt(int index)
    • indexOfLexAlt

      public int indexOfLexAlt(Object element)
    • lastIndexOfLexAlt

      public int lastIndexOfLexAlt(Object element)
    • equalsLexAlt

      public boolean equalsLexAlt(Object o)
    • hashCodeLexAlt

      public int hashCodeLexAlt()
    • listIteratorLexAlt

      public ListIterator<ASTLexAlt> listIteratorLexAlt()
    • listIteratorLexAlt

      public ListIterator<ASTLexAlt> listIteratorLexAlt(int index)
    • subListLexAlt

      public List<ASTLexAlt> subListLexAlt(int start, int end)
    • getLexAltList

      public List<ASTLexAlt> getLexAltList()
    • isNegate

      public boolean isNegate()
    • getIteration

      public int getIteration()
    • setOption

      public void setOption(ASTLexOption option)
    • setOptionAbsent

      public void setOptionAbsent()
    • setInitAction

      public void setInitAction(ASTActionExt initAction)
    • setInitActionAbsent

      public void setInitActionAbsent()
    • clearLexAlt

      public void clearLexAlt()
    • addLexAlt

      public boolean addLexAlt(ASTLexAlt element)
    • addAllLexAlt

      public boolean addAllLexAlt(Collection<? extends ASTLexAlt> collection)
    • removeLexAlt

      public boolean removeLexAlt(Object element)
    • removeAllLexAlt

      public boolean removeAllLexAlt(Collection<?> collection)
    • retainAllLexAlt

      public boolean retainAllLexAlt(Collection<?> collection)
    • removeIfLexAlt

      public boolean removeIfLexAlt(Predicate<? super ASTLexAlt> filter)
    • forEachLexAlt

      public void forEachLexAlt(Consumer<? super ASTLexAlt> action)
    • addLexAlt

      public void addLexAlt(int index, ASTLexAlt element)
    • addAllLexAlt

      public boolean addAllLexAlt(int index, Collection<? extends ASTLexAlt> collection)
    • removeLexAlt

      public ASTLexAlt removeLexAlt(int index)
    • setLexAlt

      public ASTLexAlt setLexAlt(int index, ASTLexAlt element)
    • replaceAllLexAlt

      public void replaceAllLexAlt(UnaryOperator<ASTLexAlt> operator)
    • sortLexAlt

      public void sortLexAlt(Comparator<? super ASTLexAlt> comparator)
    • setLexAltList

      public void setLexAltList(List<ASTLexAlt> lexAlt)
    • setNegate

      public void setNegate(boolean negate)
    • 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 ASTLexBlock _construct()
    • getEnclosingScope

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

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

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

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

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

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

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

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