Searched refs:arrayType (Results 1 - 25 of 30) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DMethodHandle.java736 * by a single array parameter of type {@code arrayType}.
794 * @param arrayType usually {@code Object[]}, the type of the array argument from which to extract the spread arguments
798 * @throws NullPointerException if {@code arrayType} is a null reference
799 * @throws IllegalArgumentException if {@code arrayType} is not an array type
806 public MethodHandle asSpreader(Class<?> arrayType, int arrayLength) { argument
807 asSpreaderChecks(arrayType, arrayLength);
809 return MethodHandleImpl.makeSpreadArguments(this, arrayType, spreadArgPos, arrayLength);
812 private void asSpreaderChecks(Class<?> arrayType, int arrayLength) { argument
813 spreadArrayChecks(arrayType, arrayLength);
817 if (arrayType !
837 spreadArrayChecks(Class<?> arrayType, int arrayLength) argument
920 asCollector(Class<?> arrayType, int arrayLength) argument
931 asCollectorChecks(Class<?> arrayType, int arrayLength) argument
1092 asVarargsCollector(Class<?> arrayType) argument
[all...]
H A DMethodHandleImpl.java306 static MethodHandle makeVarargsCollector(MethodHandle target, Class<?> arrayType) { argument
309 if (type.parameterType(last) != arrayType)
310 target = target.asType(type.changeParameterType(last, arrayType));
312 return new AsVarargsCollector(target, target.type(), arrayType);
317 private final Class<?> arrayType; field in class:MethodHandleImpl.AsVarargsCollector
320 AsVarargsCollector(MethodHandle target, MethodType type, Class<?> arrayType) { argument
323 this.arrayType = arrayType;
324 this.cache = target.asCollector(arrayType, 0);
356 collector = asFixedArity().asCollector(arrayType, arrayLengt
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/impl/
H A DArrayInfoImpl.java56 private final TypeT arrayType; field in class:ArrayInfoImpl
59 Locatable upstream, TypeT arrayType) {
61 this.arrayType = arrayType;
62 TypeT componentType = nav().getComponentType(arrayType);
100 return arrayType;
117 return nav().getTypeName(arrayType);
58 ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream, TypeT arrayType) argument
H A DRuntimeArrayInfoImpl.java41 RuntimeArrayInfoImpl(RuntimeModelBuilder builder, Locatable upstream, Class arrayType) { argument
42 super(builder, upstream, arrayType);
H A DRuntimeModelBuilder.java108 public RuntimeArrayInfoImpl createArrayInfo(Locatable upstream, Type arrayType) { argument
109 return new RuntimeArrayInfoImpl(this, upstream, (Class)arrayType);
H A DModelBuilder.java345 protected ArrayInfoImpl<T,C,F,M> createArrayInfo(Locatable upstream, T arrayType) { argument
346 return new ArrayInfoImpl<T, C, F, M>(this,upstream,arrayType);
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DArrayReferenceImpl.java52 ArrayTypeImpl arrayType() { method in class:ArrayReferenceImpl
206 return "instance of " + arrayType().componentTypeName() +
232 arrayType().signature());
248 arrayType().findComponentType(srcComponentSignature);
255 arrayType().name() +
271 return arrayType().componentType();
274 return arrayType().componentTypeName();
277 return arrayType().componentSignature();
280 return arrayType().findComponentType(signature);
/openjdk7/corba/src/share/classes/sun/rmi/rmic/iiop/
H A DArrayType.java72 sun.tools.java.Type arrayType = theType;
74 if (arrayType.getTypeCode() == TC_ARRAY) {
78 while (arrayType.getTypeCode() == TC_ARRAY) {
79 arrayType = arrayType.getElementType();
96 Type temp = CompoundType.makeType(arrayType,null,stack);
/openjdk7/jdk/test/com/sun/jdi/
H A DNewInstanceTest.java81 ArrayType arrayType = (ArrayType)arrayField.type();
82 println("Type for " + fieldName + " is " + arrayType);
83 ArrayReference arrayReference = arrayType.newInstance(20);
H A DClassLoaderClassesTest.java103 ArrayType arrayType = (ArrayType)arrayField.type();
104 println("Type for intArray is " + arrayType);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/modeler/annotation/
H A DTypeMonikerFactory.java60 private TypeMoniker arrayType; field in class:TypeMonikerFactory.ArrayTypeMoniker
63 arrayType = TypeMonikerFactory.getTypeMoniker(type.getComponentType());
67 return apEnv.getTypeUtils().getArrayType(arrayType.create(apEnv));
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/
H A DTypeMaker.java189 Type arrayType; field in class:TypeMaker.ArrayTypeImpl
193 ArrayTypeImpl(DocEnv env, Type arrayType) { argument
195 this.arrayType = arrayType;
203 for (t = arrayType; t.tag == ARRAY; t = env.types.elemtype(t)) { }
216 for (Type t = arrayType; t.tag == ARRAY; t = env.types.elemtype(t)) {
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DArrayReferenceImpl.java47 ArrayTypeImpl arrayType() { method in class:ArrayReferenceImpl
110 char c = arrayType().componentSignature().charAt(0);
168 return "instance of " + arrayType().componentTypeName() +
/openjdk7/hotspot/src/share/vm/c1/
H A Dc1_ValueType.cpp39 ArrayType* arrayType = NULL; variable
63 arrayType = new (arena) ArrayType();
133 case T_ARRAY : return arrayType;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/
H A DValueListBeanInfoImpl.java55 public ValueListBeanInfoImpl(JAXBContextImpl owner, Class arrayType) throws JAXBException { argument
56 super(owner, null, arrayType, false, true, false);
58 this.xducer = owner.getBeanInfo(arrayType.getComponentType(),true).getTransducer();
/openjdk7/jdk/test/sun/invoke/util/
H A DValueConversionsTest.java324 private void testTypedVarargsArray(Class<?> arrayType) throws Throwable { argument
325 //System.out.println(arrayType.getSimpleName());
326 Class<?> elemType = arrayType.getComponentType();
334 MethodHandle varargsArray = ValueConversions.varargsArray(arrayType, nargs);
336 assertEquals(arrayType, vaType.returnType());
341 assertEquals(MethodType.methodType(arrayType, Collections.<Class<?>>nCopies(nargs, elemType)),
347 MethodHandle spreader = varargsArray.asSpreader(arrayType, nargs);
349 assert(stype == MethodType.methodType(arrayType, arrayType));
360 assertTrue(arrayType
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/document/
H A DPort.java48 public com.sun.xml.internal.ws.wsdl.writer.document.Port arrayType(String value); method in interface:Port
/openjdk7/hotspot/agent/test/jdi/
H A Dsagdoit.java210 Class arrayType = null;
216 arrayType = Class.forName("com.sun.jdi.ArrayType");
227 if (arrayType.isInstance(xx)) {
/openjdk7/jdk/src/share/classes/sun/invoke/util/
H A DValueConversions.java871 public static Object convertArrayElements(Class<?> arrayType, Object array) { argument
873 Class<?> dst = arrayType.getComponentType();
882 return Arrays.copyOf(a, length, arrayType.asSubclass(Object[].class));
890 res = Arrays.copyOf(NO_ARGS_ARRAY, length, arrayType.asSubclass(Object[].class));
1012 private static Object[] copyAsReferenceArray(Class<? extends Object[]> arrayType, Object... a) { argument
1013 return Arrays.copyOf(a, a.length, arrayType);
1122 public static MethodHandle varargsArray(Class<?> arrayType, int nargs) { argument
1123 Class<?> elemType = arrayType.getComponentType();
1124 if (elemType == null) throw new IllegalArgumentException("not an array: "+arrayType);
1129 if (arrayType
1159 buildArrayProducer(Class<?> arrayType) argument
[all...]
H A DWrapper.java592 public Class<?> arrayType() { method in class:Wrapper
596 if (a.getClass() != arrayType())
597 arrayType().cast(a); // throw NPE or CCE if bad type
605 if (a.getClass() != arrayType())
606 arrayType().cast(a); // throw NPE or CCE if bad type
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/presentation/rmi/
H A DIDLTypesUtil.java140 boolean arrayType = false;
148 arrayType =
154 return arrayType;
/openjdk7/jdk/test/java/lang/invoke/
H A DMethodHandlesTest.java297 static MethodHandle varargsArray(Class<?> arrayType, int arity) { argument
298 return ValueConversions.varargsArray(arrayType, arity);
1296 Class<?> arrayType = array.getClass();
1297 Class<?> elemType = arrayType.getComponentType();
1318 assert(arrayType.isInstance(arrayToMH))
1319 : Arrays.asList(arrayType, arrayToMH.getClass(), testSetter, negTest);
1325 ? MethodType.methodType(elemType, arrayType, int.class)
1326 : MethodType.methodType(void.class, arrayType, int.class, elemType);
1328 ? MethodHandles.arrayElementGetter(arrayType)
1329 : MethodHandles.arrayElementSetter(arrayType);
2897 varargsArray(Class<?> arrayType, int nargs) argument
2905 changeArrayType(Class<?> arrayType, Object[] a) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/management/openmbean/
H A DOpenMBeanAttributeInfoSupport.java756 ArrayType<?> arrayType = (ArrayType<?>) openType;
757 OpenType<?> baseType = arrayType.getElementOpenType();
758 int dim = arrayType.getDimension();
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/jvm/
H A DCode.java380 public void emitMultianewarray(int ndims, int type, Type arrayType) { argument
386 state.push(arrayType);
391 public void emitNewarray(int elemcode, Type arrayType) { argument
396 state.push(arrayType);
401 public void emitAnewarray(int od, Type arrayType) { argument
406 state.push(arrayType);
/openjdk7/jdk/src/share/classes/sun/reflect/annotation/
H A DAnnotationParser.java451 * If the array values do not match arrayType, an
454 private static Object parseArray(Class<?> arrayType, argument
459 Class<?> componentType = arrayType.getComponentType();

Completed in 1098 milliseconds

12