Searched refs:constructor (Results 1 - 18 of 18) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DConstructorTest.java24 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]);
25 Class[] exceptions = constructor.getExceptionTypes();
30 exceptions = constructor.getExceptionTypes();
37 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters);
38 Class[] parameters = constructor.getParameterTypes();
43 parameters = constructor.getParameterTypes();
49 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null);
50 assertEquals(0, constructor.getParameterTypes().length);
70 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor(
72 assertEquals(2, constructor
[all...]
H A DGenericExceptionsTest.java43 Constructor constructor = Thrower.class.getConstructor();
45 Arrays.asList(constructor.getGenericExceptionTypes()));
49 Constructor constructor = Thrower.class.getConstructor(List.class);
51 Arrays.asList(constructor.getGenericExceptionTypes()));
55 Constructor constructor = ThrowerT.class.getConstructor();
56 TypeVariable typeVariable = getOnlyValue(constructor.getGenericExceptionTypes(),
H A DAnnotationsTest.java43 Constructor<Type> constructor = Type.class.getConstructor();
44 assertAnnotatedElement(constructor, AnnotationA.class, AnnotationC.class);
H A DClassLoaderReflectionTest.java108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0];
109 Type[] parameters = constructor.getGenericParameterTypes();
H A DOldAndroidClassTest.java90 Constructor constructor = helloClass.getConstructor((Class[]) null);
91 assertNotNull(constructor);
H A DOldGenericTypesTest.java68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class);
69 Type[] genericParameterTypes = constructor.getGenericParameterTypes();
192 //constructor
/libcore/dom/src/test/java/org/w3c/domts/
H A DXalanDOMTestDocumentBuilderFactory.java46 * factory will be mutated in constructor and should be released
71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class});
72 return constructor.newInstance(new Object[] {doc});
H A DJUnitTestCaseAdapter.java85 Constructor<?> constructor = clazz.getConstructor(new Class<?>[] {
89 test = (DOMTestCase)constructor.newInstance(new Object[] {
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DTypeVariableTest.java64 Constructor<?> constructor = clazz.getDeclaredConstructor();
65 TypeVariable<?>[] typeParameters = constructor.getTypeParameters();
68 assertEquals(constructor, typeVariable.getGenericDeclaration());
115 Constructor<?> constructor = clazz.getDeclaredConstructor();
117 TypeVariable<?>[] typeParameters = constructor.getTypeParameters();
120 assertEquals(constructor, typeParameters[0].getGenericDeclaration());
123 assertEquals(constructor, typeParameters[1].getGenericDeclaration());
126 assertEquals(constructor, typeParameters[2].getGenericDeclaration());
H A DConstructorTest.java94 // This class has no public constructor.
97 // Used to test synthetic constructor.
145 assertTrue("Vararg constructor not recognized", varArgCtor.isVarArgs());
149 assertFalse("Non vararg constructor recognized as vararg constructor",
154 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class
157 "The constructor's hashCode is not equal to the hashCode of the name of the declaring class",
158 ConstructorTestHelper.class.getName().hashCode(), constructor
327 Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class
329 types = constructor
[all...]
/libcore/luni/src/main/java/javax/security/cert/
H A DX509Certificate.java48 private static Constructor constructor; field in class:X509Certificate
53 constructor = cl.getConstructor(new Class[] {InputStream.class});
79 if (constructor != null) {
82 constructor.newInstance(new Object[] {inStream});
/libcore/luni/src/main/native/
H A Djava_io_ObjectStreamClass.cpp40 static jobject ObjectStreamClass_getConstructorSignature(JNIEnv* env, jclass, jobject constructor) { argument
41 return getSignature(env, JniConstants::constructorClass, constructor);
/libcore/benchmarks/src/benchmarks/
H A DXmlParseBenchmark.java133 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) argument
138 XmlPullParser xmlPullParser = constructor.newInstance();
/libcore/benchmarks/src/benchmarks/regression/
H A DReflectionBenchmark.java55 Constructor constructor = klass.getConstructor();
57 constructor.newInstance();
164 // A non-empty constructor so we don't get optimized away.
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyFactoryTest.java458 Constructor<T> constructor = null;
461 constructor = keySpec.getConstructor(TestPrivateKey.class);
469 constructor = keySpec.getConstructor(TestPublicKey.class);
477 if (constructor == null) {
482 return constructor.newInstance(key);
/libcore/luni/src/main/java/java/io/
H A DObjectStreamClass.java177 // MethodID for deserialization constructor
178 private transient long constructor = CONSTRUCTOR_IS_NOT_RESOLVED; field in class:ObjectStreamClass
181 constructor = newConstructor;
185 return constructor;
525 Constructor<?> constructor = constructors[i];
526 int modifiers = constructor.getModifiers()
534 * constructor.getName() returns the constructor name as
540 getConstructorSignature(constructor)).replace('/',
600 * method/constructor signatur
[all...]
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 446 milliseconds