Home
last modified time | relevance | path

Searched refs:MethodHandleWrapper (Results 1 – 2 of 2) sorted by relevance

/art/test/1976-hello-structural-static-methods/src/art/
DTest1976.java94 public static final class MethodHandleWrapper { class in Test1976
97 public MethodHandleWrapper(MethodHandle mh, Method m) { in MethodHandleWrapper() method in Test1976.MethodHandleWrapper
115 public static MethodHandleWrapper[] getMethodHandles(Method[] methods) throws Exception { in getMethodHandles()
117 ArrayList<MethodHandleWrapper> res = new ArrayList<>(); in getMethodHandles()
122 res.add(new MethodHandleWrapper(l.unreflect(m), m)); in getMethodHandles()
124 return res.toArray(new MethodHandleWrapper[0]); in getMethodHandles()
127 public static void runMethodHandles(MethodHandleWrapper[] handles) throws Exception { in runMethodHandles()
128 for (MethodHandleWrapper h : handles) { in runMethodHandles()
161 MethodHandleWrapper[] handles = getMethodHandles(methods); in doTest()
/art/test/1975-hello-structural-transformation/src/art/
DTest1975.java140 public static final class MethodHandleWrapper { class in Test1975
143 public MethodHandleWrapper(MethodHandle mh, Field f) { in MethodHandleWrapper() method in Test1975.MethodHandleWrapper
161 public static MethodHandleWrapper[] getMethodHandles(Field[] fields) throws Exception { in getMethodHandles()
163 MethodHandleWrapper[] res = new MethodHandleWrapper[fields.length]; in getMethodHandles()
165 res[i] = new MethodHandleWrapper(l.unreflectGetter(fields[i]), fields[i]);; in getMethodHandles()
170 public static void readMethodHandles(MethodHandleWrapper[] handles) throws Exception { in readMethodHandles()
171 for (MethodHandleWrapper h : handles) { in readMethodHandles()
197 MethodHandleWrapper[] handles = getMethodHandles(Transform1975.class.getFields()); in doTest()
198 for (MethodHandleWrapper h : handles) { in doTest()
203MethodHandleWrapper write_wrapper = new MethodHandleWrapper(MethodHandles.lookup().unreflectSetter… in doTest()