new expression).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| protected | NewExpr(int pos, CodeIterator i, CtClass declaring, MethodInfo m, String type, int np)
Undocumented constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public String | |
| public CtConstructor | |
| private CtClass | |
| public String | Returns: null if this information is not available.Overrides javassist. Returns the source file containing the |
| public int | Returns: -1 if this information is not available.Overrides javassist. Returns the line number of the source line containing the
|
| public String | Returns: the signatureGet the signature of the constructor The signature is represented by a character string called method descriptor, which is defined in the JVM specification. |
| 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 |
| public CtBehavior | where()
Overrides javassist. Returns the method or constructor containing the |
| newPos | back to summary |
|---|---|
| pack-priv int newPos | |
| newTypeName | back to summary |
|---|---|
| pack-priv String newTypeName | |
| NewExpr | back to summary |
|---|---|
| protected NewExpr(int pos, CodeIterator i, CtClass declaring, MethodInfo m, String type, int np) Undocumented constructor. Do not use; internal-use only. | |
| canReplace | back to summary |
|---|---|
| private int canReplace() throws CannotCompileException | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Returns the class name of the created object. | |
| getConstructor | back to summary |
|---|---|
| public CtConstructor getConstructor() throws NotFoundException Returns the constructor called for creating the object. | |
| getCtClass | back to summary |
|---|---|
| private CtClass getCtClass() throws NotFoundException Returns the class of the created object. | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides javassist. Returns the source file containing the | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Overrides javassist. Returns the line number of the source line containing the
| |
| getSignature | back to summary |
|---|---|
| public String getSignature() Get the signature of the constructor The signature is represented by a character string called method descriptor, which is defined in the JVM specification.
| |
| 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 $0 is available but the value is null. | |
| where | back to summary |
|---|---|
| public CtBehavior where() Overrides javassist. Returns the method or constructor containing the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv CtClass |
| 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.
|
| methodIndex | back to summary |
|---|---|
| pack-priv int methodIndex | |
| newIndex | back to summary |
|---|---|
| pack-priv int newIndex | |
| newType | back to summary |
|---|---|
| pack-priv CtClass newType | |
| ProceedForNew | back to summary |
|---|---|
| pack-priv ProceedForNew(CtClass nt, int ni, int mi) | |
| 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.
| |