| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv CodeIterator | |
| pack-priv static final String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv CtClass | |
| pack-priv MethodInfo |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| pack-priv static final boolean | |
| protected final boolean | |
| protected final ConstPool | |
| public CtClass | |
| public String | Returns: null if this information is not available.Returns the source file containing the expression. |
| public int | Returns: -1 if this information is not available.Returns the line number of the source line containing the expression. |
| public int | |
| protected final int | |
| public CtClass[] | |
| public abstract void | |
| public void | replace(String
a Java statement except try-catch. statement, ExprEditor if not null, the substituted bytecode
is recursively processed by the given
recursive)ExprEditor.Replaces this expression with the bytecode derived from
the given source text and |
| protected void | |
| protected void | |
| protected final int | |
| pack-priv static final void | |
| private static void | |
| public CtBehavior | |
| protected final boolean |
| currentPos | back to summary |
|---|---|
| pack-priv int currentPos | |
| edited | back to summary |
|---|---|
| pack-priv boolean edited | |
| iterator | back to summary |
|---|---|
| pack-priv CodeIterator iterator | |
| javaLangObject | back to summary |
|---|---|
| pack-priv static final String javaLangObject | |
| maxLocals | back to summary |
|---|---|
| pack-priv int maxLocals | |
| maxStack | back to summary |
|---|---|
| pack-priv int maxStack | |
| thisClass | back to summary |
|---|---|
| pack-priv CtClass thisClass | |
| thisMethod | back to summary |
|---|---|
| pack-priv MethodInfo thisMethod | |
| Expr | back to summary |
|---|---|
| protected Expr(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor. Do not use; internal-use only. | |
| addClass | back to summary |
|---|---|
| private static void addClass(List<CtClass> list, CtClass c) | |
| checkResultValue | back to summary |
|---|---|
| pack-priv static final boolean checkResultValue(CtClass retType, String prog) throws CannotCompileException | |
| edited | back to summary |
|---|---|
| protected final boolean edited() | |
| getConstPool | back to summary |
|---|---|
| protected final ConstPool getConstPool() | |
| getEnclosingClass | back to summary |
|---|---|
| public CtClass getEnclosingClass() Returns the class that declares the method enclosing this expression.
| |
| getFileName | back to summary |
|---|---|
| public String getFileName() Returns the source file containing the expression.
| |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Returns the line number of the source line containing the expression.
| |
| indexOfBytecode | back to summary |
|---|---|
| public int indexOfBytecode() 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 | back to summary |
|---|---|
| protected final int locals() | |
| mayThrow | back to summary |
|---|---|
| public CtClass[] mayThrow() 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 | back to summary |
|---|---|
| public abstract void replace(String statement) throws CannotCompileException Replaces this expression with the bytecode derived from the given source text.
| |
| replace | back to summary |
|---|---|
| public void replace(String statement, ExprEditor recursive) throws CannotCompileException Replaces this expression with the bytecode derived from
the given source text and
| |
| replace0 | back to summary |
|---|---|
| protected void replace0(int pos, Bytecode bytecode, int size) throws BadBytecode | |
| runEditor | back to summary |
|---|---|
| protected void runEditor(ExprEditor ed, CodeIterator oldIterator) throws CannotCompileException | |
| stack | back to summary |
|---|---|
| protected final int stack() | |
| storeStack | back to summary |
|---|---|
| pack-priv static final void storeStack(CtClass[] params, boolean isStaticCall, int regno, Bytecode bytecode) | |
| storeStack0 | back to summary |
|---|---|
| private static void storeStack0(int i, int n, CtClass[] params, int regno, Bytecode bytecode) | |
| where | back to summary |
|---|---|
| public CtBehavior where() Returns the constructor or method containing the expression. | |
| withinStatic | back to summary |
|---|---|
| protected final boolean withinStatic() Returns true if this method is static. | |