/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() 111 public static Class<?> primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type) { in primitiveClass() 144 …public static <E extends Enum<E>> E enumConstant(MethodHandles.Lookup lookup, String name, Class<E… in enumConstant() 168 public static Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, in getStaticFinal() 224 public static Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type) { in getStaticFinal() 258 public static Object invoke(MethodHandles.Lookup lookup, String name, Class<?> type, in invoke() 289 …public static VarHandle fieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> … in fieldVarHandle() 323 …public static VarHandle staticFieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHa… in staticFieldVarHandle() 355 …public static VarHandle arrayVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> … in arrayVarHandle() 413 …public static Object explicitCast(MethodHandles.Lookup lookup, String name, Class<?> dstType, Obje… in explicitCast() [all …]
|
D | MethodHandleInfo.java | 31 import java.lang.invoke.MethodHandles.Lookup; 201 public <T extends Member> T reflectAs(Class<T> expected, Lookup lookup); in reflectAs()
|
D | MethodHandles.java | 95 public static Lookup lookup() { in lookup() 96 return new Lookup(Reflection.getCallerClass()); in lookup() 119 public static Lookup publicLookup() { in publicLookup() 120 return Lookup.PUBLIC_LOOKUP; in publicLookup() 136 …public static Lookup privateLookupIn(Class<?> targetClass, Lookup lookup) throws IllegalAccessExce… in privateLookupIn() 166 return new Lookup(targetClass); in privateLookupIn() 561 class Lookup { class in MethodHandles 649 Lookup(Class<?> lookupClass) { in Lookup() method in MethodHandles.Lookup 655 private Lookup(Class<?> lookupClass, int allowedModes) { in Lookup() method in MethodHandles.Lookup 684 public Lookup in(Class<?> requestedLookupClass) { in in() [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() 67 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_SETTER() 76 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_STATIC_GETTER() 85 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_STATIC_SETTER() 94 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_GETTER() 99 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_GETTER_ACCESSIBLE() 104 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_SETTER() 113 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in MH_UNREFLECT_SETTER_ACCESSIBLE() 118 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in VH() 127 Object lookup(MethodHandles.Lookup l, Field f) throws Exception { in VH_STATIC() [all …]
|
/libcore/ojluni/src/test/java/lang/constant/access_test/pkg1/ |
D | MethodTypeDescriptorAccessTest.java | 40 import static java.lang.invoke.MethodHandles.Lookup.*; 49 Lookup selfLookup = MethodHandles.lookup(); in test() 68 private void checkValidAccess(MethodTypeDesc mtd, Lookup lookup) { in checkValidAccess() 77 private void checkInvalidAccess(MethodTypeDesc mtd, Lookup lookup) { in checkInvalidAccess()
|
/libcore/luni/src/test/java/libcore/sun/invoke/util/ |
D | VerifyAccessTest.java | 38 MethodHandles.Lookup.PACKAGE)); in testIsClassAccessible() 40 MethodHandles.Lookup.PACKAGE)); in testIsClassAccessible() 44 MethodHandles.Lookup.PACKAGE)); in testIsClassAccessible()
|
/libcore/ojluni/src/test/java/lang/invoke/remote/ |
D | RemoteExample.java | 26 import java.lang.invoke.MethodHandles.Lookup; 34 public static Lookup lookup() { return MethodHandles.lookup(); } in lookup()
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | LambdaMetafactory.java | 36 public static CallSite metafactory(MethodHandles.Lookup caller, in metafactory() 44 public static CallSite altMetafactory(MethodHandles.Lookup caller, in altMetafactory()
|
D | MethodHandles.java | 36 public static Lookup lookup() { return null; } in lookup() 38 public static Lookup publicLookup() { return null; } in publicLookup() 44 class Lookup { class in MethodHandles 57 public Lookup in(Class<?> requestedLookupClass) { return null; } in in()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | PermuteArgsReturnVoidTest.java | 54 MethodHandles.Lookup l = MethodHandles.lookup(); in testReturnOnStack() 74 MethodHandles.Lookup l = MethodHandles.lookup(); in testReturnFromArg()
|
D | MethodHandlesGeneralTest.java | 48 import java.lang.invoke.MethodHandles.Lookup; 104 testFindStatic((Boolean)ac[0], (Lookup)ac[1], defc, ret, name, params); in testFindStatic() 108 …void testFindStatic(Lookup lookup, Class<?> defc, Class<?> ret, String name, Class<?>... params) t… in testFindStatic() 112 …void testFindStatic(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cla… in testFindStatic() 203 testFindVirtual((Boolean)ac[0], (Lookup)ac[1], rcvc, defc, ret, name, params); in testFindVirtual() 207 …void testFindVirtual(Lookup lookup, Class<?> rcvc, Class<?> defc, Class<?> ret, String name, Class… in testFindVirtual() 211 …void testFindVirtual(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cl… in testFindVirtual() 215 …void testFindVirtual(boolean positive, Lookup lookup, Class<?> rcvc, Class<?> defc, Class<?> ret, … in testFindVirtual() 284 for (Lookup lookup : new Lookup[]{ PRIVATE, EXAMPLE, PACKAGE, PUBLIC }) { in testFindSpecial() 311 void testFindSpecial(boolean positive, Lookup lookup, Class<?> specialCaller, in testFindSpecial() [all …]
|
D | MethodHandlesTest.java | 31 import java.lang.invoke.MethodHandles.Lookup; 402 static final Lookup PRIVATE = MethodHandles.lookup(); 404 static final Lookup PACKAGE = PackageSibling.lookup(); 406 static final Lookup SUBCLASS = RemoteExample.lookup(); 408 static final Lookup PUBLIC = MethodHandles.publicLookup(); 452 static final Lookup EXAMPLE = MethodHandles.lookup(); // for testing findSpecial 455 static final Lookup EXAMPLE = Example.EXAMPLE; 517 static Lookup maybeMoveIn(Lookup lookup, Class<?> defc) { 777 private static final Lookup IMPL_LOOKUP = MethodHandles.lookup(); 812 MethodHandles.Lookup lookup = IMPL_LOOKUP; in makeArrays() [all …]
|
/libcore/toolchainapi/api/ |
D | current.txt | 6 … java.lang.invoke.CallSite altMetafactory(java.lang.invoke.MethodHandles.Lookup, String, java.lang… 7 …tic java.lang.invoke.CallSite metafactory(java.lang.invoke.MethodHandles.Lookup, String, java.lang…
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleAccessorsTest.java | 538 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testBooleanSettersAndGetters() 558 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testByteSettersAndGetters() 578 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testCharSettersAndGetters() 598 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testShortSettersAndGetters() 618 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testIntSettersAndGetters() 638 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testFloatSettersAndGetters() 658 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testDoubleSettersAndGetters() 678 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testLongSettersAndGetters() 698 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testStringSettersAndGetters() 720 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testLookup() [all …]
|
D | MethodHandlesTest.java | 24 import java.lang.invoke.MethodHandles.Lookup; 38 import static java.lang.invoke.MethodHandles.Lookup.*; 44 MethodHandles.Lookup publicLookup = MethodHandles.publicLookup(); in test_publicLookupClassAndModes() 50 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_defaultLookupClassAndModes() 56 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_LookupIn() 60 MethodHandles.Lookup siblingLookup = defaultLookup.in(PackageSibling.class); in test_LookupIn() 65 MethodHandles.Lookup nonSibling = defaultLookup.in(Vector.class); in test_LookupIn() 69 MethodHandles.Lookup inner2 = Inner1.lookup.in(Inner2.class); in test_LookupIn() 87 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_privateLookupIn() 109 MethodHandles.Lookup privateLookup = in test_privateLookupIn() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/pkg/ |
D | C.java | 31 public static MethodHandles.Lookup lookup() { in lookup()
|
D | B_extends_A.java | 31 public static MethodHandles.Lookup lookup() { in lookup()
|
D | A.java | 53 public static MethodHandles.Lookup 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()
|
D | B_extends_A.java | 33 public static MethodHandles.Lookup lookup() { in lookup()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 37 public static java.lang.invoke.MethodHandles.Lookup lookup() { in lookup() 41 public static java.lang.invoke.MethodHandles.Lookup publicLookup() { in publicLookup() 363 public static final class Lookup { class in MethodHandles 365 Lookup(java.lang.Class<?> lookupClass) { in Lookup() method in MethodHandles.Lookup 370 private Lookup(java.lang.Class<?> lookupClass, int allowedModes) { in Lookup() method in MethodHandles.Lookup 386 public java.lang.invoke.MethodHandles.Lookup in(java.lang.Class<?> requestedLookupClass) { in in() 608 static final java.lang.invoke.MethodHandles.Lookup IMPL_LOOKUP; 622 static final java.lang.invoke.MethodHandles.Lookup PUBLIC_LOOKUP;
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | Striped64.java | 145 MethodHandles.Lookup l = MethodHandles.lookup(); 386 MethodHandles.Lookup l = MethodHandles.lookup(); 393 public MethodHandles.Lookup run() {
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | ConstantDesc.java | 109 Object resolveConstantDesc(MethodHandles.Lookup lookup) throws ReflectiveOperationException; in resolveConstantDesc()
|
D | PrimitiveClassDescImpl.java | 66 public Class<?> resolveConstantDesc(MethodHandles.Lookup lookup) { in resolveConstantDesc()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | GetCallerClassTest.java | 147 MethodHandles.Lookup lookup = MethodHandles.lookup(); in methodHandleGetCallerClass() 252 MethodHandles.Lookup lookup = MethodHandles.publicLookup(); in callMethodHandle() 263 MethodHandles.Lookup lookup = MethodHandles.publicLookup(); in callMethodHandleRefl()
|