public class ArrayCreationExpression extends Expression
Modifier and Type | Field and Description |
---|---|
int |
dimensions
The total number of dimensions, including those for which no size is given.
|
Type |
elementType
(¬ø) The most basic type of elements in the array (i.e., it will not be an
ArrayType ). |
ArrayInitializer |
initializer
(ø) Initial values for the new array.
|
ExpressionList |
sizes
(¬ø) Describes the size of each dimension in the new array.
|
parenthesized, typeCache, typeCacheFilled
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
ArrayCreationExpression(Type t,
ExpressionList l,
int d,
int line,
int byteOffset)
Initializing constructor.
|
ArrayCreationExpression(Type t,
int d,
ArrayInitializer a,
int line,
int byteOffset)
Initializing constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for java hash structures.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
containsQuantifiedVariable, getVariableTypes, senseValueChild
public Type elementType
ArrayType
).public ExpressionList sizes
public int dimensions
public ArrayInitializer initializer
public ArrayCreationExpression(Type t, ExpressionList l, int d, int line, int byteOffset)
t
- The element type.l
- The list of dimension size expressions.d
- The total number of dimensions in the array.line
- The line on which the source code represented by this node is found.byteOffset
- The byte offset from the beginning of the source file at which the source
code represented by this node is found.public ArrayCreationExpression(Type t, int d, ArrayInitializer a, int line, int byteOffset)
t
- The element type.d
- The total number of dimensions in the array.a
- An initializing expression for the array.line
- The line on which the source code represented by this node is found.byteOffset
- The byte offset from the beginning of the source file at which the source
code represented by this node is found.public int hashCode()
public boolean equals(Object o)
public ASTNodeIterator iterator()
public Object clone()
public void runPass(Pass pass)
run()
method is called for this type of node.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.Copyright © 2016. All rights reserved.