Searched refs:parameterCount (Results 1 - 25 of 76) sorted by relevance

1234

/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DApplicableOverloadedMethods.java146 final int methodArity = methodType.parameterCount();
147 if(methodArity != callSiteType.parameterCount()) {
168 final int methodArity = methodType.parameterCount();
169 if(methodArity != callSiteType.parameterCount()) {
194 final int methodArity = methodType.parameterCount();
196 final int callSiteArity = callSiteType.parameterCount();
H A DSingleDynamicMethod.java173 final int paramsLen = methodType.parameterCount();
177 final int argsLen = callSiteType.parameterCount();
283 * @param parameterCount the total number of arguments in the new method handle
286 static MethodHandle collectArguments(final MethodHandle target, final int parameterCount) { argument
288 final int fixParamsLen = methodType.parameterCount() - 1;
290 return target.asCollector(arrayType, parameterCount - fixParamsLen);
300 for(int i = 1; i < type.parameterCount(); ++i) { // i = 1 as we ignore the receiver
H A DStaticClassIntrospector.java125 newHandle = newHandle.asVarargsCollector(type.parameterType(type.parameterCount() - 1));
H A DMaximallySpecific.java205 final int pc1 = t1.parameterCount();
206 final int pc2 = t2.parameterCount();
/openjdk9/jdk/src/java.base/share/classes/java/lang/invoke/
H A DInnerClassLambdaMetafactory.java161 int parameterCount = invokedType.parameterCount();
162 if (parameterCount > 0) {
163 argNames = new String[parameterCount];
164 argDescs = new String[parameterCount];
165 for (int i = 0; i < parameterCount; i++) {
189 if (invokedType.parameterCount() == 0) {
275 if (invokedType.parameterCount() != 0) {
331 int parameterCount = invokedType.parameterCount();
[all...]
H A DAbstractValidatingLambdaMetafactory.java208 final int implArity = implMethodType.parameterCount();
209 final int capturedArity = invokedType.parameterCount();
210 final int samArity = samMethodType.parameterCount();
211 final int instantiatedArity = instantiatedMethodType.parameterCount();
225 if (bridgeMT.parameterCount() != samArity) {
302 for (int i = 0; i < instantiatedMethodType.parameterCount(); i++) {
H A DMethodHandleImpl.java325 assert(target.type().parameterCount() == srcType.parameterCount());
328 final int INARG_COUNT = srcType.parameterCount();
392 if (fn.type().parameterCount() == 0)
402 LambdaForm form = new LambdaForm("convert", lambdaType.parameterCount(), names, RESULT);
408 final int INARG_COUNT = srcType.parameterCount();
477 assert(fn.type().parameterCount() <= 1) : "pc"+Arrays.asList(src.getSimpleName(), dst.getSimpleName(), fn);
483 int last = type.parameterCount() - 1;
529 int collectArg = type.parameterCount() - 1;
530 int newArity = newType.parameterCount();
[all...]
H A DInvokers.java150 targetType.parameterCount() < EAGER_COMPILE_ARITY_LIMIT) {
194 int spreadArgCount = targetType.parameterCount() - leadingArgCount;
204 .replaceParameterTypes(leadingArgCount, postSpreadType.parameterCount(), argArrayType);
212 int maxPos = restargType.parameterCount();
285 final int OUTARG_LIMIT = ARG_BASE + mtype.parameterCount();
357 final int ARG_LIMIT = ARG_BASE + mtype.parameterCount();
366 for (int i = 0; i < mtype.parameterCount(); i++) {
399 final int ARG_LIMIT = ARG_BASE + mtype.parameterCount();
408 for (int i = 0; i < mtype.parameterCount(); i++) {
526 final int OUTARG_LIMIT = ARG_BASE + mtype.parameterCount();
[all...]
H A DMethodHandle.java880 return asSpreader(type().parameterCount() - arrayLength, arrayType, arrayLength);
937 int nargs = type().parameterCount();
1084 return asCollector(type().parameterCount() - 1, arrayType, arrayLength);
1149 int nargs = type().parameterCount();
1314 boolean lastMatch = asCollectorChecks(arrayType, type().parameterCount() - 1, 0);
H A DMethodType.java388 * @throws IndexOutOfBoundsException if {@code num} is negative or greater than {@code parameterCount()}
417 return insertParameterTypes(parameterCount(), ptypesToInsert);
426 * @throws IndexOutOfBoundsException if {@code num} is negative or greater than {@code parameterCount()}
445 return insertParameterTypes(parameterCount(), ptypesToInsert);
455 * @throws IndexOutOfBoundsException if {@code start} is negative or greater than {@code parameterCount()}
456 * or if {@code end} is negative or greater than {@code parameterCount()}
481 assert(parameterCount() >= arrayLength);
525 assert(parameterCount() >= 1);
556 * @throws IndexOutOfBoundsException if {@code start} is negative or greater than {@code parameterCount()}
557 * or if {@code end} is negative or greater than {@code parameterCount()}
724 public int parameterCount() { method in class:MethodType
[all...]
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DFinalScriptFunctionData.java143 final int paramCount = t.parameterCount() - (ScriptFunctionData.needsCallee(t) ? 1 : 0);
179 return mh.type().parameterCount() - 1 - (needsCallee(mh) ? 1 : 0) - (isConstructor(mh) ? 1 : 0);
183 return mh.type().parameterCount() >= 1 && mh.type().parameterType(0) == boolean.class;
H A DScriptFunction.java884 if (type.parameterCount() == 3 && type.parameterType(2) == Object[].class) {
889 handle = MH.asCollector(ScriptRuntime.APPLY.methodHandle(), Object[].class, type.parameterCount() - 2);
994 boundHandle = MH.asCollector(boundHandle, Object[].class, type.parameterCount() - 2);
1023 final int paramCount = descType.parameterCount();
1063 final int pc = appliedType.parameterCount();
1089 final Object[] appliedArgs = new Object[isApply ? 3 : appliedType.parameterCount()];
1133 if (guard.type().parameterCount() > 2) {
1156 if (guard.type().parameterCount() > 1) {
1163 if (guard.type().parameterCount() > 1) {
1179 for (int i = 0; i < dropArgs.parameterCount();
[all...]
H A DScriptFunctionData.java325 final Class<?>[] paramTypes = new Class<?>[cftype.parameterCount()];
326 for (int i = 0; i < cftype.parameterCount(); i++) {
347 if (cftype.parameterCount() != type.parameterCount()) {
394 return callSiteType.parameterCount() >= 2 && // Must have at least (callee, this)
528 final Object[] boundArgs = new Object[Math.min(originalInvoker.type().parameterCount() - argInsertPos, args.length + (isTargetBound ? 0 : needsCallee ? 2 : 1))];
582 final int maxArgCount = calleeBoundConstructor.type().parameterCount() - 1;
617 newType = newType.changeParameterType(type.parameterCount() - 1, Object[].class);
648 final int paramCount = mh.type().parameterCount();
703 final int paramCount = mh.type().parameterCount();
[all...]
/openjdk9/jdk/test/java/lang/reflect/Parameter/
H A DWithoutParameters.java65 abortIfTrue(epi.parameterCount() != e.getParameterCount(), "Bad parameter count for "+ e);
135 int parameterCount() default 0;
149 @ExpectedParameterInfo(parameterCount = 6,
168 @ExpectedParameterInfo(parameterCount = 2,
/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/support/
H A DGuards.java224 return type.dropParameterTypes(test.type().parameterCount(),
225 type.parameterCount()).changeReturnType(boolean.class);
231 assert type.parameterCount() > 0;
232 assert pos >= 0 && pos < type.parameterCount();
233 assert test.type().parameterCount() == 1;
H A DDefaultInternalObjectFilter.java136 final int paramCount = type.parameterCount();
/openjdk9/jdk/src/java.base/share/classes/sun/invoke/util/
H A DVerifyType.java124 int len = call.parameterCount();
125 if (len != recv.parameterCount()) return false;
/openjdk9/nashorn/test/script/nosecurity/
H A Ddebuggersupportapi.js57 if (mth.parameterCount == 3) {
/openjdk9/jdk/test/java/lang/invoke/LFCaching/
H A DTestMethods.java51 int realArity = mtTarget.parameterCount();
90 int realArity = mtTarget.parameterCount();
126 int realArity = mtTarget.parameterCount();
157 int realArity = mtTarget.parameterCount();
191 int realArity = mtTarget.parameterCount();
218 int realArity = mtTarget.parameterCount();
246 int realArity = mtTarget.parameterCount();
253 int mtPermuteArgsParNum = Helper.RNG.nextInt(mtPermuteArgs.parameterCount());
300 int realArity = mtTarget.parameterCount();
336 int realArity = mtTarget.parameterCount();
[all...]
/openjdk9/jdk/test/java/lang/invoke/
H A DRicochetTest.java231 int outputs = lister.type().parameterCount();
259 assert(mh.type().parameterCount() == inputs);
271 int outputs = lister.type().parameterCount();
299 assert(mh.type().parameterCount() == inputs);
308 int collects = collector.type().parameterCount();
309 int outputs = lister.type().parameterCount();
377 assert(proj.type().parameterCount() == len);
395 assert(proj.type().parameterCount() == arg0 + len);
477 if (t.parameterCount() == 0) {
493 Object[] args = new Object[x.type().parameterCount()];
[all...]
H A DPermuteArgsTest.java171 int posArgs = mt.parameterCount() - 1;
192 int posArgs = mt.parameterCount() - 1;
195 while (mt1.parameterCount() < arity) {
199 pt = mt1.parameterType(mt1.parameterCount() - posArgs);
215 int mhArity = mh.type().parameterCount();
230 int[] perm = nullPerm(mt.parameterCount());
/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/
H A DGuardedInvocation.java407 guard == null || pos >= guard.type().parameterCount() ?
421 guard == null || pos > guard.type().parameterCount() ?
435 guard == null || pos > guard.type().parameterCount() ?
/openjdk9/jdk/test/java/lang/invoke/VarHandles/
H A DVarHandleBaseTest.java465 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType());
471 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType());
472 assertEquals(mt.parameterType(mt.parameterCount() - 2), vh.varType());
478 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType());
479 assertEquals(mt.parameterType(mt.parameterCount() - 2), vh.varType());
485 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType());
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DJSObjectLinker.java154 mh = type.parameterType(type.parameterCount() - 1) == Object[].class ?
156 MH.asCollector(mh, Object[].class, type.parameterCount() - 2);
161 final MethodHandle func = MH.asCollector(JSOBJECT_NEW, Object[].class, desc.getMethodType().parameterCount() - 1);
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/
H A DTypeMap.java51 final Type[] types = new Type[type.parameterCount()];

Completed in 172 milliseconds

1234