HomeSort by relevance Sort by last modified time
    Searched refs:Constructor (Results 1 - 25 of 274) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/mockito/src/org/mockito/internal/util/reflection/
Constructors.java 3 import java.lang.reflect.Constructor;
8 * Returns the no arg constructor of the type if any.
10 * @param classToMock The type to look for a no-arg constructor
11 * @return The no-arg constructor or null if none is declared.
13 public static Constructor<?> noArgConstructorOf(Class<?> classToMock) {
  /external/objenesis/main/src/org/objenesis/instantiator/sun/
SunReflectionFactoryInstantiator.java 18 import java.lang.reflect.Constructor;
24 * Instantiates an object, WITHOUT calling it's constructor, using internal
27 * caused by the constructor - however it is not available on every platform.
34 private final Constructor mungedConstructor;
37 Constructor javaLangObjectConstructor = getJavaLangObjectConstructor();
52 private static Constructor getJavaLangObjectConstructor() {
SunReflectionFactoryHelper.java 18 import java.lang.reflect.Constructor;
34 public static Constructor newConstructorForSerialization(Class type, Constructor constructor) {
42 return (Constructor) newConstructorForSerializationMethod.invoke(
43 reflectionFactory, new Object[] {type, constructor});
88 "newConstructorForSerialization", new Class[] {Class.class, Constructor.class});
SunReflectionFactorySerializationInstantiator.java 19 import java.lang.reflect.Constructor;
29 * constructor. This is the best way to instantiate an object without any side effects caused by the
30 * constructor - however it is not available on every platform.
37 private final Constructor mungedConstructor;
42 Constructor nonSerializableAncestorConstructor;
48 throw new ObjenesisException(new NotSerializableException(type+" has no suitable superclass constructor"));
  /external/objenesis/main/src/org/objenesis/instantiator/basic/
ConstructorInstantiator.java 18 import java.lang.reflect.Constructor;
24 * Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
32 protected Constructor constructor; field in class:ConstructorInstantiator
36 constructor = type.getDeclaredConstructor((Class[]) null);
45 return constructor.newInstance((Object[]) null);
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
MalformedParameterizedTypeExceptionTests.java 3 import java.lang.reflect.Constructor;
13 Constructor<MalformedParameterizedTypeException> ctor = MalformedParameterizedTypeException.class
15 assertNotNull("Parameterless constructor does not exist.", ctor);
16 assertTrue("Constructor is not protected", Modifier.isPublic(ctor
ConstructorTest.java 25 import java.lang.reflect.Constructor;
37 @Target( {ElementType.CONSTRUCTOR, ElementType.PARAMETER})
42 @Target( {ElementType.CONSTRUCTOR, ElementType.PARAMETER})
47 @Target( {ElementType.CONSTRUCTOR, ElementType.PARAMETER})
52 @Target( {ElementType.CONSTRUCTOR, ElementType.PARAMETER})
94 // This class has no public constructor.
97 // Used to test synthetic constructor.
107 Constructor<ConstructorTestHelper> ctor1 = ConstructorTestHelper.class
127 Constructor<ConstructorTestHelper> ctor1 = null;
143 Constructor<ConstructorTestHelper> varArgCtor = ConstructorTestHelper.clas
154 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class local
327 Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class local
358 Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class local
    [all...]
  /external/objenesis/main/src/org/objenesis/instantiator/jrockit/
JRockit131Instantiator.java 15 import java.lang.reflect.Constructor;
31 private Constructor mungedConstructor;
41 "newConstructorForSerialization", new Class[] {Constructor.class, Class.class});
61 Constructor javaLangObjectConstructor;
67 throw new Error("Cannot find constructor for java.lang.Object!");
71 mungedConstructor = (Constructor) newConstructorForSerializationMethod.invoke(null,
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ConstructorTest.java 19 import java.lang.reflect.Constructor;
24 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); local
25 Class[] exceptions = constructor.getExceptionTypes();
30 exceptions = constructor.getExceptionTypes();
37 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); local
38 Class[] parameters = constructor.getParameterTypes();
43 parameters = constructor.getParameterTypes();
49 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null) local
70 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( local
    [all...]
  /libcore/dom/src/test/java/org/w3c/domts/
XalanDOMTestDocumentBuilderFactory.java 29 import java.lang.reflect.Constructor;
46 * factory will be mutated in constructor and should be released
71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); local
72 return constructor.newInstance(new Object[] {doc});
JUnitTestSuiteAdapter.java 15 import java.lang.reflect.Constructor;
34 Constructor testConstructor = testclass.getConstructor(
  /external/objenesis/tck/src/org/objenesis/tck/candidates/
serializable-candidates.properties 54 # Different visibilities of constructor.
55 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (serializable)
56 org.objenesis.tck.candidates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
57 org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
58 org.objenesis.tck.candidates.SerializableDefaultPackageConstructor = Default package constructor (serializable)
59 org.objenesis.tck.candidates.SerializableDefaultPrivateConstructor = Default private constructor (serializable)
64 org.objenesis.tck.candidates.SerializableConstructorThrowingException = Constructor throwing exception (serializable)
65 org.objenesis.tck.candidates.SerializableConstructorWithArguments = Constructor with arguments (serializable)
66 org.objenesis.tck.candidates.SerializableConstructorWithMandatoryArguments = Constructor with mandatory arguments (serializable)
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
ConstructorTest.java 20 import java.lang.reflect.Constructor;
49 * @tests java.lang.reflect.Constructor#equals(java.lang.Object)
53 Constructor ctor1 = null, ctor2 = null;
67 * @tests java.lang.reflect.Constructor#getDeclaringClass()
71 // java.lang.reflect.Constructor.getDeclaringClass()
74 Constructor ctor = pclass.getConstructor(new Class[0]);
81 * @tests java.lang.reflect.Constructor#getExceptionTypes()
86 Constructor ctor = new ConstructorTestHelper().getClass()
97 * @tests java.lang.reflect.Constructor#getModifiers()
102 Constructor ctor = new ConstructorTestHelper().getClass(
185 Constructor constructor = Vector.class local
197 Constructor constructor = MockObject.class.getConstructor(Class.class); local
    [all...]
  /external/mockito/src/org/mockito/internal/runners/util/
RunnerProvider.java 7 import java.lang.reflect.Constructor;
30 Constructor<?> constructor; local
33 constructor = runnerClass.getConstructor(Class.class.getClass());
39 return (RunnerImpl) constructor.newInstance(constructorParam);
  /libcore/dom/src/test/java/org/w3c/domts/level1/core/
TestBatik.java 16 import java.lang.reflect.Constructor;
31 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestCrimson.java 16 import java.lang.reflect.Constructor;
32 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestCrimsonAltConfig.java 16 import java.lang.reflect.Constructor;
32 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestDOM4J.java 16 import java.lang.reflect.Constructor;
31 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestDefaultLS.java 14 import java.lang.reflect.Constructor;
38 Constructor testConstructor =
TestDefaultLSAltConfig.java 14 import java.lang.reflect.Constructor;
38 Constructor testConstructor =
TestDefaultParser.java 16 import java.lang.reflect.Constructor;
30 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestDefaultParserAltConfig.java 16 import java.lang.reflect.Constructor;
30 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestGNUJAXP.java 16 import java.lang.reflect.Constructor;
32 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestGNUJAXPAltConfig.java 16 import java.lang.reflect.Constructor;
32 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });
TestJTidy.java 16 import java.lang.reflect.Constructor;
31 Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory.class });

Completed in 1609 milliseconds

1 2 3 4 5 6 7 8 91011