Class ASTOption

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

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

  • Constructor Details

    • ASTOption

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

      public ASTOption deepClone(ASTOption result)
    • containsOptionValue

      public boolean containsOptionValue(Object element)
    • containsAllOptionValues

      public boolean containsAllOptionValues(Collection<?> collection)
    • isEmptyOptionValues

      public boolean isEmptyOptionValues()
    • iteratorOptionValues

      public Iterator<ASTOptionValue> iteratorOptionValues()
    • sizeOptionValues

      public int sizeOptionValues()
    • toArrayOptionValues

      public ASTOptionValue[] toArrayOptionValues(ASTOptionValue[] array)
    • toArrayOptionValues

      public Object[] toArrayOptionValues()
    • spliteratorOptionValues

      public Spliterator<ASTOptionValue> spliteratorOptionValues()
    • streamOptionValues

      public Stream<ASTOptionValue> streamOptionValues()
    • parallelStreamOptionValues

      public Stream<ASTOptionValue> parallelStreamOptionValues()
    • getOptionValue

      public ASTOptionValue getOptionValue(int index)
    • indexOfOptionValue

      public int indexOfOptionValue(Object element)
    • lastIndexOfOptionValue

      public int lastIndexOfOptionValue(Object element)
    • equalsOptionValues

      public boolean equalsOptionValues(Object o)
    • hashCodeOptionValues

      public int hashCodeOptionValues()
    • listIteratorOptionValues

      public ListIterator<ASTOptionValue> listIteratorOptionValues()
    • listIteratorOptionValues

      public ListIterator<ASTOptionValue> listIteratorOptionValues(int index)
    • subListOptionValues

      public List<ASTOptionValue> subListOptionValues(int start, int end)
    • getOptionValueList

      public List<ASTOptionValue> getOptionValueList()
    • clearOptionValues

      public void clearOptionValues()
    • addOptionValue

      public boolean addOptionValue(ASTOptionValue element)
    • addAllOptionValues

      public boolean addAllOptionValues(Collection<? extends ASTOptionValue> collection)
    • removeOptionValue

      public boolean removeOptionValue(Object element)
    • removeAllOptionValues

      public boolean removeAllOptionValues(Collection<?> collection)
    • retainAllOptionValues

      public boolean retainAllOptionValues(Collection<?> collection)
    • removeIfOptionValue

      public boolean removeIfOptionValue(Predicate<? super ASTOptionValue> filter)
    • forEachOptionValues

      public void forEachOptionValues(Consumer<? super ASTOptionValue> action)
    • addOptionValue

      public void addOptionValue(int index, ASTOptionValue element)
    • addAllOptionValues

      public boolean addAllOptionValues(int index, Collection<? extends ASTOptionValue> collection)
    • removeOptionValue

      public ASTOptionValue removeOptionValue(int index)
    • setOptionValue

      public ASTOptionValue setOptionValue(int index, ASTOptionValue element)
    • replaceAllOptionValues

      public void replaceAllOptionValues(UnaryOperator<ASTOptionValue> operator)
    • sortOptionValues

      public void sortOptionValues(Comparator<? super ASTOptionValue> comparator)
    • setOptionValueList

      public void setOptionValueList(List<ASTOptionValue> optionValues)
    • 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 ASTOption _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