This class does not provide methods for obtaining the initial values of array elements.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CtClass | |
| public int | |
| public int | |
| public String | Returns: null if this information is not available.Overrides javassist. Returns the source file containing the array creation. |
| public int | Returns: -1 if this information is not available.Overrides javassist. Returns the line number of the source line containing the array creation. |
| pack-priv CtClass | |
| public CtClass[] | mayThrow()
Overrides javassist. Returns the list of exceptions that the expression may throw. |
| public void | replace(String
a Java statement except try-catch. statement)Implements abstract javassist. Replaces the array creation with the bytecode derived from the given source text. |
| private void | |
| public CtBehavior | where()
Overrides javassist. Returns the method or constructor containing the array creation represented by this object. |
| opcode | back to summary |
|---|---|
| pack-priv int opcode | |
| NewArray | back to summary |
|---|---|
| protected NewArray(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op) | |
| getComponentType | back to summary |
|---|---|
| public CtClass getComponentType() throws NotFoundException Returns the type of array components. If the created array is
a two-dimensional array of | |
| getCreatedDimensions | back to summary |
|---|---|
| public int getCreatedDimensions() Returns the number of dimensions of arrays to be created. If the opcode is multianewarray, this method returns the second operand. Otherwise, it returns 1. | |
| getDimension | back to summary |
|---|---|
| public int getDimension() Returns the dimension of the created array. | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides javassist. Returns the source file containing the array creation. | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Overrides javassist. Returns the line number of the source line containing the array creation.
| |
| getPrimitiveType | back to summary |
|---|---|
| pack-priv CtClass getPrimitiveType(int atype) | |
| mayThrow | back to summary |
|---|---|
| public CtClass[] mayThrow() Overrides javassist. Returns the list of exceptions that the expression may throw. This list includes both the exceptions that the try-catch statements including the expression can catch and the exceptions that the throws declaration allows the method to throw.
| |
| replace | back to summary |
|---|---|
| public void replace(String statement) throws CannotCompileException Implements abstract javassist. Replaces the array creation with the bytecode derived from the given source text. $0 is available even if the called method is static. If the field access is writing, $_ is available but the value of $_ is ignored. | |
| replace2 | back to summary |
|---|---|
| private void replace2(String statement) throws CompileError, NotFoundException, BadBytecode, CannotCompileException | |
| where | back to summary |
|---|---|
| public CtBehavior where() Overrides javassist. Returns the method or constructor containing the array creation represented by this object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CtClass | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
Implements javassist.
|
| public void | setReturnType(JvstTypeChecker c, ASTList args)
Implements javassist.
|
| arrayType | back to summary |
|---|---|
| pack-priv CtClass arrayType | |
| dimension | back to summary |
|---|---|
| pack-priv int dimension | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| opcode | back to summary |
|---|---|
| pack-priv int opcode | |
| ProceedForArray | back to summary |
|---|---|
| pack-priv ProceedForArray(CtClass type, int op, int i, int dim) | |
| doit | back to summary |
|---|---|
| public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) throws CompileError Implements javassist.
| |
| setReturnType | back to summary |
|---|---|
| public void setReturnType(JvstTypeChecker c, ASTList args) throws CompileError Implements javassist.
| |