public class ArrayInitializer extends JavaNonTerminalProgramElement implements Expression, ExpressionContainer
| Modifier and Type | Field and Description | 
|---|---|
protected ImmutableArray<Expression> | 
children  | 
protected KeYJavaType | 
kjt  | 
| Constructor and Description | 
|---|
ArrayInitializer(Expression[] expressions,
                KeYJavaType kjt)
create a new array initializer with the given expressions as elements. 
 | 
ArrayInitializer(ExtList list,
                KeYJavaType kjt)
Array initializer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ImmutableArray<Expression> | 
getArguments()
Get arguments. 
 | 
ProgramElement | 
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
      child array. 
 | 
int | 
getChildCount()
Returns the number of children of this node. 
 | 
Expression | 
getExpressionAt(int index)  | 
int | 
getExpressionCount()
Get the number of expressions in this container. 
 | 
KeYJavaType | 
getKeYJavaType(Services javaServ,
              ExecutionContext ec)
returns the  
KeYJavaType of an expression | 
void | 
prettyPrint(PrettyPrinter p)
Pretty printing the source element. 
 | 
void | 
visit(Visitor v)
calls the corresponding method of a visitor in order to
 perform some action/transformation on this element 
 | 
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPositionprotected final ImmutableArray<Expression> children
protected final KeYJavaType kjt
public ArrayInitializer(ExtList list, KeYJavaType kjt)
list - with all children.
         May contain: 
                several of Expression (as the initializing expression)
                Commentspublic ArrayInitializer(Expression[] expressions, KeYJavaType kjt)
expressions - a list of all contained elementspublic int getChildCount()
NonTerminalProgramElementgetChildCount in interface NonTerminalProgramElementpublic ProgramElement getChildAt(int index)
NonTerminalProgramElementgetChildAt in interface NonTerminalProgramElementindex - an index into this node's "virtual" child arraypublic int getExpressionCount()
ExpressionContainergetExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainerpublic void visit(Visitor v)
SourceElementvisit in interface SourceElementv - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.public ImmutableArray<Expression> getArguments()
public KeYJavaType getKeYJavaType(Services javaServ, ExecutionContext ec)
ExpressionKeYJavaType of an expressiongetKeYJavaType in interface Expression