javassist.expr
public class NewExpr extends Expr
Method Summary | |
---|---|
String | getClassName()
Returns the class name of the created object. |
CtConstructor | getConstructor()
Returns the constructor called for creating the object. |
String | getFileName()
Returns the source file containing the new expression.
|
int | getLineNumber()
Returns the line number of the source line containing the
new expression.
|
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.
|
CtClass[] | mayThrow()
Returns the list of exceptions that the expression may throw.
|
void | replace(String statement)
Replaces the new expression with the bytecode derived from
the given source text.
|
CtBehavior | where()
Returns the method or constructor containing the new
expression represented by this object. |
Returns: null if this information is not available.
Returns: -1 if this information is not available.
Returns: the signature
See Also: getSignature Descriptor
$0 is available but the value is null.
Parameters: statement a Java statement.