/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | ConstantBootstraps.java | 92 public static Object nullConstant(MethodHandles.Lookup lookup, String name, Class<?> type) { in nullConstant() argument 111 public static Class<?> primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type) { in primitiveClass() argument 144 …public static <E extends Enum<E>> E enumConstant(MethodHandles.Lookup lookup, String name, Class<E… in enumConstant() argument 145 requireNonNull(lookup); in enumConstant() 148 validateClassAccess(lookup, type); in enumConstant() 168 public static Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, in getStaticFinal() argument 170 requireNonNull(lookup); in getStaticFinal() 177 mh = lookup.findStaticGetter(declaringClass, name, type); in getStaticFinal() 181 MethodHandleInfo info = lookup.revealDirect(mh); in getStaticFinal() 224 public static Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type) { in getStaticFinal() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 50 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_defaultLookupClassAndModes() 56 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_LookupIn() 69 MethodHandles.Lookup inner2 = Inner1.lookup.in(Inner2.class); in test_LookupIn() 73 MethodHandles.lookup().in(null); in test_LookupIn() 80 MethodHandles.lookup().in(MethodHandle.class); in test_LookupIn() 87 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_privateLookupIn() 123 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findStatic() 179 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findConstructor() 238 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findVirtual() 308 public static final Lookup lookup = MethodHandles.lookup(); field in MethodHandlesTest.A [all …]
|
D | MethodHandleAccessorsTest.java | 538 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testBooleanSettersAndGetters() local 543 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in testBooleanSettersAndGetters() 545 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in testBooleanSettersAndGetters() 548 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in testBooleanSettersAndGetters() 550 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in testBooleanSettersAndGetters() 558 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testByteSettersAndGetters() local 563 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in testByteSettersAndGetters() 565 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in testByteSettersAndGetters() 568 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in testByteSettersAndGetters() 570 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in testByteSettersAndGetters() [all …]
|
D | MethodHandleCombinersTest.java | 59 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments() 125 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments_List() 173 MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 178 MethodHandle handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 202 handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 216 handler = MethodHandles.lookup().findVirtual(IllegalArgumentException.class, in testCatchException() 257 MethodHandle test = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 264 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 266 … final MethodHandle fallback = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 654 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo() [all …]
|
D | CallSitesTest.java | 44 return MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", mt); in methodHandleForAdd2() 67 return MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", add2MethodType); in createTargetHook() 75 MethodHandles.lookup().findStatic(OurConstantCallSite.class, "createTargetHook", in test_ConstantCallSiteWithHook() 122 MethodHandles.lookup().findStatic(CallSitesTest.class, "add3", mt_add3); in test_MutableCallSite() 134 MethodHandles.lookup().findStatic(CallSitesTest.class, "sub2", in test_MutableCallSite() 180 MethodHandles.lookup().findStatic(CallSitesTest.class, "add3", mt_add3); in test_VolatileCallSite() 193 MethodHandles.lookup().findStatic(CallSitesTest.class, "sub2", in test_VolatileCallSite() 203 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundMutableCallSite() 211 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundVolatileCallSite() 227 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_LateBoundMutableCallSite() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | ListResourceBundle.java | 129 if (lookup == null) { in handleGetObject() 135 return lookup.get(key); // this class ignores locales in handleGetObject() 148 if (lookup == null) { in getKeys() 153 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys() 167 if (lookup == null) { in handleKeySet() 170 return lookup.keySet(); in handleKeySet() 192 if (lookup != null) in loadLookup() 206 lookup = temp; in loadLookup() 209 private volatile Map<String,Object> lookup; field in ListResourceBundle
|
D | PropertyResourceBundle.java | 190 lookup = new HashMap(properties); in PropertyResourceBundle() 211 lookup = new HashMap(properties); in PropertyResourceBundle() 219 return lookup.get(key); in handleGetObject() 232 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys() 246 return lookup.keySet(); in handleKeySet() 250 private final Map<String,Object> lookup; field in PropertyResourceBundle
|
/libcore/ojluni/src/main/java/java/lang/runtime/ |
D | ObjectMethods.java | 77 MethodHandles.Lookup lookup = MethodHandles.lookup(); 105 OBJECT_EQ = lookup.findStatic(OBJECT_METHODS_CLASS, "eq", 107 HASH_COMBINER = lookup.findStatic(OBJECT_METHODS_CLASS, "hashCombiner", 110 primitiveEquals.put(byte.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 112 primitiveEquals.put(short.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 114 primitiveEquals.put(char.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 116 primitiveEquals.put(int.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 118 primitiveEquals.put(long.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 120 primitiveEquals.put(float.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 122 primitiveEquals.put(double.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/ |
D | TestFieldLookupAccessibility.java | 58 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_GETTER() method 67 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_SETTER() method 76 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_STATIC_GETTER() method 85 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_STATIC_SETTER() method 94 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_GETTER() method 99 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_GETTER_ACCESSIBLE() method 104 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_SETTER() method 113 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_SETTER_ACCESSIBLE() method 118 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in VH() method 127 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in VH_STATIC() method [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestReflection.java | 53 return MethodHandles.lookup(). in handle() 73 MethodHandle mh = MethodHandles.lookup().unreflect( in methodHandleInvoke() 87 MethodHandle mh = MethodHandles.lookup().unreflect( in methodInvocationFromMethodInfo() 89 MethodHandleInfo info = MethodHandles.lookup().revealDirect(mh); in methodInvocationFromMethodInfo() 90 Method im = info.reflectAs(Method.class, MethodHandles.lookup()); in methodInvocationFromMethodInfo() 101 MethodHandleInfo info = MethodHandles.lookup().revealDirect(mh); in reflectAsFromVarHandleInvoker() 103 info.reflectAs(Method.class, MethodHandles.lookup()); in reflectAsFromVarHandleInvoker() 113 MethodHandleInfo info = MethodHandles.lookup().revealDirect(mh); in reflectAsFromFindVirtual() 115 info.reflectAs(Method.class, MethodHandles.lookup()); in reflectAsFromFindVirtual()
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | DirectMethodHandleDescImpl.java | 153 public MethodHandle resolveConstantDesc(MethodHandles.Lookup lookup) in resolveConstantDesc() argument 155 Class<?> resolvedOwner = (Class<?>) owner.resolveConstantDesc(lookup); in resolveConstantDesc() 156 MethodType invocationType = (MethodType) this.invocationType().resolveConstantDesc(lookup); in resolveConstantDesc() 159 … INTERFACE_STATIC -> lookup.findStatic(resolvedOwner, name, invocationType); in resolveConstantDesc() 161 …INTERFACE_VIRTUAL -> lookup.findVirtual(resolvedOwner, name, invocationType.dropParameter… in resolveConstantDesc() 163 …INTERFACE_SPECIAL -> lookup.findSpecial(resolvedOwner, name, invocationType.dropParameter… in resolveConstantDesc() 164 …case CONSTRUCTOR -> lookup.findConstructor(resolvedOwner, invocationType.changeRetu… in resolveConstantDesc() 165 …case GETTER -> lookup.findGetter(resolvedOwner, name, invocationType.returnTyp… in resolveConstantDesc() 166 …case STATIC_GETTER -> lookup.findStaticGetter(resolvedOwner, name, invocationType.ret… in resolveConstantDesc() 167 …case SETTER -> lookup.findSetter(resolvedOwner, name, invocationType.parameter… in resolveConstantDesc() [all …]
|
D | AsTypeMethodHandleDesc.java | 59 public MethodHandle resolveConstantDesc(MethodHandles.Lookup lookup) in resolveConstantDesc() argument 61 MethodHandle handle = (MethodHandle) underlying.resolveConstantDesc(lookup); in resolveConstantDesc() 62 MethodType methodType = (MethodType) type.resolveConstantDesc(lookup); in resolveConstantDesc()
|
D | ReferenceClassDescImpl.java | 65 public Class<?> resolveConstantDesc(MethodHandles.Lookup lookup) in resolveConstantDesc() argument 73 return lookup.findClass(descriptorString()); in resolveConstantDesc() 75 … Class<?> clazz = lookup.findClass(internalToBinary(dropFirstAndLastChar(c.descriptorString()))); in resolveConstantDesc()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamClassTest.java | 67 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_forClass() 76 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFieldLjava_lang_String() 87 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFields() 98 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getName() 109 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getSerialVersionUID() 134 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_lookupLjava_lang_Class() 145 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_toString() 157 .lookup(ObjectStreamClass.class); in testSerialization() 166 .lookup(proxyClass); in test_specialTypes() 175 .lookup(Thread.State.class); in test_specialTypes() [all …]
|
/libcore/ojluni/src/main/java/sun/util/resources/ |
D | OpenListResourceBundle.java | 77 return lookup.get(key); // this class ignores locales in handleGetObject() 97 return lookup.keySet(); in handleKeySet() 127 if (lookup == null) { in loadLookupTablesIfNecessary() 149 if (lookup == null) { in loadLookup() 150 lookup = temp; in loadLookup() 167 private volatile Map<String, Object> lookup; field in OpenListResourceBundle
|
/libcore/ojluni/src/test/java/lang/constant/access_test/pkg1/ |
D | MethodTypeDescriptorAccessTest.java | 49 Lookup selfLookup = MethodHandles.lookup(); in test() 68 private void checkValidAccess(MethodTypeDesc mtd, Lookup lookup) { in checkValidAccess() argument 70 MethodType mt = (MethodType)mtd.resolveConstantDesc(lookup); in checkValidAccess() 77 private void checkInvalidAccess(MethodTypeDesc mtd, Lookup lookup) { in checkInvalidAccess() argument 79 MethodType mt = (MethodType)mtd.resolveConstantDesc(lookup); in checkInvalidAccess()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodHandlesGeneralTest.java | 108 …void testFindStatic(Lookup lookup, Class<?> defc, Class<?> ret, String name, Class<?>... params) t… in testFindStatic() argument 109 testFindStatic(true, lookup, defc, ret, name, params); in testFindStatic() 112 …void testFindStatic(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cla… in testFindStatic() argument 119 if (verbosity >= 4) System.out.println("lookup via "+lookup+" of "+defc+" "+name+type); in testFindStatic() 120 target = maybeMoveIn(lookup, defc).findStatic(defc, methodName, type); in testFindStatic() 131 … System.out.println("findStatic "+lookup+": "+defc.getName()+"."+name+"/"+type+" => "+target in testFindStatic() 207 …void testFindVirtual(Lookup lookup, Class<?> rcvc, Class<?> defc, Class<?> ret, String name, Class… in testFindVirtual() argument 208 testFindVirtual(true, lookup, rcvc, defc, ret, name, params); in testFindVirtual() 211 …void testFindVirtual(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cl… in testFindVirtual() argument 212 testFindVirtual(positive, lookup, defc, defc, ret, name, params); in testFindVirtual() [all …]
|
D | DropArgumentsTest.java | 47 …MethodHandle cat = lookup().findVirtual(String.class, "concat", methodType(String.class, String.cl… in testDropArgumentsToMatch() 61 …MethodHandle cat = lookup().findVirtual(String.class, "concat", methodType(String.class, String.cl… in dropArgumentsToMatchNPEData() 77 …MethodHandle cat = lookup().findVirtual(String.class, "concat", methodType(String.class, String.cl… in dropArgumentsToMatchIAEData() 97 MethodHandle cat = lookup().findVirtual(String.class, "concat", in dropArgumentsToMatchTestWithVoid() 117 MethodHandle mh1 = MethodHandles.lookup().findStatic(MethodSet.class, "mVoid", in dropArgumentsToMatchPosSkipRange() 123 MethodHandle mh2 = MethodHandles.lookup().findStatic(MethodSet.class, "mVoid", in dropArgumentsToMatchPosSkipRange()
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | WhiteBoxResizeTest.java | 62 MethodHandles.Lookup lookup = MethodHandles.privateLookupIn(mClass, MethodHandles.lookup()); in WhiteBoxResizeTest() local 63 TABLE = lookup.findVarHandle(mClass, "table", nodeArrayClass); in WhiteBoxResizeTest() 64 this.TABLE_SIZE_FOR = lookup.findStatic( in WhiteBoxResizeTest() 67 this.THRESHOLD = lookup.findVarHandle(mClass, "threshold", int.class); in WhiteBoxResizeTest()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | GetCallerClassTest.java | 147 MethodHandles.Lookup lookup = MethodHandles.lookup(); in methodHandleGetCallerClass() local 149 MethodHandle mh = lookup.findVirtual(StackWalker.class, "getCallerClass", in methodHandleGetCallerClass() 252 MethodHandles.Lookup lookup = MethodHandles.publicLookup(); in callMethodHandle() local 254 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandle() 263 MethodHandles.Lookup lookup = MethodHandles.publicLookup(); in callMethodHandleRefl() local 265 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandleRefl()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/pkg/ |
D | C.java | 31 public static MethodHandles.Lookup lookup() { in lookup() method in C 32 return MethodHandles.lookup(); in lookup()
|
D | B_extends_A.java | 31 public static MethodHandles.Lookup lookup() { in lookup() method in B_extends_A 32 return MethodHandles.lookup(); in lookup()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/pkg/subpkg/ |
D | C.java | 31 public static MethodHandles.Lookup lookup() { in lookup() method in C 32 return MethodHandles.lookup(); in lookup()
|
D | B_extends_A.java | 33 public static MethodHandles.Lookup lookup() { in lookup() method in B_extends_A 34 return MethodHandles.lookup(); in lookup()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BulkPutBuffer.java | 167 var lookup = MethodHandles.lookup(); in BufferProxy() local 171 alloc = lookup.findStatic(bufferType, "allocate", in BufferProxy() 173 allocBB = lookup.findStatic(ByteBuffer.class, "allocate", in BufferProxy() 175 allocDirect = lookup.findStatic(ByteBuffer.class, "allocateDirect", in BufferProxy() 178 asReadOnlyBuffer = lookup.findVirtual(bufferType, in BufferProxy() 181 asTypeBuffer = lookup.findVirtual(ByteBuffer.class, in BufferProxy() 185 putAbs = lookup.findVirtual(bufferType, "put", in BufferProxy() 187 getAbs = lookup.findVirtual(bufferType, "get", in BufferProxy() 190 putBufAbs = lookup.findVirtual(bufferType, "put", in BufferProxy() 193 putBufRel = lookup.findVirtual(bufferType, "put", in BufferProxy() [all …]
|