/libcore/luni/src/main/java/java/lang/ |
Class.java | 44 import java.lang.reflect.Constructor; 454 * Returns a {@code Constructor} object which represents the public 455 * constructor matching the specified parameter types. 458 * the parameter types of the requested constructor. 460 * @return the constructor described by {@code parameterTypes}. 462 * if the constructor can not be found. 469 public Constructor<T> getConstructor(Class<?>... parameterTypes) throws NoSuchMethodException, 476 * Returns an array containing {@code Constructor} objects for all public 488 public Constructor<?>[] getConstructors() throws SecurityException { 560 * Returns a {@code Constructor} object which represents the constructo [all...] |
SecurityManager.java | 26 import java.lang.reflect.Constructor; 551 Constructor<?> constructor = awtPermission local 553 Object perm = constructor 578 Constructor<?> constructor = awtPermission local 580 Object perm = constructor.newInstance("accessClipboard"); 603 Constructor<?> constructor = awtPermission local 605 Object perm = constructor.newInstance("accessEventQueue") [all...] |
/cts/tools/signature-tools/src/signature/converter/doclet/ |
DocletFactory.java | 22 import java.lang.reflect.Constructor;
98 Constructor<Messager> c;
|
/dalvik/tests/004-annotations/src/android/test/anno/ |
TestAnnotations.java | 4 import java.lang.reflect.Constructor; 38 for (Constructor c: clazz.getDeclaredConstructors()) { 43 System.out.println(" constructor parameter annotations:");
|
/libcore/luni/src/main/java/java/io/ |
ObjectStreamClass.java | 21 import java.lang.reflect.Constructor; 191 // MethodID for deserialization constructor 192 private transient long constructor = CONSTRUCTOR_IS_NOT_RESOLVED; field in class:ObjectStreamClass 195 constructor = newConstructor; 199 return constructor; 515 // Constructor information 516 Constructor<?>[] constructors = cl.getDeclaredConstructors(); 520 Comparator<Constructor<?>> constructorComparator = new Comparator<Constructor<?>>() { 521 public int compare(Constructor<?> ctr1, Constructor<?> ctr2) 533 Constructor<?> constructor = constructors[i]; local [all...] |
/libcore/luni/src/main/java/javax/security/cert/ |
X509Certificate.java | 22 import java.lang.reflect.Constructor; 49 private static Constructor constructor; field in class:X509Certificate 61 constructor = 89 if (constructor != null) { 92 constructor.newInstance(new Object[] {inStream});
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
DexWrapper.java | 28 import java.lang.reflect.Constructor; 51 private Constructor<?> mArgConstructor;
|
/external/nist-sip/java/javax/sip/ |
SipFactory.java | 3 import java.lang.reflect.Constructor;
|
/dalvik/dx/src/junit/framework/ |
TestSuite.java | 6 import java.lang.reflect.Constructor; 19 * TestSuite constructor. 23 * This constructor creates a suite with all the methods 59 addTest(warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()")); 120 Constructor constructor; local 122 constructor= getTestConstructor(theClass); 124 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"); 128 if (constructor.getParameterTypes().length == 0) { 129 test= constructor.newInstance(new Object[0]) [all...] |
/external/junit/src/junit/framework/ |
TestSuite.java | 5 import java.lang.reflect.Constructor; 23 * TestSuite constructor. 27 * This constructor creates a suite with all the methods 45 Constructor constructor; local 47 constructor= getTestConstructor(theClass); 49 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"); 53 if (constructor.getParameterTypes().length == 0) { 54 test= constructor.newInstance(new Object[0]); 58 test= constructor.newInstance(new Object[]{name}) [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
XercesHTML2DocumentBuilderFactory.java | 15 import java.lang.reflect.Constructor; 39 private Constructor htmlBuilderConstructor; 122 Constructor htmlBuilderConstructor,
|
XercesHTMLDocumentBuilderFactory.java | 15 import java.lang.reflect.Constructor; 39 private Constructor htmlBuilderConstructor; 122 Constructor htmlBuilderConstructor,
|
/libcore/junit/src/main/java/junit/framework/ |
TestSuite.java | 8 import java.lang.reflect.Constructor; 21 * TestSuite constructor. 25 * This constructor creates a suite with all the methods 61 addTest(warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()")); 122 Constructor constructor; local 124 constructor= getTestConstructor(theClass); 126 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"); 130 if (constructor.getParameterTypes().length == 0) { 131 test= constructor.newInstance(new Object[0]) [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
TypeVariableTest.java | 25 import java.lang.reflect.Constructor; 102 Constructor<?> constructor = clazz.getDeclaredConstructor(); local 103 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); 106 assertEquals(constructor, typeVariable.getGenericDeclaration()); 171 Constructor<?> constructor = clazz.getDeclaredConstructor(); local 173 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); 176 assertEquals(constructor, typeParameters[0].getGenericDeclaration()); 179 assertEquals(constructor, typeParameters[1].getGenericDeclaration()) [all...] |
InvocationTargetExceptionTest.java | 29 import java.lang.reflect.Constructor; 130 Constructor<InvocationTargetException> ctor = InvocationTargetException.class 132 assertNotNull("Parameterless constructor does not exist.", ctor); 133 assertTrue("Constructor is not protected", Modifier.isProtected(ctor 135 //create an instance of a subtype using this constructor 217 fail("Exception during constructor test : " + e.getMessage());
|
/external/nist-sip/java/gov/nist/javax/sip/ |
SipStackImpl.java | 47 import java.lang.reflect.Constructor; 113 * log stream. The log factory must have a default constructor.</li> 143 * a no arg constructor. This allows to use different logging implementations 151 * a no arg constructor. This allows to use different logging implementations 525 * Constructor for the stack. 564 Constructor<?> cons = stackLoggerClass 574 + "- check that it is present on the classpath and that there is a no-args constructor defined", 580 + "- check that it is present on the classpath and that there is a no-args constructor defined", 593 Constructor<?> cons = serverLoggerClass 603 + "- check that it is present on the classpath and that there is a no-args constructor defined" [all...] |
/external/astl/include/ |
string | 309 void Constructor(const value_type *str, size_type n); 310 void Constructor(const value_type *str, size_type pos, size_type n); 311 void Constructor(size_type num, char c);
|
/external/v8/src/ |
apinatives.js | 51 var Constructor = %GetTemplateField(data, kApiConstructorOffset); 52 var result = Constructor ? new (Instantiate(Constructor))() : {}; 77 %SetProperty(fun.prototype, "constructor", fun, DONT_ENUM);
|
/frameworks/base/core/java/android/preference/ |
GenericInflater.java | 20 import java.lang.reflect.Constructor; 369 Constructor constructor = (Constructor) sConstructorMap.get(name); local 372 if (null == constructor) { 377 constructor = clazz.getConstructor(mConstructorSignature); 378 sConstructorMap.put(name, constructor); 383 return (T) constructor.newInstance(args); 400 + constructor.getClass().getName());
|
/frameworks/base/core/java/android/view/ |
LayoutInflater.java | 29 import java.lang.reflect.Constructor; 77 private static final HashMap<String, Constructor> sConstructorMap = 78 new HashMap<String, Constructor>(); 465 Constructor constructor = sConstructorMap.get(name); local 469 if (constructor == null) { 480 constructor = clazz.getConstructor(mConstructorSignature); 481 sConstructorMap.put(name, constructor); 483 // If we have a filter, apply it to cached constructor 505 return (View) constructor.newInstance(args) [all...] |
/cts/tools/signature-tools/test/signature/converter/doclet/ |
DocletTestConverter.java | 24 import java.lang.reflect.Constructor;
159 Constructor<Messager> c;
|
/dalvik/tests/031-class-attributes/src/ |
ClassAttrs.java | 4 import java.lang.reflect.Constructor; 46 Constructor cons; 49 System.out.println("constructor signature: "
|
/dalvik/tests/044-proxy/src/ |
BasicTest.java | 20 import java.lang.reflect.Constructor; 94 Constructor<Class> cons; 97 //System.out.println("Constructor is " + cons);
|
/frameworks/base/tests/CoreTests/android/core/ |
ClassTest.java | 24 import java.lang.reflect.Constructor; 59 //System.out.println("Class.newInstance() private constructor"); 103 Constructor constructor = helloClass.getConstructor((Class[]) null); local 104 assertNotNull(constructor);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ClassLoaderReflectionTest.java | 21 import java.lang.reflect.Constructor; 112 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; local 113 Type[] parameters = constructor.getGenericParameterTypes();
|