javassist.expr
public abstract class Expr extends Object implements Opcode
| Method Summary | |
|---|---|
| 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(String statement)
Replaces this expression with the bytecode derived from
the given source text.
|
| void | replace(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. |
Returns: null if this information is not available.
Returns: -1 if this information is not available.
Parameters: statement a Java statement.
ExprEditor.
Parameters: statement a Java statement. recursive if not null, the substituted bytecode
is recursively processed by the given
ExprEditor.
Since: 3.1