1 30 package com.tc.asm.tree.analysis; 31 32 import java.util.List ; 33 34 import com.tc.asm.Type; 35 import com.tc.asm.tree.AbstractInsnNode; 36 37 47 public interface Interpreter { 48 49 57 Value newValue(Type type); 58 59 71 Value newOperation(AbstractInsnNode insn) throws AnalyzerException; 72 73 86 Value copyOperation(AbstractInsnNode insn, Value value) 87 throws AnalyzerException; 88 89 104 Value unaryOperation(AbstractInsnNode insn, Value value) 105 throws AnalyzerException; 106 107 124 Value binaryOperation(AbstractInsnNode insn, Value value1, Value value2) 125 throws AnalyzerException; 126 127 140 Value ternaryOperation( 141 AbstractInsnNode insn, 142 Value value1, 143 Value value2, 144 Value value3) throws AnalyzerException; 145 146 158 Value naryOperation(AbstractInsnNode insn, List values) 159 throws AnalyzerException; 160 161 173 Value merge(Value v, Value w); 174 } 175 | Popular Tags |