/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) {
|
FieldInitializer.java | 9 import java.lang.reflect.Constructor;
19 * Initialize a field with type instance if a default constructor can be found.
38 * This constructor fail fast if the field type cannot be handled.
52 * This constructor fail fast if the field type cannot be handled.
57 * @param argResolver Constructor parameters resolver
128 * to be given to a constructor given the argument types.
141 * @param argTypes Constructor argument types, should not be null.
142 * @return The argument instances to be given to the constructor, should not be null.
152 * Constructor instantiating strategy for no-arg constructor. 175 Constructor<?> constructor = null; local 233 Constructor<?> constructor = null; local 268 Constructor<?> constructor = constructors.get(0); local [all...] |
/external/clang/test/SemaCXX/ |
copy-constructor-error.cpp | 4 S (S); // expected-error {{copy constructor must pass its first argument by reference}} 19 foo::foo(foo&, int = 0) { } // expected-error {{makes this constructor a copy constructor}} 20 foo::foo(int = 0) { } // expected-error {{makes this constructor a default constructor}} 21 foo::foo(const foo& = 0) { } //expected-error {{makes this constructor a default constructor}} 29 A::A(A&, int = 0) { } // expected-error {{makes this constructor a copy constructor}} 41 A::A(int a = 0, // expected-error {{makes this constructor a default constructor} [all...] |
direct-initializer.cpp | 16 class X { // expected-note{{candidate constructor (the implicit copy constructor)}} 18 explicit X(int); // expected-note{{candidate constructor}} 19 X(float, float, float); // expected-note{{candidate constructor}} 20 X(float, Y); // expected-note{{candidate constructor}} 23 class Z { // expected-note{{candidate constructor (the implicit copy constructor)}} 25 Z(int); // expected-note{{candidate constructor}} 31 X x3(1.0, 1.0); // expected-error{{no matching constructor for initialization of 'X'}} 35 Z z; // expected-error{{no matching constructor for initialization of 'Z'} [all...] |
anonymous-struct.cpp | 4 S(); // expected-note {{because type 'S' has a user-provided default constructor}} 12 S x; // expected-error {{anonymous struct member 'x' has a non-trivial constructor}}
|
warn-global-constructors.cpp | 11 // This global constructor is avoidable based on initialization order. 12 int d = b; // expected-warning {{global constructor}} 15 int e = opaque_int(); // expected-warning {{global constructor}} 16 int f = b; // expected-warning {{global constructor}} 24 A d = { opaque_int() }; // expected-warning {{global constructor}} 26 A f = A(a); // expected-warning {{global constructor}} 27 A g(a); // expected-warning {{global constructor}} 34 A a; // expected-warning {{global constructor}} 35 A b[10]; // expected-warning {{global constructor}} 36 A c[10][10]; // expected-warning {{global constructor}} [all...] |
/external/chromium_org/v8/test/webkit/ |
instance-of-immediates.js | 24 description('This test makes sure that instance of behaves correctly when the value, constructor, or its prototype are immediates.'); 26 // A Constructor to use check for instances of, and an instance called obj. 27 function Constructor() {} 28 var obj = new Constructor(); 30 // Run a batch of tests; call'testInstanceOf' three times, passing 1, {}, and the object 'obj', which is an instance of Constructor. 31 function testSet(constructor, testMethod) 33 testMethod["1"]("(1 instanceof " + constructor + ")"); 34 testMethod["{}"]("({} instanceof " + constructor + ")"); 35 testMethod["obj"]("(obj instanceof " + constructor + ")"); 38 // Test set 1, test passing the integer 1 as the constructor to be tested for [all...] |
/external/clang/test/CodeGen/ |
2008-03-03-CtorAttrType.c | 2 int __attribute__((constructor)) foo(void) { 5 void __attribute__((constructor)) bar(void) {}
|
attribute_constructor.c | 3 void foo() __attribute__((constructor));
|
/external/clang/test/Sema/ |
constructor-attribute.c | 3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}} 4 int f() __attribute__((constructor)); 5 int f() __attribute__((constructor(1))); 6 int f() __attribute__((constructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} 7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires parameter 1 to be an integer constant}}
|
/external/clang/test/CXX/special/class.ctor/ |
p4-0x.cpp | 3 // A constructor shall not be declared with a ref-qualifier. 5 X() &; // expected-error{{ref-qualifier '&' is not allowed on a constructor}} 6 X(int) &&; // expected-error{{ref-qualifier '&&' is not allowed on a constructor}}
|
/art/test/004-annotations/src/android/test/anno/ |
AnnoSimpleConstructor.java | 5 @Target(ElementType.CONSTRUCTOR)
|
/art/test/042-new-instance/ |
info.txt | 1 Test various permutations of Class.newInstance and Constructor.newInstance,
|
/dalvik/tests/004-annotations/src/android/test/anno/ |
AnnoSimpleConstructor.java | 5 @Target(ElementType.CONSTRUCTOR)
|
/dalvik/tests/042-new-instance/ |
info.txt | 1 Test various permutations of Class.newInstance and Constructor.newInstance,
|
/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
|
/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...] |
/external/chromium_org/v8/test/webkit/fast/js/ |
primitive-property-access-edge-cases.js | 31 delete String.prototype.constructor; method 66 function checkGet(x, constructor) 69 Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this === 'object'; }, configurable: true }); 71 delete constructor.prototype.foo; 75 function checkSet(x, constructor) 78 Object.defineProperty(constructor.prototype, "foo", { set: function() { checkOkay = typeof this === 'object'; }, configurable: true }); 80 delete constructor.prototype.foo; 84 function checkGetStrict(x, constructor) 87 Object.defineProperty(constructor.prototype, "foo", { get: function() { "use strict"; checkOkay = typeof this !== 'object'; }, configurable: true }); 89 delete constructor.prototype.foo [all...] |
/external/clang/test/CXX/dcl.decl/dcl.init/ |
p7.cpp | 9 A a = {}; // expected-error {{calling a private constructor}} 14 B b = {}; // expected-error {{chosen constructor is explicit}}
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p3.cpp | 4 auto lambda = [i]() -> void {}; // expected-note 3{{candidate constructor}} 5 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
|
/external/clang/test/CXX/special/class.copy/ |
p11.0x.copy.cpp | 7 // A defaulted copy constructor for a class X is defined as deleted if X has: 9 // -- a variant member with a non-trivial corresponding constructor 11 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}} 15 DeletedNTVariant DVb(DVa); // expected-error{{call to implicitly-deleted copy constructor}} 19 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant2' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}} 24 DeletedNTVariant2 DV2b(DV2a); // expected-error{{call to implicitly-deleted copy constructor}} 38 NoAccess NA; // expected-note{{copy constructor of 'HasNoAccess' is implicitly deleted because field 'NA' has an inaccessible copy constructor}} [all...] |
p9.cpp | 18 struct ImplicitNonConstCopy1 : NonConstCopy { // expected-note {{candidate constructor}} 19 ImplicitNonConstCopy1(); // expected-note {{candidate constructor}} 22 struct ImplicitNonConstCopy2 { // expected-note {{candidate constructor}} 23 ImplicitNonConstCopy2(); // expected-note {{candidate constructor}} 27 struct ImplicitNonConstCopy3 { // expected-note {{candidate constructor}} 28 ImplicitNonConstCopy3(); // expected-note {{candidate constructor}} 32 struct ImplicitNonConstCopy4 : VirtualInheritsNonConstCopy { // expected-note {{candidate constructor}} 33 ImplicitNonConstCopy4(); // expected-note {{candidate constructor}}
|
/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);
|
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/ |
p1-0x.cpp | 12 bool &br; // expected-note {{default constructor of 'Aggr' is implicitly deleted because field 'br' of reference type 'bool &' would not be initialized}} 18 struct NonAggr1a { // expected-note 2 {{candidate constructor}} 19 NonAggr1a(int, int); // expected-note {{candidate constructor}} 22 NonAggr1a na1a = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr1a'}} 25 NonAggr1b(const NonAggr1b &); // expected-note {{candidate constructor}} 28 NonAggr1b na1b = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr1b'}} 37 // expected-error@-2 {{no matching constructor for initialization of 'NonAggr2'}} 38 // expected-note@-6 3 {{candidate constructor}} 42 struct NonAggr3 { // expected-note 3 {{candidate constructor}} 46 NonAggr3 na3 = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr3'} [all...] |
/external/javassist/src/main/javassist/ |
CtNewConstructor.java | 27 * <p>A class initializer (static constructor) cannot be created by the 38 * constructor. That is, the default constructor is invoked. 45 * constructor. 51 * to a super-class' constructor. The signature of that 52 * constructor must be the same as that of the created constructor. 57 * Compiles the given source code and creates a constructor. 58 * The source code must include not only the constructor body 62 * @param declaring the class to which the created constructor is added [all...] |