|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mvel2.asm.tree.analysis.Interpreter<BasicValue>
org.mvel2.asm.tree.analysis.BasicInterpreter
public class BasicInterpreter
An Interpreter for BasicValue values.
| Field Summary |
|---|
| Fields inherited from class org.mvel2.asm.tree.analysis.Interpreter |
|---|
api |
| Constructor Summary | |
|---|---|
|
BasicInterpreter()
|
protected |
BasicInterpreter(int api)
|
| Method Summary | |
|---|---|
BasicValue |
binaryOperation(AbstractInsnNode insn,
BasicValue value1,
BasicValue value2)
Interprets a bytecode instruction with two arguments. |
BasicValue |
copyOperation(AbstractInsnNode insn,
BasicValue value)
Interprets a bytecode instruction that moves a value on the stack or to or from local variables. |
BasicValue |
merge(BasicValue v,
BasicValue w)
Merges two values. |
BasicValue |
naryOperation(AbstractInsnNode insn,
List<? extends BasicValue> values)
Interprets a bytecode instruction with a variable number of arguments. |
BasicValue |
newOperation(AbstractInsnNode insn)
Interprets a bytecode instruction without arguments. |
BasicValue |
newValue(Type type)
Creates a new value that represents the given type. |
void |
returnOperation(AbstractInsnNode insn,
BasicValue value,
BasicValue expected)
Interprets a bytecode return instruction. |
BasicValue |
ternaryOperation(AbstractInsnNode insn,
BasicValue value1,
BasicValue value2,
BasicValue value3)
Interprets a bytecode instruction with three arguments. |
BasicValue |
unaryOperation(AbstractInsnNode insn,
BasicValue 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 BasicInterpreter()
protected BasicInterpreter(int api)
| Method Detail |
|---|
public BasicValue newValue(Type type)
Interpreterthis), exception
handler variable and with null type for variables reserved
by long and double types.
newValue in class Interpreter<BasicValue>type - a primitive or reference type, or null to represent
an uninitialized value.
public BasicValue newOperation(AbstractInsnNode insn)
throws AnalyzerException
Interpreter
newOperation in class Interpreter<BasicValue>insn - the bytecode instruction to be interpreted.
AnalyzerException - if an error occured during the interpretation.
public BasicValue copyOperation(AbstractInsnNode insn,
BasicValue value)
throws AnalyzerException
Interpreter
copyOperation in class Interpreter<BasicValue>insn - the bytecode instruction to be interpreted.value - the value that must be moved by the instruction.
AnalyzerException - if an error occured during the interpretation.
public BasicValue unaryOperation(AbstractInsnNode insn,
BasicValue value)
throws AnalyzerException
Interpreter
unaryOperation in class Interpreter<BasicValue>insn - the bytecode instruction to be interpreted.value - the argument of the instruction to be interpreted.
AnalyzerException - if an error occured during the interpretation.
public BasicValue binaryOperation(AbstractInsnNode insn,
BasicValue value1,
BasicValue value2)
throws AnalyzerException
Interpreter
binaryOperation in class Interpreter<BasicValue>insn - 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.
AnalyzerException - if an error occured during the interpretation.
public BasicValue ternaryOperation(AbstractInsnNode insn,
BasicValue value1,
BasicValue value2,
BasicValue value3)
throws AnalyzerException
Interpreter
ternaryOperation in class Interpreter<BasicValue>insn - 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.
AnalyzerException - if an error occured during the interpretation.
public BasicValue naryOperation(AbstractInsnNode insn,
List<? extends BasicValue> values)
throws AnalyzerException
Interpreter
naryOperation in class Interpreter<BasicValue>insn - the bytecode instruction to be interpreted.values - the arguments of the instruction to be interpreted.
AnalyzerException - if an error occured during the interpretation.
public void returnOperation(AbstractInsnNode insn,
BasicValue value,
BasicValue expected)
throws AnalyzerException
Interpreter
returnOperation in class Interpreter<BasicValue>insn - the bytecode instruction to be interpreted.value - the argument of the instruction to be interpreted.expected - the expected return type of the analyzed method.
AnalyzerException - if an error occured during the interpretation.
public BasicValue merge(BasicValue v,
BasicValue w)
Interpreter
merge in class Interpreter<BasicValue>v - a value.w - another value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||