HomeSort by relevance Sort by last modified time
    Searched full:constructor (Results 1 - 25 of 14069) 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...]
  /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/chromium_org/ui/ozone/
platform_object_internal.h 17 typedef typename PlatformConstructorList<T>::Constructor Constructor;
22 // Look up the constructor in the constructor list.
23 Constructor constructor = PlatformConstructorList<T>::kConstructors[platform]; local
25 // Call the constructor.
26 return make_scoped_ptr(constructor());
  /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 {{'constructor' attribute takes no more than 1 argument}}
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an integer constant}}
  /external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/
proto.js 2 * @constructor
7 * @constructor
13 * @constructor
32 * @constructor
41 * @constructor
51 * @constructor
59 * @constructor
70 * @constructor
93 * @constructor
106 * @constructor
    [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}}
  /art/test/005-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,
  /external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/
FastConstructor.java 18 import java.lang.reflect.Constructor;
23 FastConstructor(FastClass fc, Constructor constructor) {
24 super(fc, constructor, fc.getIndex(constructor.getParameterTypes()));
28 return ((Constructor)member).getParameterTypes();
32 return ((Constructor)member).getExceptionTypes();
43 public Constructor getJavaConstructor() {
44 return (Constructor)member;
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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
  /prebuilts/misc/common/swig/include/2.0.11/octave/
octcomplex.swg 4 the complex Constructor method, and the Real and Imag complex
23 %define %swig_cplxdbl_conv(Type, Constructor, Real, Imag)
33 *val=Constructor(c.real(),c.imag());
41 *val = Constructor(d, 0.0);
52 %define %swig_cplxflt_conv(Type, Constructor, Real, Imag)
65 *val = Constructor(%numeric_cast(re, float),
76 *val = Constructor(d, 0.0);
87 #define %swig_cplxflt_convn(Type, Constructor, Real, Imag) \
88 %swig_cplxflt_conv(Type, Constructor, Real, Imag)
91 #define %swig_cplxdbl_convn(Type, Constructor, Real, Imag)
    [all...]
  /prebuilts/misc/common/swig/include/2.0.11/python/
pycomplex.swg 4 the complex Constructor method, and the Real and Imag complex
23 %define %swig_cplxdbl_conv(Type, Constructor, Real, Imag)
31 if (val) *val = Constructor(PyComplex_RealAsDouble(o), PyComplex_ImagAsDouble(o));
37 if (val) *val = Constructor(d, 0.0);
48 %define %swig_cplxflt_conv(Type, Constructor, Real, Imag)
58 if (val) *val = Constructor(%numeric_cast(re, float),
68 if (val) *val = Constructor(re, 0.0);
79 #define %swig_cplxflt_convn(Type, Constructor, Real, Imag) \
80 %swig_cplxflt_conv(Type, Constructor, Real, Imag)
83 #define %swig_cplxdbl_convn(Type, Constructor, Real, Imag)
    [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/special/class.copy/
p11.0x.copy.cpp 8 // A defaulted copy constructor for a class X is defined as deleted if X has:
10 // -- a variant member with a non-trivial corresponding constructor
12 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}}
16 DeletedNTVariant DVb(DVa); // expected-error{{call to implicitly-deleted copy constructor}}
20 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant2' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}}
25 DeletedNTVariant2 DV2b(DV2a); // expected-error{{call to implicitly-deleted copy constructor}}
39 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/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/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/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/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...]

Completed in 1360 milliseconds

1 2 3 4 5 6 7 8 91011>>