1 19 20 package jode.jvm; 21 import jode.bytecode.Reference; 22 import java.lang.reflect.InvocationTargetException ; 23 24 39 public interface RuntimeEnvironment { 40 50 public Object getField(Reference fieldref, Object obj) 51 throws InterpreterException; 52 53 63 public void putField(Reference fieldref, Object obj, Object value) 64 throws InterpreterException; 65 66 67 78 public Object invokeMethod(Reference methodRef, boolean isVirtual, 79 Object cls, Object [] params) 80 throws InterpreterException, InvocationTargetException ; 81 82 88 public Object invokeConstructor(Reference methodRef, Object [] params) 89 throws InterpreterException, InvocationTargetException ; 90 91 96 public boolean instanceOf(Object obj, String className) 97 throws InterpreterException; 98 99 105 public Object newArray(String type, int[] dimensions) 106 throws InterpreterException; 107 108 112 public void enterMonitor(Object obj) 113 throws InterpreterException; 114 118 public void exitMonitor(Object obj) 119 throws InterpreterException; 120 } 121 122 | Popular Tags |