javassist.expr
public class NewArray extends Expr
This class does not provide methods for obtaining the initial values of array elements.
Method Summary | |
---|---|
CtClass | getComponentType()
Returns the type of array components. |
int | getCreatedDimensions()
Returns the number of dimensions of arrays to be created.
|
int | getDimension()
Returns the dimension of the created array. |
String | getFileName()
Returns the source file containing the array creation.
|
int | getLineNumber()
Returns the line number of the source line containing the
array creation.
|
CtClass[] | mayThrow()
Returns the list of exceptions that the expression may throw.
|
void | replace(String statement)
Replaces the array creation with the bytecode derived from
the given source text.
|
CtBehavior | where()
Returns the method or constructor containing the array creation
represented by this object. |
Returns: null if this information is not available.
Returns: -1 if this information is not available.
$0 is available even if the called method is static. If the field access is writing, $_ is available but the value of $_ is ignored.
Parameters: statement a Java statement.