|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.expr.Expr
javassist.expr.NewExpr
public class NewExpr
Object creation (new expression).
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the class name of the created object. |
CtConstructor |
getConstructor()
Returns the constructor called for creating the object. |
java.lang.String |
getFileName()
Returns the source file containing the new expression. |
int |
getLineNumber()
Returns the line number of the source line containing the new expression. |
java.lang.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(java.lang.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. |
Methods inherited from class javassist.expr.Expr |
---|
getEnclosingClass, indexOfBytecode, replace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public CtBehavior where()
where
in class Expr
public int getLineNumber()
getLineNumber
in class Expr
public java.lang.String getFileName()
getFileName
in class Expr
public java.lang.String getClassName()
public java.lang.String getSignature()
CtBehavior.getSignature()
,
Descriptor
public CtConstructor getConstructor() throws NotFoundException
NotFoundException
public CtClass[] mayThrow()
mayThrow
in class Expr
public void replace(java.lang.String statement) throws CannotCompileException
$0 is available but the value is null.
replace
in class Expr
statement
- a Java statement.
CannotCompileException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |