Searched refs:newType (Results 1 - 25 of 33) sorted by relevance

12

/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/
H A DMethodTypeConversionStrategy.java102 * @param newType new type
105 public MethodHandle asType(final MethodHandle target, final MethodType newType); argument
H A DGuardedInvocation.java345 * @param newType the new type of the invocation.
348 public GuardedInvocation asType(final MethodType newType) { argument
349 return replaceMethodsOrThis(invocation.asType(newType), guard == null ? null : Guards.asType(guard, newType));
359 * @param newType the new type of the invocation.
362 public GuardedInvocation asType(final LinkerServices linkerServices, final MethodType newType) { argument
363 return replaceMethodsOrThis(linkerServices.asType(invocation, newType), guard == null ? null :
364 Guards.asType(linkerServices, guard, newType));
376 * @param newType the new type of the invocation.
379 public GuardedInvocation asTypeSafeReturn(final LinkerServices linkerServices, final MethodType newType) { argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DMethodHandle.java702 * <em>T0</em>{@code =newType.parameterType(i)} and <em>T1</em>{@code =this.type().parameterType(i)}.
704 * <em>T0</em>{@code =this.type().returnType()} and <em>T1</em>{@code =newType.returnType()}.
753 * @param newType the expected type of the new method handle
757 * @throws NullPointerException if {@code newType} is a null reference
761 public MethodHandle asType(MethodType newType) { argument
764 if (newType == type) {
768 MethodHandle atc = asTypeCached(newType);
772 return asTypeUncached(newType);
775 private MethodHandle asTypeCached(MethodType newType) { argument
777 if (atc != null && newType
784 asTypeUncached(MethodType newType) argument
1474 viewAsType(MethodType newType, boolean strict) argument
1485 viewAsTypeChecks(MethodType newType, boolean strict) argument
[all...]
H A DMethodType.java857 boolean isViewableAs(MethodType newType, boolean keepInterfaces) { argument
858 if (!VerifyType.isNullConversion(returnType(), newType.returnType(), keepInterfaces))
860 if (form == newType.form && form.erasedType == this)
862 if (ptypes == newType.ptypes)
865 if (argc != newType.parameterCount())
868 if (!VerifyType.isNullConversion(newType.parameterType(i), parameterType(i), keepInterfaces))
874 boolean isConvertibleTo(MethodType newType) { argument
876 MethodTypeForm newForm = newType.form();
880 if (!canConvert(returnType(), newType.returnType()))
882 Class<?>[] srcTypes = newType
908 explicitCastEquivalentToAsType(MethodType newType) argument
[all...]
H A DMethodHandles.java3038 * @param newType the expected type of the new method handle
3047 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) { argument
3048 explicitCastArgumentsChecks(target, newType);
3051 if (oldType == newType) return target;
3052 if (oldType.explicitCastEquivalentToAsType(newType)) {
3053 return target.asFixedArity().asType(newType);
3055 return MethodHandleImpl.makePairwiseConvert(target, newType, false);
3058 private static void explicitCastArgumentsChecks(MethodHandle target, MethodType newType) { argument
3059 if (target.type().parameterCount() != newType.parameterCount()) {
3060 throw new WrongMethodTypeException("cannot explicitly cast " + target + " to " + newType);
3127 permuteArguments(MethodHandle target, MethodType newType, int... reorder) argument
3248 permuteArgumentChecks(int[] reorder, MethodType newType, MethodType oldType) argument
[all...]
H A DMethodHandleImpl.java238 * handle to the similar newType, using only pairwise argument conversions.
286 Class<?> newType = basicSrcType.parameterType(i);
290 midType = midType.changeParameterType(i, newType);
291 LambdaForm form2 = mh.editor().filterArgumentForm(1+i, BasicType.basicType(newType));
306 Class<?> newType = basicSrcType.returnType();
311 LambdaForm form2 = mh.editor().filterReturnForm(BasicType.basicType(newType), false);
314 LambdaForm form2 = mh.editor().filterReturnForm(BasicType.basicType(newType), true);
527 public MethodHandle asTypeUncached(MethodType newType) { argument
530 int newArity = newType.parameterCount();
532 type.parameterType(collectArg).isAssignableFrom(newType
554 viewAsTypeChecks(MethodType newType, boolean strict) argument
832 asTypeUncached(MethodType newType) argument
1318 asTypeUncached(MethodType newType) argument
1370 asTypeUncached(MethodType newType) argument
[all...]
H A DLambdaFormEditor.java626 LambdaForm filterArgumentForm(int pos, BasicType newType) { argument
627 Transform key = Transform.of(Transform.FILTER_ARG, pos, newType.ordinal());
631 assert(form.parameterType(pos) == newType);
637 newType.basicTypeClass());
768 LambdaForm filterReturnForm(BasicType newType, boolean constantZero) { argument
770 Transform key = Transform.of(kind, newType.ordinal());
774 assert(form.returnType() == newType);
784 if (newType == V_TYPE)
787 callFilter = new Name(constantZero(newType));
803 MethodType filterType = MethodType.methodType(newType
[all...]
H A DCallSite.java195 MethodType newType = newTarget.type(); // null check!
196 if (!newType.equals(oldType))
H A DDelegatingMethodHandle.java56 abstract MethodHandle asTypeUncached(MethodType newType); argument
/openjdk10/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/
H A DMethodEntry.java99 public void type (SymtabEntry newType) argument
101 super.type (newType);
102 if (newType == null)
H A DSymtabEntry.java183 public void type (SymtabEntry newType) argument
185 if (newType == null)
188 typeName (newType.fullName ());
189 _type = newType;
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/
H A DRemapper.java92 String newType = map(t.getInternalName());
93 if (newType != null) {
94 return 'L' + newType + ';';
129 String newType = map(type);
130 if (newType != null && newTypes == null) {
138 newTypes[i] = newType == null ? type : newType;
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/
H A DJVar.java138 * @param newType
144 public JType type(JType newType) { argument
146 if(newType==null)
148 type = newType;
/openjdk10/hotspot/test/compiler/jsr292/patches/java.base/java/lang/invoke/
H A DMethodHandleHelper.java96 public MethodHandle asTypeUncached(MethodType newType) { argument
97 return asTypeCache = target.asType(newType);
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/
H A DToken.java128 * @param newType The new token type.
131 public static long recast(final long token, final TokenType newType) { argument
132 return token & ~0xFFL | newType.ordinal();
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DSpillProperty.java192 * @param newType new type
195 protected SpillProperty(final SpillProperty property, final Class<?> newType) { argument
196 super(property, newType);
205 public Property copy(final Class<?> newType) { argument
206 return new SpillProperty(this, newType);
H A DUserAccessorProperty.java130 private UserAccessorProperty(final UserAccessorProperty property, final Class<?> newType) { argument
131 super(property, newType);
140 public Property copy(final Class<?> newType) { argument
141 return new UserAccessorProperty(this, newType);
H A DAccessorProperty.java320 * @param newType new type
322 protected AccessorProperty(final AccessorProperty property, final Class<?> newType) { argument
325 this.GETTER_CACHE = newType != property.getLocalType() ? new MethodHandle[NOOF_TYPES] : property.GETTER_CACHE;
331 setType(newType);
386 public Property copy(final Class<?> newType) { argument
387 return new AccessorProperty(this, newType);
675 private MethodHandle debugReplace(final Class<?> oldType, final Class<?> newType, final PropertyMap oldMap, final PropertyMap newMap) { argument
689 return "Type change for '" + getKey() + "' " + oldType + "=>" + newType;
H A DScriptFunctionData.java613 final MethodType newType = makeGenericType(type);
614 return type.equals(newType) ? mh : mh.asType(newType);
618 MethodType newType = type.generic();
620 newType = newType.changeParameterType(type.parameterCount() - 1, Object[].class);
623 newType = newType.changeParameterType(0, ScriptFunction.class);
625 return newType;
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/
H A DJOptionPane.java2049 * @param newType an integer specifying the kind of message to display:
2053 * @exception RuntimeException if <code>newType</code> is not one of the
2060 public void setMessageType(int newType) { argument
2061 checkMessageType(newType);
2063 messageType = newType;
2067 private static void checkMessageType(int newType){ argument
2068 if(newType != ERROR_MESSAGE && newType != INFORMATION_MESSAGE &&
2069 newType != WARNING_MESSAGE && newType !
2107 setOptionType(int newType) argument
2114 checkOptionType(int newType) argument
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/
H A DInstanceOfTest.java406 Class<? extends T[]> newType = (Class<? extends T[]>) original.getClass();
407 if (newType == (Object) Object[].class) {
410 return newType.getName();
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/misc/
H A DJavaLangAccess.java64 boolean casAnnotationType(Class<?> klass, AnnotationType oldType, AnnotationType newType); argument
/openjdk10/jdk/test/java/lang/invoke/
H A DExplicitCastArgumentsTest.java528 MethodType newType = null;
542 newType = original.type().changeReturnType(to);
550 newType = original.type().changeParameterType(0, from);
559 .explicitCastArguments(original, newType);
H A DMethodHandlesTest.java1666 MethodType newType = MethodType.methodType(rtype, params);
1667 Object[] args = randomArgs(newType.parameterArray());
1670 Class<?> src = newType.parameterType(i);
1677 Class<?> dst = newType.returnType();
1685 target = id.asType(newType);
1690 System.out.println("convert "+id+ " to "+newType+" => "+target
1695 assertEquals(newType, target.type());
1905 MethodType newType = MethodType.methodType(arrayType, newParams);
1907 assert(result.type() == newType) : Arrays.asList(result, newType);
[all...]
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DBootstrap.java451 * @param newType the desired new type. Note that this method does not adapt the method handle completely to the
457 private static MethodHandle unboxReturnType(final MethodHandle target, final MethodType newType) { argument
460 final Class<?> newReturnType = newType.returnType();
463 // The contract of setAutoConversionStrategy is such that the difference between newType and targetType

Completed in 384 milliseconds

12