/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/types/basic/ |
H A D | BasicPointerType.java | 35 private Type targetType; field in class:BasicPointerType 37 public BasicPointerType(BasicTypeDataBase db, String name, Type targetType) { argument 40 this.targetType = targetType; 48 return targetType;
|
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/cdbg/basic/ |
H A D | BasicRefType.java | 31 private Type targetType; field in class:BasicRefType 33 public BasicRefType(String name, int size, Type targetType) { argument 34 this(name, size, targetType, 0); 37 private BasicRefType(String name, int size, Type targetType, int cvAttributes) { argument 39 this.targetType = targetType; 40 if (!((BasicType) targetType).isLazy()) { 47 public Type getTargetType() { return targetType; } 51 targetType = db.resolveType(this, targetType, listene [all...] |
H A D | BasicPointerType.java | 31 private Type targetType; field in class:BasicPointerType 33 public BasicPointerType(int size, Type targetType) { argument 34 this(null, size, targetType, 0); 37 private BasicPointerType(String name, int size, Type targetType, int cvAttributes) { argument 39 this.targetType = targetType; 40 if (!((BasicType) targetType).isLazy()) { 47 public Type getTargetType() { return targetType; } 51 targetType = db.resolveType(this, targetType, listene [all...] |
H A D | BasicCDebugInfoDataBase.java | 255 public Type resolveType(Type containingType, Type targetType, ResolveListener listener, String detail) { argument 256 BasicType basicTargetType = (BasicType) targetType; 261 BasicType resolved = (BasicType) lazyTypeMap.get(((LazyType) targetType).getKey()); 266 listener.resolveFailed(containingType, (LazyType) targetType, detail + " because target type was not found"); 267 return targetType; 275 listener.resolveFailed(containingType, (LazyType) targetType, 285 return targetType; 289 public Type resolveType(Sym containingSymbol, Type targetType, ResolveListener listener, String detail) { argument 290 BasicType basicTargetType = (BasicType) targetType; 295 BasicType resolved = (BasicType) lazyTypeMap.get(((LazyType) targetType) [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/java/beans/ |
H A D | PropertyEditorManager.java | 68 * @param targetType the class object of the type to be edited 76 public static void registerEditor(Class<?> targetType, Class<?> editorClass) { argument 81 ThreadGroupContext.getContext().getPropertyEditorFinder().register(targetType, editorClass); 87 * @param targetType The Class object for the type to be edited 91 public static PropertyEditor findEditor(Class<?> targetType) { argument 92 return ThreadGroupContext.getContext().getPropertyEditorFinder().find(targetType);
|
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/support/ |
H A D | TypeUtilities.java | 144 * @param targetType the parameter type being converted to (method type for parameter types, call site type for return types) 147 public static boolean isMethodInvocationConvertible(final Class<?> sourceType, final Class<?> targetType) { argument 148 if(targetType.isAssignableFrom(sourceType)) { 152 if(targetType.isPrimitive()) { 153 return isProperPrimitiveSubtype(sourceType, targetType); 155 return isBoxingAndWideningReferenceConversion(sourceType, targetType); 157 if(targetType.isPrimitive()) { 160 && (unboxedCallSiteType == targetType || isProperPrimitiveSubtype(unboxedCallSiteType, targetType)); 165 private static boolean isBoxingAndWideningReferenceConversion(final Class<?> sourceType, final Class<?> targetType) { argument 186 isConvertibleWithoutLoss(final Class<?> sourceType, final Class<?> targetType) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/ |
H A D | XSAnnotation.java | 52 * @param targetType A target type. 57 short targetType); 56 writeAnnotation(Object target, short targetType) argument
|
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/ |
H A D | ConstantCallSite.java | 73 * @param targetType the type of the method handle to be permanently associated with this call site 76 * or if the target returned by the hook is not of the given {@code targetType} 81 protected ConstantCallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable { argument 82 super(targetType, createTargetHook);
|
H A D | Invokers.java | 47 private final MethodType targetType; field in class:Invokers 61 /*non-public*/ Invokers(MethodType targetType) { argument 62 this.targetType = targetType; 82 MethodType basicType = targetType.basicType(); 83 if (basicType != targetType) { 119 MethodType mtype = targetType; 132 MethodType mtype = targetType; 149 if (targetType == targetType [all...] |
H A D | CallSite.java | 122 * @param targetType the desired type of the call site 125 * or if the target returned by the hook is not of the given {@code targetType} 131 CallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable { argument 132 this(targetType); 261 private MethodHandle makeUninitializedCallSite(MethodType targetType) { argument 262 MethodType basicType = targetType.basicType(); 269 return invoker.viewAsType(targetType, false);
|
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/ |
H A D | TypeCheckHints.java | 88 * @param targetType the target type of the type check 97 public TypeCheckHints(TypeReference targetType, JavaTypeProfile profile, Assumptions assumptions, double minHintHitProbability, int maxHints) { argument 99 if (targetType != null && targetType.isExact()) { 100 exact = targetType.getType(); 105 this.hints = makeHints(targetType, profile, minHintHitProbability, maxHints, hitProbability); 109 private static Hint[] makeHints(TypeReference targetType, JavaTypeProfile profile, double minHintHitProbability, int maxHints, Double[] hitProbability) { argument 119 if (targetType != null) { 121 hintsBuf[hintCount++] = new Hint(hintType, targetType.getType().isAssignableFrom(hintType));
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/ |
H A D | NashornLinker.java | 115 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument 116 GuardedInvocation gi = convertToTypeNoCast(sourceType, targetType, lookupSupplier); 118 gi = getSamTypeConverter(sourceType, targetType, lookupSupplier); 120 return gi == null ? null : gi.asType(MH.type(targetType, sourceType)); 129 * @param targetType the target type 133 private static GuardedInvocation convertToTypeNoCast(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument 134 final MethodHandle mh = JavaArgumentConverters.getConverter(targetType); 139 final GuardedInvocation arrayConverter = getArrayConverter(sourceType, targetType, lookupSupplier); 144 return getMirrorConverter(sourceType, targetType); 151 * @param targetType th 158 getSamTypeConverter(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) argument 193 getArrayConverter(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) argument 248 isComponentTypeAutoConvertibleFromFunction(final Class<?> targetType) argument 255 getMirrorConverter(final Class<?> sourceType, final Class<?> targetType) argument [all...] |
H A D | JavaArgumentConverters.java | 60 static MethodHandle getConverter(final Class<?> targetType) { argument 61 return CONVERTERS.get(targetType); 264 private static void putDoubleConverter(final Class<?> targetType) { argument 265 final Class<?> primitive = TypeUtilities.getPrimitiveType(targetType); 267 CONVERTERS.put(targetType, MH.filterReturnValue(TO_DOUBLE, findOwnMH(primitive.getName() + "Value", targetType, Double.class))); 270 private static void putLongConverter(final Class<?> targetType) { argument 271 final Class<?> primitive = TypeUtilities.getPrimitiveType(targetType); 273 CONVERTERS.put(targetType, MH.filterReturnValue(TO_LONG, findOwnMH(primitive.getName() + "Value", targetType, Lon [all...] |
H A D | NashornBottomLinker.java | 153 final MethodType targetType = desc.getMethodType(); 156 .dropArguments(handle, paramCount, targetType.parameterList().subList(paramCount, targetType.parameterCount())) 157 .asType(targetType); 175 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument 176 final GuardedInvocation gi = convertToTypeNoCast(sourceType, targetType); 177 return gi == null ? null : gi.asType(MH.type(targetType, sourceType)); 185 * @param targetType the target type 189 private static GuardedInvocation convertToTypeNoCast(final Class<?> sourceType, final Class<?> targetType) throws Exception { argument 190 final MethodHandle mh = CONVERTERS.get(targetType); [all...] |
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/ |
H A D | TypeConverterFactory.java | 124 protected MethodHandle computeValue(final Class<?> targetType) { 126 return createConverter(sourceType, targetType); 142 protected MethodHandle computeValue(final Class<?> targetType) { 143 if(!canAutoConvert(sourceType, targetType)) { 144 final MethodHandle converter = getCacheableTypeConverter(sourceType, targetType); 149 return IDENTITY_CONVERSION.asType(MethodType.methodType(targetType, sourceType)); 160 protected Boolean computeValue(final Class<?> targetType) { 162 return getTypeConverterNull(sourceType, targetType) != null; 346 /*private*/ MethodHandle getCacheableTypeConverterNull(final Class<?> sourceType, final Class<?> targetType) { argument 347 final MethodHandle converter = getCacheableTypeConverter(sourceType, targetType); 351 getTypeConverterNull(final Class<?> sourceType, final Class<?> targetType) argument 359 getCacheableTypeConverter(final Class<?> sourceType, final Class<?> targetType) argument 372 getTypeConverter(final Class<?> sourceType, final Class<?> targetType) argument 397 createConverter(final Class<?> sourceType, final Class<?> targetType) argument [all...] |
/openjdk10/jdk/test/com/sun/jdi/ |
H A D | InvokeVarArgs.java | 80 ReferenceType targetType = (ReferenceType) targetObj.type(); 81 Value arrayVal = targetObj.getValue(targetType.fieldByName("array")); 82 Value array2Val = targetObj.getValue(targetType.fieldByName("array2")); 83 Method sizeMethod = targetType.methodsByName("size", "([Ljava/lang/Object;)I").get(0);
|
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/ |
H A D | GuardingTypeConverterFactory.java | 111 * The type of the invocation is <code>(sourceType)→targetType</code>, while the 129 * @param targetType the target type. 154 public GuardedInvocation convertToType(Class<?> sourceType, Class<?> targetType, Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception; argument
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/ |
H A D | IDResolver.java | 150 * @param targetType 159 public abstract Callable<?> resolve( String id, Class targetType ) throws SAXException;
|
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/ |
H A D | XSAnnotationImpl.java | 73 * @param targetType A target type. 78 short targetType) { 79 if(targetType == XSAnnotation.W3C_DOM_ELEMENT || targetType == XSAnnotation.W3C_DOM_DOCUMENT) { 80 writeToDOM((Node)target, targetType); 82 } else if (targetType == SAX_CONTENTHANDLER) { 77 writeAnnotation(Object target, short targetType) argument
|
/openjdk10/langtools/test/tools/javac/defaultMethods/ |
H A D | TestDefaultBody.java | 101 String targetType = mref.getNameAndTypeInfo().getType(); 109 if (!targetType.equals(TARGET_TYPE)) { 110 throw new Error("unexpected method type in default method body " + targetType);
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/ |
H A D | DefaultIDResolver.java | 59 public Callable resolve(final String id, Class targetType) { argument
|
/openjdk10/nashorn/test/script/basic/ |
H A D | javaarrayconversion.js | 131 function assertCanConvert(sourceType, targetType) { 132 Java.to([new (Java.type(sourceType))()], targetType + "[]") 136 function assertCantConvert(sourceType, targetType) { 138 Java.to([new (Java.type(sourceType))()], targetType + "[]")
|
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ |
H A D | LinkerServicesWithMissingMemberHandlerFactory.java | 59 public MethodHandle getTypeConverter(final Class<?> sourceType, final Class<?> targetType) { argument 60 return linkerServices.getTypeConverter(sourceType, targetType);
|
/openjdk10/langtools/test/lib/annotations/annotations/classfile/ |
H A D | ClassfileInspector.java | 530 protected final TypeAnnotation.TargetType targetType; field in class:ClassfileInspector.ExpectedTypeAnnotation 547 * @param targetType The expected target type. 559 TypeAnnotation.TargetType targetType, 566 this.targetType = targetType; 582 sb.append(targetType); 615 matches = matches && anno.position.type == targetType; 645 protected final TypeAnnotation.TargetType targetType; field in class:ClassfileInspector.ExpectedTypeAnnotation.Builder 657 * @param targetType The expected target type. 662 TypeAnnotation.TargetType targetType, 556 ExpectedTypeAnnotation(String expectedName, boolean visibility, int expectedCount, TypeAnnotation.TargetType targetType, int bound_index, int parameter_index, int type_index, int exception_index, TypeAnnotation.Position.TypePathEntry... typePath) argument 661 Builder(String expectedName, TypeAnnotation.TargetType targetType, boolean visibility, int expectedCount) argument 762 ExpectedMethodTypeAnnotation(String methodname, String expectedName, boolean visibility, int expectedCount, TypeAnnotation.TargetType targetType, int bound_index, int parameter_index, int type_index, int exception_index, TypeAnnotation.Position.TypePathEntry... typePath) argument 837 Builder(String methodname, String expectedName, TypeAnnotation.TargetType targetType, boolean visibility, int expectedCount) argument 888 ExpectedFieldTypeAnnotation(String fieldname, String expectedName, boolean visibility, int expectedCount, TypeAnnotation.TargetType targetType, int bound_index, int parameter_index, int type_index, int exception_index, TypeAnnotation.Position.TypePathEntry... typePath) argument 957 Builder(String fieldname, String expectedName, TypeAnnotation.TargetType targetType, boolean visibility, int expectedCount) argument [all...] |
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/nodes/ |
H A D | MethodHandleNode.java | 259 ResolvedJavaType targetType = target.getDeclaringClass(); 261 AssumptionResult<ResolvedJavaMethod> concreteMethod = targetType.findUniqueConcreteMethod(target); 313 TypeReference targetType = TypeReference.create(assumptions, (ResolvedJavaType) type); 319 if (targetType != null && !targetType.getType().isPrimitive() && !argument.getStackKind().isPrimitive()) { 321 if (argumentType == null || (argumentType.isAssignableFrom(targetType.getType()) && !argumentType.equals(targetType.getType()))) { 322 LogicNode inst = InstanceOfNode.createAllowNull(targetType, argument, null, null); 339 ValueNode valueNode = adder.add(PiNode.create(argument, StampFactory.object(targetType), guard.asNode()));
|