/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandles.java | 41 reflectAs(Class<T> expected, MethodHandle target) { return null; } in reflectAs() 60 …MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException,… in findStatic() 62 …public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodEx… in findVirtual() 64 …public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, … in findConstructor() 66 public MethodHandle findSpecial(Class<?> refc, String name, MethodType type, in findSpecial() 69 …public MethodHandle findGetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldExcept… in findGetter() 71 …public MethodHandle findSetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldExcept… in findSetter() 73 …public MethodHandle findStaticGetter(Class<?> refc, String name, Class<?> type) throws NoSuchField… in findStaticGetter() 75 …public MethodHandle findStaticSetter(Class<?> refc, String name, Class<?> type) throws NoSuchField… in findStaticSetter() 77 …public MethodHandle bind(Object receiver, String name, MethodType type) throws NoSuchMethodExcepti… in bind() [all …]
|
D | MethodHandle.java | 28 public abstract class MethodHandle { class 40 public MethodHandle asType(MethodType newType) { return null; } in asType() 42 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { return null; } in asCollector() 44 public MethodHandle asVarargsCollector(Class<?> arrayType) { return null; } in asVarargsCollector() 48 public MethodHandle asFixedArity() { return null; } in asFixedArity() 50 public MethodHandle bindTo(Object x) { return null; } in bindTo()
|
D | CallSite.java | 33 public abstract MethodHandle getTarget(); in getTarget() 35 public abstract void setTarget(MethodHandle newTarget); in setTarget() 37 public abstract MethodHandle dynamicInvoker(); in dynamicInvoker()
|
D | LambdaMetafactory.java | 40 MethodHandle implMethod, in metafactory()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 19 import java.lang.invoke.MethodHandle; 98 private static MethodHandle explicitCastArgumentToIdentity(Class identityClass, in explicitCastArgumentToIdentity() 100 MethodHandle identity = MethodHandles.identity(identityClass); in explicitCastArgumentToIdentity() 107 private static MethodHandle explicitCastReturnValueFromIdentity(Class identityClass, in explicitCastReturnValueFromIdentity() 109 MethodHandle identity = MethodHandles.identity(identityClass); in explicitCastReturnValueFromIdentity() 116 private static MethodHandle nullConstantExplicitCastToPrimitive(Class constantType, in nullConstantExplicitCastToPrimitive() 127 private static MethodHandle explicitCastVoidReturnValue(Class toType) throws Throwable { in explicitCastVoidReturnValue() 128 MethodHandle m = in explicitCastVoidReturnValue() 151 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentParentToChild() 160 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentNullParentToChild() [all …]
|
D | MethodHandleCombinersTest.java | 20 import java.lang.invoke.MethodHandle; 34 MethodHandle handle = MethodHandles.throwException(String.class, in testThrowException() 59 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments() 63 MethodHandle transform = MethodHandles.dropArguments( in testDropArguments() 125 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments_List() 129 MethodHandle transform = MethodHandles.dropArguments( in testDropArguments_List() 173 MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 178 MethodHandle handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 183 MethodHandle adapter = MethodHandles.catchException(target, IllegalArgumentException.class, in testCatchException() 257 MethodHandle test = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() [all …]
|
D | CallSitesTest.java | 23 import java.lang.invoke.MethodHandle; 36 final MethodHandle mh = in test_ConstantCallSite() 53 final MethodHandle add2 = in test_EarlyBoundMutableCallSite() 61 final MethodHandle add2 = in test_EarlyBoundVolatileCallSite() 77 final MethodHandle add2 = in test_LateBoundMutableCallSite() 93 final MethodHandle add2 = in test_LateBoundVolatileCallSite() 100 MethodHandle firstTarget) throws Throwable{ in commonMutableCallSitesTest() 119 final MethodHandle other = MethodHandles.lookup().findStatic( in commonMutableCallSitesTest() 129 final MethodHandle sub2 = in commonMutableCallSitesTest()
|
D | MethodHandleAccessorsTest.java | 21 import java.lang.invoke.MethodHandle; 74 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() 91 static void setByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in setByte() 95 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() 113 static void getByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in getByte() 117 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() 134 static void setChar(MethodHandle m, char value, boolean expectFailure) throws Throwable { in setChar() 138 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() 156 static void getChar(MethodHandle m, char value, boolean expectFailure) throws Throwable { in getChar() 160 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort() [all …]
|
D | MethodHandlesTest.java | 21 import java.lang.invoke.MethodHandle; 80 MethodHandles.lookup().in(MethodHandle.class); in test_LookupIn() 90 MethodHandle handle = defaultLookup.findStatic(String.class, "valueOf", in test_findStatic() 97 assertEquals(MethodHandle.INVOKE_STATIC, handle.getHandleKind()); in test_findStatic() 148 MethodHandle handle = defaultLookup.findConstructor(String.class, in test_findConstructor() 156 assertEquals(MethodHandle.INVOKE_DIRECT, handle.getHandleKind()); in test_findConstructor() 205 MethodHandle handle = defaultLookup.findVirtual(String.class, "replaceAll", in test_findVirtual() 218 assertEquals(MethodHandle.INVOKE_VIRTUAL, handle.getHandleKind()); in test_findVirtual() 318 MethodHandle mh1 = B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 352 MethodHandle mh2 = C.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() [all …]
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | CallSite.java | 93 MethodHandle target; // Note: This field is known to the JVM. Do not change. 129 CallSite(MethodHandle target) { in CallSite() 148 CallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable { in CallSite() 151 MethodHandle boundTarget = (MethodHandle) createTargetHook.invokeWithArguments(selfCCS); in CallSite() 185 public abstract MethodHandle getTarget(); in getTarget() 205 public abstract void setTarget(MethodHandle newTarget); in setTarget() 207 void checkTargetChange(MethodHandle oldTarget, MethodHandle newTarget) { in checkTargetChange() 214 private static WrongMethodTypeException wrongTargetType(MethodHandle target, MethodType type) { in wrongTargetType() 232 public abstract MethodHandle dynamicInvoker(); in dynamicInvoker() 234 /*non-public*/ MethodHandle makeDynamicInvoker() { in makeDynamicInvoker() [all …]
|
D | MethodHandles.java | 139 reflectAs(Class<T> expected, MethodHandle target) { in reflectAs() 781 …MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException,… in findStatic() 789 return createMethodHandle(method, MethodHandle.INVOKE_STATIC, type); in findStatic() 792 private MethodHandle findVirtualForMH(String name, MethodType type) { in findVirtualForMH() 801 private MethodHandle findVirtualForVH(String name, MethodType type) { in findVirtualForVH() 811 private static MethodHandle createMethodHandle(Method method, int handleKind, in createMethodHandle() 813 MethodHandle mh = new MethodHandleImpl(method.getArtMethod(), handleKind, methodType); in createMethodHandle() 892 …public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodEx… in findVirtual() 895 if (refc == MethodHandle.class) { in findVirtual() 896 MethodHandle mh = findVirtualForMH(name, type); in findVirtual() [all …]
|
D | VarHandle.java | 493 @MethodHandle.PolymorphicSignature 520 @MethodHandle.PolymorphicSignature 553 @MethodHandle.PolymorphicSignature 584 @MethodHandle.PolymorphicSignature 615 @MethodHandle.PolymorphicSignature 643 @MethodHandle.PolymorphicSignature 681 @MethodHandle.PolymorphicSignature 713 @MethodHandle.PolymorphicSignature 750 @MethodHandle.PolymorphicSignature 786 @MethodHandle.PolymorphicSignature [all …]
|
D | MethodHandle.java | 421 public abstract class MethodHandle { class 470 private MethodHandle cachedSpreadInvoker; 512 protected MethodHandle(long artFieldOrMethod, int handleKind, MethodType type) { in MethodHandle() method in MethodHandle 721 MethodHandle invoker = null; in invokeWithArguments() 854 public MethodHandle asType(MethodType newType) { in asType() 883 /*non-public*/ MethodHandle asTypeUncached(MethodType newType) { in asTypeUncached() 888 MethodHandle mh = duplicate(); in asTypeUncached() 983 public MethodHandle asSpreader(Class<?> arrayType, int arrayLength) { in asSpreader() 1119 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { in asCollector() 1303 public MethodHandle asVarargsCollector(Class<?> arrayType) { in asVarargsCollector() [all …]
|
D | ConstantCallSite.java | 42 public ConstantCallSite(MethodHandle target) { in ConstantCallSite() 80 …protected ConstantCallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable { in ConstantCallSite() 94 @Override public final MethodHandle getTarget() { in getTarget() 105 @Override public final void setTarget(MethodHandle ignore) { in setTarget() 117 public final MethodHandle dynamicInvoker() { in dynamicInvoker()
|
D | VolatileCallSite.java | 58 public VolatileCallSite(MethodHandle target) { in VolatileCallSite() 76 @Override public final MethodHandle getTarget() { in getTarget() 93 @Override public void setTarget(MethodHandle newTarget) { in setTarget() 102 public final MethodHandle dynamicInvoker() { in dynamicInvoker()
|
D | MutableCallSite.java | 105 public MutableCallSite(MethodHandle target) { in MutableCallSite() 124 @Override public final MethodHandle getTarget() { in getTarget() 148 @Override public void setTarget(MethodHandle newTarget) { in setTarget() 157 public final MethodHandle dynamicInvoker() { in dynamicInvoker()
|
D | Transformers.java | 44 TRANSFORM_INTERNAL = MethodHandle.class.getDeclaredMethod("transformInternal", 58 public static abstract class Transformer extends MethodHandle implements Cloneable { 60 super(TRANSFORM_INTERNAL.getArtMethod(), MethodHandle.INVOKE_TRANSFORM, type); in Transformer() 99 private final MethodHandle delegate; 109 public DropArguments(MethodType type, MethodHandle delegate, in DropArguments() 150 private final MethodHandle target; 151 private final MethodHandle handler; 156 public CatchException(MethodHandle target, MethodHandle handler, Class<?> exType) { in CatchException() 204 private final MethodHandle test; 205 private final MethodHandle target; [all …]
|
D | MethodHandleImpl.java | 39 public class MethodHandleImpl extends MethodHandle implements Cloneable { 71 private final MethodHandle handle; 73 HandleInfo(Member member, MethodHandle handle) { in HandleInfo()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 46 java.lang.Class<T> expected, java.lang.invoke.MethodHandle target) { in reflectAs() 51 java.lang.invoke.MethodHandle target) { in getMethodHandleImpl() 63 public static java.lang.invoke.MethodHandle arrayElementGetter(java.lang.Class<?> arrayClass) in arrayElementGetter() 100 public static java.lang.invoke.MethodHandle arrayElementSetter(java.lang.Class<?> arrayClass) in arrayElementSetter() 154 public static java.lang.invoke.MethodHandle spreadInvoker( in spreadInvoker() 159 public static java.lang.invoke.MethodHandle exactInvoker(java.lang.invoke.MethodType type) { in exactInvoker() 163 public static java.lang.invoke.MethodHandle invoker(java.lang.invoke.MethodType type) { in invoker() 167 private static java.lang.invoke.MethodHandle methodHandleForVarHandleAccessor( in methodHandleForVarHandleAccessor() 174 public static java.lang.invoke.MethodHandle varHandleExactInvoker( in varHandleExactInvoker() 179 public static java.lang.invoke.MethodHandle varHandleInvoker( in varHandleInvoker() [all …]
|
/libcore/luni/src/main/native/ |
D | java_lang_invoke_MethodHandle.cpp | 33 NATIVE_METHOD(MethodHandle, invokeExact, "([Ljava/lang/Object;)Ljava/lang/Object;"), 34 NATIVE_METHOD(MethodHandle, invoke, "([Ljava/lang/Object;)Ljava/lang/Object;"),
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 34 import java.lang.invoke.MethodHandle; 309 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdNonser() 321 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdSer() 332 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdNonser() 343 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdSer()
|
/libcore/luni/src/test/java/libcore/sun/invoke/util/ |
D | VerifyAccessTest.java | 23 import java.lang.invoke.MethodHandle;
|
/libcore/api/ |
D | current.txt | 4227 method public abstract java.lang.invoke.MethodHandle dynamicInvoker(); 4228 method public abstract java.lang.invoke.MethodHandle getTarget(); 4229 method public abstract void setTarget(java.lang.invoke.MethodHandle); 4234 ctor public ConstantCallSite(java.lang.invoke.MethodHandle); 4235 …ctor protected ConstantCallSite(java.lang.invoke.MethodType, java.lang.invoke.MethodHandle) throws… 4236 method public final java.lang.invoke.MethodHandle dynamicInvoker(); 4237 method public final java.lang.invoke.MethodHandle getTarget(); 4238 method public final void setTarget(java.lang.invoke.MethodHandle); 4249 public abstract class MethodHandle { 4250 method public java.lang.invoke.MethodHandle asCollector(Class<?>, int); [all …]
|
/libcore/ |
D | JavaLibrary.bp | 267 "java.lang.invoke.MethodHandle",
|
D | openjdk_java_files.bp | 248 "ojluni/src/main/java/java/lang/invoke/MethodHandle.java", 1385 "ojluni/src/lambda/java/java/lang/invoke/MethodHandle.java",
|