Class ASTGrammarOption

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

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

  • Constructor Details

    • ASTGrammarOption

      protected ASTGrammarOption()
  • 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 ASTGrammarOption deepClone()
      Specified by:
      deepClone in interface de.monticore.ast.ASTNode
      Specified by:
      deepClone in class de.monticore.ast.ASTCNode
    • deepClone

      public ASTGrammarOption deepClone(ASTGrammarOption result)
    • containsFollowOption

      public boolean containsFollowOption(Object element)
    • containsAllFollowOptions

      public boolean containsAllFollowOptions(Collection<?> collection)
    • isEmptyFollowOptions

      public boolean isEmptyFollowOptions()
    • iteratorFollowOptions

      public Iterator<ASTFollowOption> iteratorFollowOptions()
    • sizeFollowOptions

      public int sizeFollowOptions()
    • toArrayFollowOptions

      public ASTFollowOption[] toArrayFollowOptions(ASTFollowOption[] array)
    • toArrayFollowOptions

      public Object[] toArrayFollowOptions()
    • spliteratorFollowOptions

      public Spliterator<ASTFollowOption> spliteratorFollowOptions()
    • streamFollowOptions

      public Stream<ASTFollowOption> streamFollowOptions()
    • parallelStreamFollowOptions

      public Stream<ASTFollowOption> parallelStreamFollowOptions()
    • getFollowOption

      public ASTFollowOption getFollowOption(int index)
    • indexOfFollowOption

      public int indexOfFollowOption(Object element)
    • lastIndexOfFollowOption

      public int lastIndexOfFollowOption(Object element)
    • equalsFollowOptions

      public boolean equalsFollowOptions(Object o)
    • hashCodeFollowOptions

      public int hashCodeFollowOptions()
    • listIteratorFollowOptions

      public ListIterator<ASTFollowOption> listIteratorFollowOptions()
    • listIteratorFollowOptions

      public ListIterator<ASTFollowOption> listIteratorFollowOptions(int index)
    • subListFollowOptions

      public List<ASTFollowOption> subListFollowOptions(int start, int end)
    • getFollowOptionList

      public List<ASTFollowOption> getFollowOptionList()
    • containsAntlrOption

      public boolean containsAntlrOption(Object element)
    • containsAllAntlrOptions

      public boolean containsAllAntlrOptions(Collection<?> collection)
    • isEmptyAntlrOptions

      public boolean isEmptyAntlrOptions()
    • iteratorAntlrOptions

      public Iterator<ASTAntlrOption> iteratorAntlrOptions()
    • sizeAntlrOptions

      public int sizeAntlrOptions()
    • toArrayAntlrOptions

      public ASTAntlrOption[] toArrayAntlrOptions(ASTAntlrOption[] array)
    • toArrayAntlrOptions

      public Object[] toArrayAntlrOptions()
    • spliteratorAntlrOptions

      public Spliterator<ASTAntlrOption> spliteratorAntlrOptions()
    • streamAntlrOptions

      public Stream<ASTAntlrOption> streamAntlrOptions()
    • parallelStreamAntlrOptions

      public Stream<ASTAntlrOption> parallelStreamAntlrOptions()
    • getAntlrOption

      public ASTAntlrOption getAntlrOption(int index)
    • indexOfAntlrOption

      public int indexOfAntlrOption(Object element)
    • lastIndexOfAntlrOption

      public int lastIndexOfAntlrOption(Object element)
    • equalsAntlrOptions

      public boolean equalsAntlrOptions(Object o)
    • hashCodeAntlrOptions

      public int hashCodeAntlrOptions()
    • listIteratorAntlrOptions

      public ListIterator<ASTAntlrOption> listIteratorAntlrOptions()
    • listIteratorAntlrOptions

      public ListIterator<ASTAntlrOption> listIteratorAntlrOptions(int index)
    • subListAntlrOptions

      public List<ASTAntlrOption> subListAntlrOptions(int start, int end)
    • getAntlrOptionList

      public List<ASTAntlrOption> getAntlrOptionList()
    • containsKeywordOption

      public boolean containsKeywordOption(Object element)
    • containsAllKeywordOptions

      public boolean containsAllKeywordOptions(Collection<?> collection)
    • isEmptyKeywordOptions

      public boolean isEmptyKeywordOptions()
    • iteratorKeywordOptions

      public Iterator<ASTKeywordOption> iteratorKeywordOptions()
    • sizeKeywordOptions

      public int sizeKeywordOptions()
    • toArrayKeywordOptions

      public ASTKeywordOption[] toArrayKeywordOptions(ASTKeywordOption[] array)
    • toArrayKeywordOptions

      public Object[] toArrayKeywordOptions()
    • spliteratorKeywordOptions

      public Spliterator<ASTKeywordOption> spliteratorKeywordOptions()
    • streamKeywordOptions

      public Stream<ASTKeywordOption> streamKeywordOptions()
    • parallelStreamKeywordOptions

      public Stream<ASTKeywordOption> parallelStreamKeywordOptions()
    • getKeywordOption

      public ASTKeywordOption getKeywordOption(int index)
    • indexOfKeywordOption

      public int indexOfKeywordOption(Object element)
    • lastIndexOfKeywordOption

      public int lastIndexOfKeywordOption(Object element)
    • equalsKeywordOptions

      public boolean equalsKeywordOptions(Object o)
    • hashCodeKeywordOptions

      public int hashCodeKeywordOptions()
    • listIteratorKeywordOptions

      public ListIterator<ASTKeywordOption> listIteratorKeywordOptions()
    • listIteratorKeywordOptions

      public ListIterator<ASTKeywordOption> listIteratorKeywordOptions(int index)
    • subListKeywordOptions

      public List<ASTKeywordOption> subListKeywordOptions(int start, int end)
    • getKeywordOptionList

      public List<ASTKeywordOption> getKeywordOptionList()
    • clearFollowOptions

      public void clearFollowOptions()
    • addFollowOption

      public boolean addFollowOption(ASTFollowOption element)
    • addAllFollowOptions

      public boolean addAllFollowOptions(Collection<? extends ASTFollowOption> collection)
    • removeFollowOption

      public boolean removeFollowOption(Object element)
    • removeAllFollowOptions

      public boolean removeAllFollowOptions(Collection<?> collection)
    • retainAllFollowOptions

      public boolean retainAllFollowOptions(Collection<?> collection)
    • removeIfFollowOption

      public boolean removeIfFollowOption(Predicate<? super ASTFollowOption> filter)
    • forEachFollowOptions

      public void forEachFollowOptions(Consumer<? super ASTFollowOption> action)
    • addFollowOption

      public void addFollowOption(int index, ASTFollowOption element)
    • addAllFollowOptions

      public boolean addAllFollowOptions(int index, Collection<? extends ASTFollowOption> collection)
    • removeFollowOption

      public ASTFollowOption removeFollowOption(int index)
    • setFollowOption

      public ASTFollowOption setFollowOption(int index, ASTFollowOption element)
    • replaceAllFollowOptions

      public void replaceAllFollowOptions(UnaryOperator<ASTFollowOption> operator)
    • sortFollowOptions

      public void sortFollowOptions(Comparator<? super ASTFollowOption> comparator)
    • setFollowOptionList

      public void setFollowOptionList(List<ASTFollowOption> followOptions)
    • clearAntlrOptions

      public void clearAntlrOptions()
    • addAntlrOption

      public boolean addAntlrOption(ASTAntlrOption element)
    • addAllAntlrOptions

      public boolean addAllAntlrOptions(Collection<? extends ASTAntlrOption> collection)
    • removeAntlrOption

      public boolean removeAntlrOption(Object element)
    • removeAllAntlrOptions

      public boolean removeAllAntlrOptions(Collection<?> collection)
    • retainAllAntlrOptions

      public boolean retainAllAntlrOptions(Collection<?> collection)
    • removeIfAntlrOption

      public boolean removeIfAntlrOption(Predicate<? super ASTAntlrOption> filter)
    • forEachAntlrOptions

      public void forEachAntlrOptions(Consumer<? super ASTAntlrOption> action)
    • addAntlrOption

      public void addAntlrOption(int index, ASTAntlrOption element)
    • addAllAntlrOptions

      public boolean addAllAntlrOptions(int index, Collection<? extends ASTAntlrOption> collection)
    • removeAntlrOption

      public ASTAntlrOption removeAntlrOption(int index)
    • setAntlrOption

      public ASTAntlrOption setAntlrOption(int index, ASTAntlrOption element)
    • replaceAllAntlrOptions

      public void replaceAllAntlrOptions(UnaryOperator<ASTAntlrOption> operator)
    • sortAntlrOptions

      public void sortAntlrOptions(Comparator<? super ASTAntlrOption> comparator)
    • setAntlrOptionList

      public void setAntlrOptionList(List<ASTAntlrOption> antlrOptions)
    • clearKeywordOptions

      public void clearKeywordOptions()
    • addKeywordOption

      public boolean addKeywordOption(ASTKeywordOption element)
    • addAllKeywordOptions

      public boolean addAllKeywordOptions(Collection<? extends ASTKeywordOption> collection)
    • removeKeywordOption

      public boolean removeKeywordOption(Object element)
    • removeAllKeywordOptions

      public boolean removeAllKeywordOptions(Collection<?> collection)
    • retainAllKeywordOptions

      public boolean retainAllKeywordOptions(Collection<?> collection)
    • removeIfKeywordOption

      public boolean removeIfKeywordOption(Predicate<? super ASTKeywordOption> filter)
    • forEachKeywordOptions

      public void forEachKeywordOptions(Consumer<? super ASTKeywordOption> action)
    • addKeywordOption

      public void addKeywordOption(int index, ASTKeywordOption element)
    • addAllKeywordOptions

      public boolean addAllKeywordOptions(int index, Collection<? extends ASTKeywordOption> collection)
    • removeKeywordOption

      public ASTKeywordOption removeKeywordOption(int index)
    • setKeywordOption

      public ASTKeywordOption setKeywordOption(int index, ASTKeywordOption element)
    • replaceAllKeywordOptions

      public void replaceAllKeywordOptions(UnaryOperator<ASTKeywordOption> operator)
    • sortKeywordOptions

      public void sortKeywordOptions(Comparator<? super ASTKeywordOption> comparator)
    • setKeywordOptionList

      public void setKeywordOptionList(List<ASTKeywordOption> keywordOptions)
    • 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 ASTGrammarOption _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