/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/ |
H A D | Expression.java | 36 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodType; 193 public MethodType lookupPrimop(SymbolTable stable, String op, 194 MethodType ctype) { 195 MethodType result = null; 201 final MethodType ptype = (MethodType) primop.elementAt(i);
|
H A D | BinOpExpr.java | 28 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodType; 82 final MethodType ptype = lookupPrimop(stable, Ops[_op], 83 new MethodType(Type.Void,
|
/openjdk10/hotspot/test/compiler/jsr292/ |
H A D | CallSiteDepContextTest.java | 49 import java.lang.invoke.MethodType; 67 static final MethodType TYPE = MethodType.methodType(int.class); 76 MethodType.methodType(CallSite.class, MethodHandles.Lookup.class, String.class, MethodType.class)); 84 MethodType invokedType) {
|
/openjdk10/jdk/test/java/lang/invoke/7087570/ |
H A D | Test7087570.java | 36 import static java.lang.invoke.MethodType.*; 105 private static MethodType getterMethodType(Class<?> clazz) { 109 private static MethodType setterMethodType(Class<?> clazz) { 118 final MethodType methodType; 123 MethodType methodType, Class<?> declaringClass, 134 MethodType methodType, Class<?> declaringClass,
|
/openjdk10/nashorn/test/src/jdk/dynalink/linker/support/test/ |
H A D | LookupTest.java | 30 import java.lang.invoke.MethodType; 167 MethodType.methodType(MethodHandles.Lookup.class, Boolean.TYPE)); 226 MethodType.methodType(Void.TYPE)); 241 MethodType.methodType(Void.TYPE)); 252 MethodType.methodType(Void.TYPE)); 267 MethodType.methodType(Void.TYPE));
|
/openjdk10/jdk/src/java.base/share/classes/sun/invoke/util/ |
H A D | ValueConversions.java | 31 import java.lang.invoke.MethodType; 147 private static MethodType unboxType(Wrapper wrap, int kind) { 149 return MethodType.methodType(wrap.primitiveType(), wrap.wrapperType()); 150 return MethodType.methodType(wrap.primitiveType(), Object.class, boolean.class); 173 MethodType type = unboxType(wrap, kind); 311 private static MethodType boxType(Wrapper wrap) { 314 return MethodType.methodType(boxType, wrap.primitiveType()); 327 MethodType type = boxType(wrap); 377 MethodType type = MethodType [all...] |
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ |
H A D | RecompilableScriptFunctionData.java | 35 import java.lang.invoke.MethodType; 631 TypeMap typeMap(final MethodType fnCallSiteType) { 649 private Compiler getCompiler(final FunctionNode fn, final MethodType actualCallSiteType, final ScriptObject runtimeScope) { 664 Compiler getCompiler(final FunctionNode functionNode, final MethodType actualCallSiteType, 701 private FunctionInitializer compileTypeSpecialization(final MethodType actualCallSiteType, final ScriptObject runtimeScope, final boolean persist) { 740 private MethodType explicitParams(final MethodType callSiteType) { 745 final MethodType noCalleeThisType = callSiteType.dropParameterTypes(0, 2); // (callee, this) is always in call site type 759 final MethodType generalized = changed ? MethodType [all...] |
H A D | ScriptFunctionData.java | 37 import java.lang.invoke.MethodType; 247 final CompiledFunction getBestInvoker(final MethodType callSiteType, final ScriptObject runtimeScope) { 251 final CompiledFunction getBestInvoker(final MethodType callSiteType, final ScriptObject runtimeScope, final Collection<CompiledFunction> forbidden) { 257 final CompiledFunction getBestConstructor(final MethodType callSiteType, final ScriptObject runtimeScope, final Collection<CompiledFunction> forbidden) { 324 private static MethodType widen(final MethodType cftype) { 340 CompiledFunction lookupExactApplyToCall(final MethodType type) { 342 final MethodType adaptedType = needsCallee() ? type : type.dropParameterTypes(0, 1); 349 final MethodType cftype = cf.type(); 362 CompiledFunction pickFunction(final MethodType callSiteTyp [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/ |
H A D | MethodHandles.java | 64 import static java.lang.invoke.MethodType.methodType; 1083 import static java.lang.invoke.MethodType.*; 1103 MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException { 1148 import static java.lang.invoke.MethodType.*; 1164 MethodType MT_newString = methodType(void.class); //()V for new String() 1187 public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException { 1199 private MethodHandle findVirtualForMH(String name, MethodType type) { 1200 // these names require special lookups because of the implicit MethodType argument 1208 private MethodHandle findVirtualForVH(String name, MethodType type) { 1235 import static java.lang.invoke.MethodType [all...] |
H A D | DirectMethodHandle.java | 56 private DirectMethodHandle(MethodType mtype, LambdaForm form, MemberName member) { 76 MethodType mtype = member.getMethodOrFieldType(); 120 MethodType mtype = ctor.getMethodType().changeReturnType(instanceClass); 133 MethodHandle copyWith(MethodType mt, LambdaForm lf) { 159 MethodType mtype = m.getInvocationType().basicType(); 183 private static LambdaForm preparedLambdaForm(MethodType mtype, int which) { 190 static LambdaForm makePreparedLambdaForm(MethodType mtype, int which) { 205 MethodType mtypeWithArg = mtype.appendParameterTypes(MemberName.class); 366 private Special(MethodType mtype, LambdaForm form, MemberName member) { 374 MethodHandle copyWith(MethodType m [all...] |
H A D | BoundMethodHandle.java | 57 /*non-public*/ BoundMethodHandle(MethodType type, LambdaForm form) { 66 static BoundMethodHandle bindSingle(MethodType type, LambdaForm form, BasicType xtype, Object x) { 92 static BoundMethodHandle bindSingle(MethodType type, LambdaForm form, Object x) { 200 /*non-public*/ abstract BoundMethodHandle copyWith(MethodType mt, LambdaForm lf); 201 /*non-public*/ abstract BoundMethodHandle copyWithExtendL(MethodType mt, LambdaForm lf, Object narg); 202 /*non-public*/ abstract BoundMethodHandle copyWithExtendI(MethodType mt, LambdaForm lf, int narg); 203 /*non-public*/ abstract BoundMethodHandle copyWithExtendJ(MethodType mt, LambdaForm lf, long narg); 204 /*non-public*/ abstract BoundMethodHandle copyWithExtendF(MethodType mt, LambdaForm lf, float narg); 205 /*non-public*/ abstract BoundMethodHandle copyWithExtendD(MethodType mt, LambdaForm lf, double narg); 214 private Species_L(MethodType m [all...] |
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ |
H A D | GenerateJLIClassesPlugin.java | 32 import java.lang.invoke.MethodType; 382 MethodType[] directMethodTypes = new MethodType[count]; 390 MethodType mt = asMethodType(type); 401 MethodType[] invokerMethodTypes = new MethodType[this.invokerTypes.size()]; 406 MethodType mt = asMethodType(invokerType); 482 private static MethodType asMethodType(String basicSignatureString) { 489 return MethodType.methodType(rtype); 495 return MethodType [all...] |
/openjdk10/jdk/test/java/lang/invoke/ |
H A D | PrivateInvokeTest.java | 34 import static java.lang.invoke.MethodType.*; 85 private static MethodType basicType(MethodType mtype) { 86 MethodType btype = mtype.erase(); 162 private static MethodHandle directInvoker(int refKind, MethodType mtype) { 165 private static MethodHandle directInvoker(String name, MethodType mtype) { 232 private Object[] makeArguments(MethodType mtype) { 342 MethodType mtype = mh.type(); 344 MethodType etype = mtype.erase(); 349 MethodType btyp [all...] |
H A D | InvokeGenericTest.java | 34 import static java.lang.invoke.MethodType.*; 293 MethodType targetType = target.type(); 297 MethodType ttype2 = MethodType.methodType(targetType.returnType(), argTypes); 423 static List<MethodType> allMethodTypes(int minargc, int maxargc, Class<?>... types) { 424 ArrayList<MethodType> result = new ArrayList<>(); 426 ArrayList<MethodType> argcTypes = new ArrayList<>(); 429 argcTypes.add(MethodType.methodType(rtype)); 439 ArrayList<MethodType> prevTypes = argcTypes; 441 for (MethodType prevTyp [all...] |
H A D | ExplicitCastArgumentsTest.java | 31 import java.lang.invoke.MethodType; 102 MethodType mt = MethodType.methodType(String[].class, String[].class); 106 MethodType.methodType(Object.class, Object.class)); 450 private static void checkForWrongMethodTypeException(MethodHandle mh, MethodType mt) { 470 MethodType mType = Helper.randomMethodTypeGenerator(arity); 471 MethodType mTypeNew = Helper.randomMethodTypeGenerator(arity); 472 MethodType mTypeNewMinus = Helper.randomMethodTypeGenerator(arityMinus); 473 MethodType mTypeNewPlus = Helper.randomMethodTypeGenerator(arityPlus); 477 MethodType m [all...] |
H A D | MethodHandlesTest.java | 45 import java.lang.invoke.MethodType; 64 import static java.lang.invoke.MethodType.methodType; 354 MethodType listType = list.type().changeReturnType(rtype); 361 MethodType.methodType(String.class, List.class)); 368 MethodType.methodType(int.class, List.class)); 380 return list.asType(MethodType.methodType(rtype, ptypes)); 391 MethodType targetType = target.type(); 395 MethodType ttype2 = MethodType.methodType(targetType.returnType(), argTypes); 567 MethodType typ [all...] |
H A D | VarargsArrayTest.java | 29 import java.lang.invoke.MethodType; 121 MethodType vaType = varargsArray.type(); 127 assertEquals(MethodType.methodType(arrayType, Collections.<Class<?>>nCopies(nargs, elemType)), 135 MethodType stype = spreader.type(); 136 assert(stype == MethodType.methodType(arrayType, arrayType));
|
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
H A D | SerializedLambdaTest.java | 36 import java.lang.invoke.MethodType; 299 private static final MethodType predicateMT = MethodType.methodType(boolean.class, Object.class); 300 private static final MethodType stringPredicateMT = MethodType.methodType(boolean.class, String.class); 313 "test", MethodType.methodType(Predicate.class), 325 "test", MethodType.methodType(SerPredicate.class), 336 "test", MethodType.methodType(Predicate.class), 347 "test", MethodType.methodType(SerPredicate.class), 353 "test", MethodType [all...] |
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ |
H A D | AbstractJavaLinker.java | 88 import java.lang.invoke.MethodType; 455 final MethodType type = linkRequest.getCallSiteDescriptor().getMethodType(); 469 MethodHandle getClassGuard(final MethodType type) { 473 GuardedInvocationComponent getClassGuardedInvocationComponent(final MethodHandle invocation, final MethodType type) { 479 private MethodHandle getAssignableGuard(final MethodType type) { 539 private static final MethodHandle IS_METHOD_HANDLE_NOT_NULL = Guards.isNotNull().asType(MethodType.methodType( 559 final MethodType origType = callSiteDescriptor.getMethodType(); 560 final MethodType type = origType.returnType() == void.class ? origType : origType.changeReturnType(Object.class); 573 final MethodType setterType = type.dropParameterTypes(1, 2); 627 private static final MethodHandle IS_ANNOTATED_METHOD_NOT_NULL = Guards.isNotNull().asType(MethodType [all...] |
H A D | BeanLinker.java | 88 import java.lang.invoke.MethodType; 161 MethodType.methodType(Object.class, int.class)); 164 MethodType.methodType(Object.class, Object.class)); 191 final MethodType callSiteType = callSiteDescriptor.getMethodType(); 281 final MethodHandle invocation, final MethodType fromType, final LinkerServices linkerServices) { 356 private final MethodType methodType; 359 Binder(final LinkerServices linkerServices, final MethodType methodType, final Object fixedKey) { 381 MethodType.methodType(boolean.class, Object.class)); 418 MethodType.methodType(Object.class, int.class, Object.class)); 421 MethodType [all...] |
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/ |
H A D | Bootstrap.java | 35 import java.lang.invoke.MethodType; 66 public static final Call BOOTSTRAP = staticCallNoLookup(Bootstrap.class, "bootstrap", CallSite.class, Lookup.class, String.class, MethodType.class, int.class); 222 public static CallSite bootstrap(final Lookup lookup, final String opDesc, final MethodType type, final int flags) { 351 return bootstrap(MethodHandles.publicLookup(), name, MethodType.methodType(rtype, ptypes), flags).dynamicInvoker(); 375 public static MethodHandle createDynamicInvoker(final String name, final int flags, final MethodType type) { 457 private static MethodHandle unboxReturnType(final MethodHandle target, final MethodType newType) { 458 final MethodType targetType = target.type();
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/lookup/ |
H A D | MethodHandleFactory.java | 34 import java.lang.invoke.MethodType; 114 private static final MethodHandle TRACE = FUNC.findStatic(LOOKUP, MethodHandleFactory.class, "traceArgs", MethodType.methodType(void.class, DebugLogger.class, String.class, int.class, Object[].class)); 115 private static final MethodHandle TRACE_RETURN = FUNC.findStatic(LOOKUP, MethodHandleFactory.class, "traceReturn", MethodType.methodType(Object.class, DebugLogger.class, Object.class)); 116 private static final MethodHandle TRACE_RETURN_VOID = FUNC.findStatic(LOOKUP, MethodHandleFactory.class, "traceReturnVoid", MethodType.methodType(void.class, DebugLogger.class)); 277 final MethodType type = mh.type(); 418 public MethodHandle asType(final MethodHandle handle, final MethodType type) { 436 public MethodHandle explicitCastArguments(final MethodHandle target, final MethodType type) { 540 public MethodHandle findStatic(final MethodHandles.Lookup explicitLookup, final Class<?> clazz, final String name, final MethodType type) { 550 public MethodHandle findSpecial(final MethodHandles.Lookup explicitLookup, final Class<?> clazz, final String name, final MethodType type, final Class<?> thisClass) { 560 public MethodHandle findVirtual(final MethodHandles.Lookup explicitLookup, final Class<?> clazz, final String name, final MethodType typ [all...] |
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/ |
H A D | InterfaceMethodHandleTest.java | 27 import java.lang.invoke.MethodType; 79 MethodType type = MethodType.fromMethodDescriptorString("()I", I.class.getClassLoader()); 81 MethodType type2 = MethodType.fromMethodDescriptorString("(IIIIIIIIII)I", I.class.getClassLoader());
|
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/ |
H A D | HotSpotMethodSubstitutionTest.java | 27 import java.lang.invoke.MethodType; 164 site = GraalDirectives.opaque(new ConstantCallSite(lookup.findVirtual(String.class, "replace", MethodType.methodType(String.class, char.class, char.class)))); 167 site = GraalDirectives.opaque(new ConstantCallSite(lookup.findStatic(java.util.Arrays.class, "asList", MethodType.methodType(java.util.List.class, Object[].class))));
|
/openjdk10/jdk/test/java/lang/ModuleTests/addXXX/test/test/ |
H A D | Main.java | 28 import java.lang.invoke.MethodType; 60 MethodType mt = MethodType.methodType(void.class);
|