|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.expr.Expr
public abstract class Expr
Expression.
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns the source file containing the expression. |
int |
getLineNumber()
Returns the line number of the source line containing the expression. |
int |
indexOfBytecode()
Returns the index of the bytecode corresponding to the expression. |
CtClass[] |
mayThrow()
Returns the list of exceptions that the expression may throw. |
abstract void |
replace(java.lang.String statement)
Replaces this expression with the bytecode derived from the given source text. |
void |
replace(java.lang.String statement,
ExprEditor recursive)
Replaces this expression with the bytecode derived from the given source text and ExprEditor . |
CtBehavior |
where()
Returns the constructor or method containing the expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public CtBehavior where()
public CtClass[] mayThrow()
public int indexOfBytecode()
public int getLineNumber()
public java.lang.String getFileName()
public abstract void replace(java.lang.String statement) throws CannotCompileException
statement
- a Java statement.
CannotCompileException
public void replace(java.lang.String statement, ExprEditor recursive) throws CannotCompileException
ExprEditor
.
statement
- a Java statement.recursive
- if not null, the substituted bytecode
is recursively processed by the given
ExprEditor
.
CannotCompileException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |