| java.lang.Object javassist.expr.Expr
All known Subclasses: javassist.expr.FieldAccess, javassist.expr.Instanceof, javassist.expr.Cast, javassist.expr.Handler, javassist.expr.NewArray, javassist.expr.NewExpr, javassist.expr.MethodCall,
Expr | abstract public class Expr implements Opcode(Code) | | Expression.
|
currentPos | int currentPos(Code) | | |
maxLocalsmaxStack | int maxLocalsmaxStack(Code) | | |
edited | final protected boolean edited()(Code) | | |
getFileName | public String getFileName()(Code) | | Returns the source file containing the expression.
null if this information is not available. |
getLineNumber | public int getLineNumber()(Code) | | Returns the line number of the source line containing the expression.
-1 if this information is not available. |
indexOfBytecode | public int indexOfBytecode()(Code) | | Returns the index of the bytecode corresponding to the expression. It is
the index into the byte array containing the Java bytecode that
implements the method.
|
locals | final protected int locals()(Code) | | |
mayThrow | public CtClass[] mayThrow()(Code) | | Returns the list of exceptions that the expression may throw. This list
includes both the exceptions that the try-catch statements including the
expression can catch and the exceptions that the throws declaration
allows the method to throw.
|
replace | abstract public void replace(String statement) throws CannotCompileException(Code) | | Replaces this expression with the bytecode derived from
the given source text.
Parameters: statement - a Java statement. |
replace | public void replace(String statement, ExprEditor recursive) throws CannotCompileException(Code) | | Replaces this expression with the bytecode derived from
the given source text and ExprEditor .
Parameters: statement - a Java statement. Parameters: recursive - if not null, the substituted bytecodeis recursively processed by the givenExprEditor . since: 3.1 |
stack | final protected int stack()(Code) | | |
storeStack | final static void storeStack(CtClass[] params, boolean isStaticCall, int regno, Bytecode bytecode)(Code) | | |
where | public CtBehavior where()(Code) | | Returns the constructor or method containing the expression.
|
withinStatic | final protected boolean withinStatic()(Code) | | Returns true if this method is static.
|
|
|