HomeSort by relevance Sort by last modified time
    Searched full:constructor (Results 1 - 25 of 9262) 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) {
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...]
cxx0x-deleted-default-ctor.cpp 11 non_trivial nt; // expected-note {{non-trivial default constructor}}
13 bad_union u; // expected-error {{call to implicitly-deleted default constructor}}
17 bad_union2 u2; // expected-error {{call to implicitly-deleted default constructor}}
21 non_trivial nt; // expected-note {{non-trivial default constructor}}
24 bad_anon a; // expected-error {{call to implicitly-deleted default constructor}}
30 bad_anon2 a2; // expected-error {{call to implicitly-deleted default constructor}}
54 bad_const bc; // expected-error {{call to implicitly-deleted default constructor}}
69 no_default nd; // expected-note {{field 'nd' has a deleted default constructor}}
71 bad_field_default bfd; // expected-error {{call to implicitly-deleted default constructor}}
72 struct bad_base_default : no_default { // expected-note {{base class 'no_default' has a deleted default constructor}}
    [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/dcl.decl/dcl.init/dcl.init.aggr/
p1-0x.cpp 11 bool &br; // expected-note {{default constructor of 'Aggr' is implicitly deleted because field 'br' of reference type 'bool &' would not be initialized}}
17 struct NonAggr1a { // expected-note 2 {{candidate constructor}}
18 NonAggr1a(int, int); // expected-note {{candidate constructor}}
24 NonAggr1a na1a = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr1a'}}
27 NonAggr1b(const NonAggr1b &); // expected-note {{candidate constructor}}
30 NonAggr1b na1b = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr1b'}}
33 struct NonAggr2 { // expected-note 3 {{candidate constructor}}
36 NonAggr2 na2 = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr2'}}
39 struct NonAggr3 { // expected-note 3 {{candidate constructor}}
43 NonAggr3 na3 = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr3'}
    [all...]
  /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}}
  /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,
  /external/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/
p2.cpp 17 template<typename T> X1<T>::X1<T>(int) { } // expected-error{{out-of-line constructor for 'X1' cannot have template arguments}}
18 template<typename T> (X1<T>::X1<T>)(float) { } // expected-error{{out-of-line constructor for 'X1' cannot have template arguments}}
20 // Error recovery: out-of-line constructor names intended to be types
21 X0::X0 X0::f1() { return X0(); } // expected-error{{qualified reference to 'X0' is a constructor name rather than a type wherever a constructor can be declared}}
25 template<typename T> X1<T>::X1<T> X1<T>::f2() { } // expected-error{{qualified reference to 'X1' is a constructor name rather than a template name wherever a constructor can be declared}}
26 template<typename T> X1<T>::X1<T> (X1<T>::f2)(int) { } // expected-error{{qualified reference to 'X1' is a constructor name rather than a template name wherever a constructor can be declared}}
  /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/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/clang/test/CXX/special/class.inhctor/
p7.cpp 5 B1(int); // expected-note {{previous constructor}} expected-note {{conflicting constructor}}
8 B2(int); // expected-note {{conflicting constructor}}
12 using B2::B2; // expected-error {{already inherited constructor with the same signature}}
21 B3(T); // expected-note {{previous 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/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...]
  /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);

Completed in 2840 milliseconds

1 2 3 4 5 6 7 8 91011>>