|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.javassist.expr.Expr
classUtils.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. |
CompileTimeClass[] |
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 classUtils.javassist.expr.Expr |
|---|
indexOfBytecode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public CtBehavior where()
where in class Exprpublic int getLineNumber()
getLineNumber in class Exprpublic java.lang.String getFileName()
getFileName in class Exprpublic java.lang.String getClassName()
public CtConstructor getConstructor()
throws NotFoundException
NotFoundExceptionpublic CompileTimeClass[] mayThrow()
mayThrow in class Expr
public void replace(java.lang.String statement)
throws CannotCompileException
$0 is available but the value is null.
statement - a Java statement.
CannotCompileException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||