java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.statements.mcarraystatements._ast.ASTArrayInit
All Implemented Interfaces:
de.monticore.ast.ASTNode, ASTMCArrayStatementsNode, ASTMCVarDeclarationStatementsNode, ASTVariableInit, Cloneable

public class ASTArrayInit extends de.monticore.ast.ASTCNode implements ASTVariableInit, ASTMCArrayStatementsNode
  • Field Details

  • Constructor Details

    • ASTArrayInit

      protected ASTArrayInit()
  • Method Details

    • deepEquals

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

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

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

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

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

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

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

      public ASTArrayInit deepClone(ASTArrayInit result)
    • containsVariableInit

      public boolean containsVariableInit(Object element)
    • containsAllVariableInits

      public boolean containsAllVariableInits(Collection<?> collection)
    • isEmptyVariableInits

      public boolean isEmptyVariableInits()
    • iteratorVariableInits

      public Iterator<ASTVariableInit> iteratorVariableInits()
    • sizeVariableInits

      public int sizeVariableInits()
    • toArrayVariableInits

      public ASTVariableInit[] toArrayVariableInits(ASTVariableInit[] array)
    • toArrayVariableInits

      public Object[] toArrayVariableInits()
    • spliteratorVariableInits

      public Spliterator<ASTVariableInit> spliteratorVariableInits()
    • streamVariableInits

      public Stream<ASTVariableInit> streamVariableInits()
    • parallelStreamVariableInits

      public Stream<ASTVariableInit> parallelStreamVariableInits()
    • getVariableInit

      public ASTVariableInit getVariableInit(int index)
    • indexOfVariableInit

      public int indexOfVariableInit(Object element)
    • lastIndexOfVariableInit

      public int lastIndexOfVariableInit(Object element)
    • equalsVariableInits

      public boolean equalsVariableInits(Object o)
    • hashCodeVariableInits

      public int hashCodeVariableInits()
    • listIteratorVariableInits

      public ListIterator<ASTVariableInit> listIteratorVariableInits()
    • listIteratorVariableInits

      public ListIterator<ASTVariableInit> listIteratorVariableInits(int index)
    • subListVariableInits

      public List<ASTVariableInit> subListVariableInits(int start, int end)
    • getVariableInitList

      public List<ASTVariableInit> getVariableInitList()
    • clearVariableInits

      public void clearVariableInits()
    • addVariableInit

      public boolean addVariableInit(ASTVariableInit element)
    • addAllVariableInits

      public boolean addAllVariableInits(Collection<? extends ASTVariableInit> collection)
    • removeVariableInit

      public boolean removeVariableInit(Object element)
    • removeAllVariableInits

      public boolean removeAllVariableInits(Collection<?> collection)
    • retainAllVariableInits

      public boolean retainAllVariableInits(Collection<?> collection)
    • removeIfVariableInit

      public boolean removeIfVariableInit(Predicate<? super ASTVariableInit> filter)
    • forEachVariableInits

      public void forEachVariableInits(Consumer<? super ASTVariableInit> action)
    • addVariableInit

      public void addVariableInit(int index, ASTVariableInit element)
    • addAllVariableInits

      public boolean addAllVariableInits(int index, Collection<? extends ASTVariableInit> collection)
    • removeVariableInit

      public ASTVariableInit removeVariableInit(int index)
    • setVariableInit

      public ASTVariableInit setVariableInit(int index, ASTVariableInit element)
    • replaceAllVariableInits

      public void replaceAllVariableInits(UnaryOperator<ASTVariableInit> operator)
    • sortVariableInits

      public void sortVariableInits(Comparator<? super ASTVariableInit> comparator)
    • setVariableInitList

      public void setVariableInitList(List<ASTVariableInit> variableInits)
    • accept

      public void accept(MCArrayStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTMCArrayStatementsNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCVarDeclarationStatementsTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Specified by:
      accept in interface ASTMCVarDeclarationStatementsNode
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(MCStatementsBasisTraverser 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(ExpressionsBasisTraverser visitor)
      Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.
      Parameters:
      visitor - the visitor to dispatch to
    • accept

      public void accept(OOSymbolsTraverser 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(BasicSymbolsTraverser 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 ASTArrayInit _construct()
    • getEnclosingScope

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

      public void setEnclosingScope(IMCArrayStatementsScope enclosingScope)
    • setEnclosingScope

      public void setEnclosingScope(IMCVarDeclarationStatementsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • setEnclosingScope

      public void setEnclosingScope(IMCStatementsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • setEnclosingScope

      public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • setEnclosingScope

      public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • setEnclosingScope

      public void setEnclosingScope(IOOSymbolsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • setEnclosingScope

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

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

      public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
      Specified by:
      setEnclosingScope in interface ASTVariableInit
    • evaluate

      public de.monticore.interpreter.Value evaluate(IMCArrayStatementsInterpreter interpreter)
    • evaluate

      public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
      Specified by:
      evaluate in interface de.monticore.ast.ASTNode