Home
last modified time | relevance | path

Searched refs:getDeclaredConstructor (Results 1 – 25 of 32) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DExecutableParameterTest.java157 ConstructorClass.class.getDeclaredConstructor(Integer.class, Integer.class); in testConstructorGetParameterAnnotations()
164 ConstructorClass.class.getDeclaredConstructor(String.class, String.class); in testConstructorGetParameterAnnotations()
186 return AnnotatedConstructorClass.class.getDeclaredConstructor(Boolean.class); in getConstructorWithoutAnnotations()
190 return AnnotatedConstructorClass.class.getDeclaredConstructor(Long.class); in getConstructorMultipleAnnotationOddity()
195 return AnnotatedConstructorClass.class.getDeclaredConstructor(Double.class); in getConstructorMultipleAnnotationExplicitSingle()
199 return AnnotatedConstructorClass.class.getDeclaredConstructor(Integer.class); in getConstructorMultipleAnnotation()
203 return AnnotatedConstructorClass.class.getDeclaredConstructor(String.class); in getConstructorSingleAnnotation()
236 InnerClass.class.getDeclaredConstructor( in testImplicitConstructorParameters_innerClass()
258 anonymousClassInstance.getClass().getDeclaredConstructor( in testImplicitConstructorParameters_anonymousClass()
277 StaticInnerClass.class.getDeclaredConstructor(String.class); in testImplicitConstructorParameters_staticInnerClass()
DAnnotatedElementParameterTest.java87 c.getDeclaredConstructor(Integer.class, Integer.class).getParameters(); in testConstructorParameterAnnotations()
96 c.getDeclaredConstructor(String.class, String.class).getParameters(); in testConstructorParameterAnnotations()
213 return AnnotatedConstructorClass.class.getDeclaredConstructor(Boolean.class); in getConstructorWithoutAnnotations()
217 return AnnotatedConstructorClass.class.getDeclaredConstructor(Long.class); in getConstructorMultipleAnnotationOddity()
222 return AnnotatedConstructorClass.class.getDeclaredConstructor(Double.class); in getConstructorMultipleAnnotationExplicitSingle()
226 return AnnotatedConstructorClass.class.getDeclaredConstructor(String.class); in getConstructorSingleAnnotation()
230 return AnnotatedConstructorClass.class.getDeclaredConstructor(Integer.class); in getConstructorMultipleAnnotation()
454 InnerClass.class.getDeclaredConstructor( in testImplicitConstructorParameters_innerClass()
495 anonymousClassInstance.getClass().getDeclaredConstructor( in testImplicitConstructorParameters_anonymousClass()
534 StaticInnerClass.class.getDeclaredConstructor(String.class); in testImplicitConstructorParameters_staticInnerClass()
DConstructorTest.java159 return c.getDeclaredConstructor(args); in getConstructor()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DParameterTest.java109 Constructor<?> constructor = SingleParameter.class.getDeclaredConstructor(String.class); in testSingleParameterConstructor()
132 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testSingleParameterConstructor_withMetadata()
165 Constructor<?> constructor = GenericParameter.class.getDeclaredConstructor(Function.class); in testGenericParameterConstructor()
191 Constructor<?> constructor = clazz.getDeclaredConstructor(Function.class); in testGenericParameterConstructor_withMetadata()
226 TwoParameters.class.getDeclaredConstructor(String.class, Integer.class); in testTwoParameterConstructor()
254 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class, Integer.class); in testTwoParameterConstructor_withMetadata()
293 Constructor<?> constructor = FinalParameter.class.getDeclaredConstructor(String.class); in testFinalParameterConstructor()
316 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testFinalParameterConstructor_withMetdata()
356 Constructor<?> constructor = innerClass.getDeclaredConstructor(outerClass); in testInnerClassSingleParameter()
372 Constructor<?> constructor = innerClass.getDeclaredConstructor(outerClass); in testInnerClassSingleParameter_withMetadata()
[all …]
DConstructorTest.java108 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( in testGetDeclaredConstructorReturnsPrivateConstructor()
154 Constructor c = clazz.getDeclaredConstructor(constructorArgTypes); in checkToString()
181 Constructor c = clazz.getDeclaredConstructor(constructorArgTypes); in checkToGenericString()
DClassLoaderReflectionTest.java132 Constructor<?> c1 = A.class.getDeclaredConstructor(); in testConstructorsOfDifferentClassLoadersAreNotEqual()
133 Constructor<?> c2 = aClass.getDeclaredConstructor(); in testConstructorsOfDifferentClassLoadersAreNotEqual()
DReflectionTest.java132 Constructor constructorOne = C.class.getDeclaredConstructor(A.class); in testConstructorToString()
137 Constructor constructorTwo = C.class.getDeclaredConstructor(Map.class, Object.class); in testConstructorToString()
500 assertEquals(Foo.class.getDeclaredConstructor(String.class), in testClassEnclosedByConstructor()
DOldGenericTypesTest.java68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); in testConstructorGenericType()
/libcore/luni/src/test/java/libcore/java/lang/
DNoClassDefFoundErrorTest.java24 klass.getDeclaredConstructor(String.class, Throwable.class); in test_NoClassDefFoundError_constructor_with_cause()
DOldClassTest.java657 TestClass.class.getDeclaredConstructor(String.class); in test_getDeclaredConstructor$Ljava_lang_Class()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DConstructorTest.java235 .getDeclaredConstructor(cl); in test_getModifiers()
246 .getDeclaredConstructor(cl); in test_getModifiers()
414 assertEquals(c2.getDeclaredConstructor(new Class[0]), in test_getConstructor()
415 c2.getDeclaredConstructor((Class[]) null)); in test_getConstructor()
419 c1.getDeclaredConstructor((Class[]) null); in test_getConstructor()
DMalformedParameterizedTypeExceptionTests.java14 .getDeclaredConstructor(); in test_Constructor()
DTypeVariableTest.java68 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testSimpleTypeVariableOnConstructor()
132 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testMultipleTypeVariablesOnConstructor()
DInvocationTargetExceptionTest.java119 .getDeclaredConstructor(); in test_Constructor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DConsoleTest.java50 Console.class.getDeclaredConstructor(InputStream.class, OutputStream.class); in setUp()
/libcore/benchmarks/src/benchmarks/
DDeepArrayOpsBenchmark.java111 Constructor<V> constructor = type.getDeclaredConstructor(String.class); in new16ElementArray()
/libcore/ojluni/src/main/java/java/nio/file/
DFileSystems.java120 .getDeclaredConstructor(FileSystemProvider.class); in getDefaultProvider()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java261 Constructor<TestClass> c = TestClass.class.getDeclaredConstructor(new Class[0]); in test_getDeclaredConstructor$Ljava_lang_Class()
263 c = TestClass.class.getDeclaredConstructor(Object.class); in test_getDeclaredConstructor$Ljava_lang_Class()
DStringTest.java38 uc = String.class.getDeclaredConstructor(new Class[] { int.class,
/libcore/ojluni/annotations/mmodule/java/lang/
DClass.annotated.java153 public java.lang.reflect.Constructor<T> getDeclaredConstructor(java.lang.Class<?>... parameterTypes… in getDeclaredConstructor() method in Class
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DClass.annotated.java140 @libcore.util.NonNull public java.lang.reflect.Constructor<T> getDeclaredConstructor(java.lang.@lib… in getDeclaredConstructor() method in Class
/libcore/ojluni/annotations/hiddenapi/java/lang/
DClass.java298 public java.lang.reflect.Constructor<T> getDeclaredConstructor( in getDeclaredConstructor() method in Class
/libcore/ojluni/src/main/java/java/lang/
DClass.java2168 public Constructor<T> getDeclaredConstructor(Class<?>... parameterTypes) in getDeclaredConstructor() method in Class
/libcore/ojluni/src/main/java/sun/security/x509/
DX500Name.java1410 Constructor<X500Principal> cons = pClass.getDeclaredConstructor(args);
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1398 Constructor<?> cons = cl.getDeclaredConstructor((Class<?>[]) null); in getExternalizableConstructor()
1420 Constructor<?> cons = initCl.getDeclaredConstructor((Class<?>[]) null); in getSerializableConstructor()

12