Class ASTLexAlt

  • All Implemented Interfaces:
    de.monticore.ast.ASTNode, ASTGrammarNode, java.lang.Cloneable

    public class ASTLexAlt
    extends de.monticore.ast.ASTCNode
    implements ASTGrammarNode
    • Constructor Detail

      • ASTLexAlt

        protected ASTLexAlt()
    • Method Detail

      • deepEquals

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

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

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

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

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

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

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

        public boolean containsLexComponent​(java.lang.Object element)
      • containsAllLexComponent

        public boolean containsAllLexComponent​(java.util.Collection<?> collection)
      • isEmptyLexComponent

        public boolean isEmptyLexComponent()
      • iteratorLexComponent

        public java.util.Iterator<ASTLexComponent> iteratorLexComponent()
      • sizeLexComponent

        public int sizeLexComponent()
      • toArrayLexComponent

        public java.lang.Object[] toArrayLexComponent()
      • spliteratorLexComponent

        public java.util.Spliterator<ASTLexComponent> spliteratorLexComponent()
      • streamLexComponent

        public java.util.stream.Stream<ASTLexComponent> streamLexComponent()
      • parallelStreamLexComponent

        public java.util.stream.Stream<ASTLexComponent> parallelStreamLexComponent()
      • indexOfLexComponent

        public int indexOfLexComponent​(java.lang.Object element)
      • lastIndexOfLexComponent

        public int lastIndexOfLexComponent​(java.lang.Object element)
      • equalsLexComponent

        public boolean equalsLexComponent​(java.lang.Object o)
      • hashCodeLexComponent

        public int hashCodeLexComponent()
      • listIteratorLexComponent

        public java.util.ListIterator<ASTLexComponent> listIteratorLexComponent()
      • listIteratorLexComponent

        public java.util.ListIterator<ASTLexComponent> listIteratorLexComponent​(int index)
      • subListLexComponent

        public java.util.List<ASTLexComponent> subListLexComponent​(int start,
                                                                   int end)
      • getLexComponentList

        public java.util.List<ASTLexComponent> getLexComponentList()
      • clearLexComponent

        public void clearLexComponent()
      • addLexComponent

        public boolean addLexComponent​(ASTLexComponent element)
      • addAllLexComponent

        public boolean addAllLexComponent​(java.util.Collection<? extends ASTLexComponent> collection)
      • removeLexComponent

        public boolean removeLexComponent​(java.lang.Object element)
      • removeAllLexComponent

        public boolean removeAllLexComponent​(java.util.Collection<?> collection)
      • retainAllLexComponent

        public boolean retainAllLexComponent​(java.util.Collection<?> collection)
      • removeIfLexComponent

        public boolean removeIfLexComponent​(java.util.function.Predicate<? super ASTLexComponent> filter)
      • forEachLexComponent

        public void forEachLexComponent​(java.util.function.Consumer<? super ASTLexComponent> action)
      • addLexComponent

        public void addLexComponent​(int index,
                                    ASTLexComponent element)
      • addAllLexComponent

        public boolean addAllLexComponent​(int index,
                                          java.util.Collection<? extends ASTLexComponent> collection)
      • removeLexComponent

        public ASTLexComponent removeLexComponent​(int index)
      • replaceAllLexComponent

        public void replaceAllLexComponent​(java.util.function.UnaryOperator<ASTLexComponent> operator)
      • sortLexComponent

        public void sortLexComponent​(java.util.Comparator<? super ASTLexComponent> comparator)
      • setLexComponentList

        public void setLexComponentList​(java.util.List<ASTLexComponent> lexComponent)
      • 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 ASTLexAlt _construct()
      • getEnclosingScope

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

        public void setEnclosingScope​(IGrammarScope enclosingScope)
      • setEnclosingScope

        public void setEnclosingScope​(IMCBasicsScope 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