|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.asm.tree.analysis.SourceInterpreter
public class SourceInterpreter
An Interpreter for SourceValue values.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SourceInterpreter()
|
|
| Method Summary | |
|---|---|
Value |
binaryOperation(AbstractInsnNode insn,
Value value1,
Value value2)
Interprets a bytecode instruction with two arguments. |
Value |
copyOperation(AbstractInsnNode insn,
Value value)
Interprets a bytecode instruction that moves a value on the stack or to or from local variables. |
Value |
merge(Value v,
Value w)
Merges two values. |
Value |
naryOperation(AbstractInsnNode insn,
List values)
Interprets a bytecode instruction with a variable number of arguments. |
Value |
newOperation(AbstractInsnNode insn)
Interprets a bytecode instruction without arguments. |
Value |
newValue(Type type)
Creates a new value that represents the given type. |
void |
returnOperation(AbstractInsnNode insn,
Value value,
Value expected)
Interprets a bytecode return instruction. |
Value |
ternaryOperation(AbstractInsnNode insn,
Value value1,
Value value2,
Value value3)
Interprets a bytecode instruction with three arguments. |
Value |
unaryOperation(AbstractInsnNode insn,
Value value)
Interprets a bytecode instruction with a single argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceInterpreter()
| Method Detail |
|---|
public Value newValue(Type type)
Interpreterthis),
exception handler variable and with null type
for variables reserved by long and double types.
newValue in interface Interpretertype - a primitive or reference type, or null to
represent an uninitialized value.
public Value newOperation(AbstractInsnNode insn)
Interpreter
newOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.
public Value copyOperation(AbstractInsnNode insn,
Value value)
Interpreter
copyOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.value - the value that must be moved by the instruction.
public Value unaryOperation(AbstractInsnNode insn,
Value value)
Interpreter
unaryOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.value - the argument of the instruction to be interpreted.
public Value binaryOperation(AbstractInsnNode insn,
Value value1,
Value value2)
Interpreter
binaryOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.value1 - the first argument of the instruction to be interpreted.value2 - the second argument of the instruction to be interpreted.
public Value ternaryOperation(AbstractInsnNode insn,
Value value1,
Value value2,
Value value3)
Interpreter
ternaryOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.value1 - the first argument of the instruction to be interpreted.value2 - the second argument of the instruction to be interpreted.value3 - the third argument of the instruction to be interpreted.
public Value naryOperation(AbstractInsnNode insn,
List values)
Interpreter
naryOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.values - the arguments of the instruction to be interpreted.
public void returnOperation(AbstractInsnNode insn,
Value value,
Value expected)
Interpreter
returnOperation in interface Interpreterinsn - the bytecode instruction to be interpreted.value - the argument of the instruction to be interpreted.expected - the expected return type of the analyzed method.
public Value merge(Value v,
Value w)
Interpreter
merge in interface Interpreterv - a value.w - another value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||