Class ASTConstantGroup

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

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

  • Constructor Details

    • ASTConstantGroup

      protected ASTConstantGroup()
  • 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 ASTConstantGroup 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 ASTConstantGroup deepClone(ASTConstantGroup result)
    • getUsageName

      public String getUsageName()
    • isPresentUsageName

      public boolean isPresentUsageName()
    • containsConstant

      public boolean containsConstant(Object element)
    • containsAllConstants

      public boolean containsAllConstants(Collection<?> collection)
    • isEmptyConstants

      public boolean isEmptyConstants()
    • iteratorConstants

      public Iterator<ASTConstant> iteratorConstants()
    • sizeConstants

      public int sizeConstants()
    • toArrayConstants

      public ASTConstant[] toArrayConstants(ASTConstant[] array)
    • toArrayConstants

      public Object[] toArrayConstants()
    • spliteratorConstants

      public Spliterator<ASTConstant> spliteratorConstants()
    • streamConstants

      public Stream<ASTConstant> streamConstants()
    • parallelStreamConstants

      public Stream<ASTConstant> parallelStreamConstants()
    • getConstant

      public ASTConstant getConstant(int index)
    • indexOfConstant

      public int indexOfConstant(Object element)
    • lastIndexOfConstant

      public int lastIndexOfConstant(Object element)
    • equalsConstants

      public boolean equalsConstants(Object o)
    • hashCodeConstants

      public int hashCodeConstants()
    • listIteratorConstants

      public ListIterator<ASTConstant> listIteratorConstants()
    • listIteratorConstants

      public ListIterator<ASTConstant> listIteratorConstants(int index)
    • subListConstants

      public List<ASTConstant> subListConstants(int start, int end)
    • getConstantList

      public List<ASTConstant> getConstantList()
    • getIteration

      public int getIteration()
    • setUsageName

      public void setUsageName(String usageName)
    • setUsageNameAbsent

      public void setUsageNameAbsent()
    • clearConstants

      public void clearConstants()
    • addConstant

      public boolean addConstant(ASTConstant element)
    • addAllConstants

      public boolean addAllConstants(Collection<? extends ASTConstant> collection)
    • removeConstant

      public boolean removeConstant(Object element)
    • removeAllConstants

      public boolean removeAllConstants(Collection<?> collection)
    • retainAllConstants

      public boolean retainAllConstants(Collection<?> collection)
    • removeIfConstant

      public boolean removeIfConstant(Predicate<? super ASTConstant> filter)
    • forEachConstants

      public void forEachConstants(Consumer<? super ASTConstant> action)
    • addConstant

      public void addConstant(int index, ASTConstant element)
    • addAllConstants

      public boolean addAllConstants(int index, Collection<? extends ASTConstant> collection)
    • removeConstant

      public ASTConstant removeConstant(int index)
    • setConstant

      public ASTConstant setConstant(int index, ASTConstant element)
    • replaceAllConstants

      public void replaceAllConstants(UnaryOperator<ASTConstant> operator)
    • sortConstants

      public void sortConstants(Comparator<? super ASTConstant> comparator)
    • setConstantList

      public void setConstantList(List<ASTConstant> constants)
    • 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 ASTConstantGroup _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