Home
last modified time | relevance | path

Searched full:constructor (Results 1 – 25 of 14349) sorted by relevance

12345678910>>...574

/external/dagger2/javatests/dagger/functional/kotlinsrc/cycle/
DLongCycle.kt29 // Each nested class's constructor has an intentionally unused parameter.
31 class LongCycle private constructor() {
32 class Class1 @Inject constructor(class2: Class2)
33 class Class2 @Inject constructor(class3: Class3)
34 class Class3 @Inject constructor(class4: Class4)
35 class Class4 @Inject constructor(class5: Class5)
36 class Class5 @Inject constructor(class6: Class6)
37 class Class6 @Inject constructor(class7: Class7)
38 class Class7 @Inject constructor(class8: Class8)
39 class Class8 @Inject constructor(class9: Class9)
[all …]
/external/pdfium/testing/resources/javascript/
Dconstructor_expected.txt1 Alert: PASS: this.constructor(): illegal constructor
2 Alert: PASS: new this.constructor: not a dynamic object
3 Alert: PASS: globalThis.constructor(): illegal constructor
4 Alert: PASS: new globalThis.constructor: not a dynamic object
5 Alert: PASS: app.constructor(): illegal constructor
6 Alert: PASS: new app.constructor: not a dynamic object
7 Alert: PASS: event.constructor(): illegal constructor
8 Alert: PASS: new event.constructor: not a dynamic object
9 Alert: PASS: font.constructor(): illegal constructor
10 Alert: PASS: new font.constructor: not a dynamic object
[all …]
/external/guice/core/src/com/google/inject/internal/
DDefaultConstructionProxyFactory.java22 import java.lang.reflect.Constructor;
29 * Produces construction proxies that invoke the class constructor.
37 /** @param injectionPoint an injection point whose member is a constructor of {@code T}. */
44 @SuppressWarnings("unchecked") // the injection point is for a constructor of T in create()
45 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in create() local
49 net.sf.cglib.reflect.FastClass fc = BytecodeGen.newFastClassForMember(constructor); in create()
51 int index = fc.getIndex(constructor.getParameterTypes()); in create()
55 index >= 0, "Could not find constructor %s in fast class", constructor); in create()
56 return new FastClassProxy<T>(injectionPoint, constructor, fc, index); in create()
63 return new ReflectiveProxy<T>(injectionPoint, constructor); in create()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/reflect/
DConstructorUtils.java19 import java.lang.reflect.Constructor;
35 * {@link IllegalAccessException} is thrown if the constructor is
39 …call {@link java.lang.reflect.AccessibleObject#setAccessible(boolean)} on this constructor. If this
53 * <p>This constructor is {@code public} to permit tools that require a JavaBean
60 * Returns a new instance of the specified class inferring the right constructor
63 * <p>This locates and calls a constructor.
64 * The constructor signature must match the argument types by assignment compatibility.</p>
72 * @throws NoSuchMethodException if a matching constructor cannot be found
86 * Returns a new instance of the specified class choosing the right constructor
89 * <p>This locates and calls a constructor.
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java13 import java.lang.reflect.Constructor;
23 * Initialize a field with type instance if a default constructor can be found.
42 * This constructor fail fast if the field type cannot be handled.
56 * This constructor fail fast if the field type cannot be handled.
61 * @param argResolver Constructor parameters resolver
142 * to be given to a constructor given the argument types.
155 * @param argTypes Constructor argument types, should not be null.
156 * @return The argument instances to be given to the constructor, should not be null.
166 * Constructor instantiating strategy for no-arg constructor.
169 * If a no-arg constructor can be found then the instance is created using
[all …]
/external/javassist/src/main/javassist/
DCtNewConstructor.java29 * <p>A class initializer (static constructor) cannot be created by the
40 * constructor. That is, the default constructor is invoked.
47 * constructor.
53 * to a super-class' constructor. The signature of that
54 * constructor must be the same as that of the created constructor.
59 * Compiles the given source code and creates a constructor.
60 * The source code must include not only the constructor body
64 * @param declaring the class to which the created constructor is added.
81 throw new CannotCompileException("not a constructor"); in make()
85 * Creates a public constructor.
[all …]
/external/clang/test/CXX/special/class.copy/
Dp11.0x.copy.cpp8 // 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 …pected-note{{copy constructor of 'DeletedNTVariant' is implicitly deleted because variant field 'N…
16 DeletedNTVariant DVb(DVa); // expected-error{{call to implicitly-deleted copy constructor}}
20 …ected-note{{copy constructor of 'DeletedNTVariant2' is implicitly deleted because variant field 'N…
25 DeletedNTVariant2 DV2b(DV2a); // expected-error{{call to implicitly-deleted copy constructor}}
39 …// expected-note{{copy constructor of 'HasNoAccess' is implicitly deleted because field 'NA' has a…
42 HasNoAccess HNAb(HNAa); // expected-error{{call to implicitly-deleted copy constructor}}
61 …Ambiguity A; // expected-note 2{{copy constructor of 'IsAmbiguous' is implicitly deleted because f…
65 IsAmbiguous IAb(IAa); // expected-error{{call to implicitly-deleted copy constructor}}
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionConstructorDeclaration.txt1 Line 43) constructor.getDeclaringClass() ==> java.lang.reflect.Constructor.getDeclaringClass()
2 Line 48) constructor.getParameterCount() ==> java.lang.reflect.Constructor.getParameterCount()
6 Line 57) constructor.isVarArgs() ==> java.lang.reflect.Constructor.isVarArgs()
7 Line 58) constructor.getParameterCount() ==> java.lang.reflect.Constructor.getParameterCount()
8 Line 60) constructor.getParameterTypes() ==> java.lang.reflect.Constructor.getParameterTypes()
9 …Line 60) constructor.getGenericParameterTypes() ==> java.lang.reflect.Constructor.getGenericParame…
10 Line 65) constructor.getName() ==> java.lang.reflect.Constructor.getName()
11 …Line 70) ReflectionFactory.modifiersToAccessLevel(constructor.getModifiers()) ==> com.github.javap…
12 Line 70) constructor.getModifiers() ==> java.lang.reflect.Constructor.getModifiers()
13 …Line 75) Arrays.stream(constructor.getTypeParameters()).map((refTp) -> new ReflectionTypeParameter…
[all …]
/external/clang/test/SemaCUDA/
Dimplicit-member-target-collision-cxx11.cu19 // expected-note@-3 {{candidate constructor (the implicit default constructor) not viable}}
20 // expected-note@-4 {{implicit default constructor inferred target collision: call to both __host__…
21 // expected-note@-5 {{candidate constructor (the implicit copy constructor) not viable}}
22 // expected-note@-6 {{candidate constructor (the implicit move constructor) not viable}}
25 C1_with_collision c; // expected-error {{no matching constructor}} in hostfoo1()
36 // expected-note@-5 {{candidate constructor (the implicit default constructor}} not viable
37 // expected-note@-6 {{implicit default constructor inferred target collision: call to both __host__…
38 // expected-note@-7 {{candidate constructor (the implicit copy constructor}} not viable
39 // expected-note@-8 {{candidate constructor (the implicit move constructor}} not viable
42 C2_with_collision c; // expected-error {{no matching constructor}} in hostfoo2()
[all …]
Dimplicit-member-target-collision.cu19 // expected-note@-3 {{candidate constructor (the implicit default constructor}} not viable
20 // expected-note@-4 {{implicit default constructor inferred target collision: call to both __host__…
21 // expected-note@-5 {{candidate constructor (the implicit copy constructor}} not viable
24 C1_with_collision c; // expected-error {{no matching constructor}} in hostfoo1()
35 // expected-note@-5 {{candidate constructor (the implicit default constructor}} not viable
36 // expected-note@-6 {{implicit default constructor inferred target collision: call to both __host__…
37 // expected-note@-7 {{candidate constructor (the implicit copy constructor}} not viable
40 C2_with_collision c; // expected-error {{no matching constructor}} in hostfoo2()
51 // expected-note@-4 {{candidate constructor (the implicit default constructor}} not viable
52 // expected-note@-5 {{implicit default constructor inferred target collision: call to both __host__…
[all …]
/external/mockito/src/main/java/org/mockito/internal/creation/instance/
DConstructorInstantiator.java7 import java.lang.reflect.Constructor;
40 List<Constructor<?>> matchingConstructors = new LinkedList<Constructor<?>>(); in withParams()
42 for (Constructor<?> constructor : cls.getDeclaredConstructors()) { in withParams()
43 Class<?>[] types = constructor.getParameterTypes(); in withParams()
45 evaluateConstructor(matchingConstructors, constructor); in withParams()
63 …private static <T> T invokeConstructor(Constructor<?> constructor, Object... params) throws java.l… in invokeConstructor() argument
65 accessibility.enableAccess(constructor); in invokeConstructor()
66 return (T) constructor.newInstance(params); in invokeConstructor()
102 constructorString = "a 0-arg constructor"; in constructorArgsString()
104 … constructorString = "a constructor that matches these argument types: " + constructorArgTypes(); in constructorArgsString()
[all …]
/external/cronet/third_party/libc++/src/test/std/containers/views/views.span/span.cons/
Dspan.fail.cpp15 // Remarks: This constructor shall not participate in overload resolution unless:
28 return {s}; // expected-error {{chosen constructor is explicit in copy-initialization}} in createImplicitSpan()
45 …std::span< int> s1{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
46 …std::span< int> s2{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
47 …std::span< int> s3{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
49 …std::span<const int> s4{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
50 …std::span<const int> s5{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
52 …std::span< volatile int> s6{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
53 …std::span< volatile int> s7{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
58 …std::span< int, 0> s1{ csp0}; // expected-error {{no matching constructor for initia… in checkCV()
[all …]
Dspan.verify.cpp15 // Remarks: This constructor shall not participate in overload resolution unless:
28 return {s}; // expected-error {{chosen constructor is explicit in copy-initialization}} in createImplicitSpan()
45 …std::span< int> s1{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
46 …std::span< int> s2{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
47 …std::span< int> s3{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
49 …std::span<const int> s4{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
50 …std::span<const int> s5{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
52 …std::span< volatile int> s6{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
53 …std::span< volatile int> s7{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
58 …std::span< int, 0> s1{ csp0}; // expected-error {{no matching constructor for initia… in checkCV()
[all …]
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/
Dp1.cpp19 struct NonAggr1a { // expected-note 2 {{candidate constructor}}
20 NonAggr1a(int, int); // expected-note {{candidate constructor}}
23 NonAggr1a na1a = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr…
26 NonAggr1b(const NonAggr1b &); // expected-note {{candidate constructor}}
29 NonAggr1b na1b = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr…
38 // expected-error@-2 {{no matching constructor for initialization of 'NonAggr2'}}
39 // expected-note@-6 3 {{candidate constructor}}
43 struct NonAggr3 { // expected-note 3 {{candidate constructor}}
47 NonAggr3 na3 = { 42 }; // expected-error {{no matching constructor for initialization of 'NonAggr3'…
50 struct NonAggr4 { // expected-note 3 {{candidate constructor}}
[all …]
/external/clang/test/CXX/special/class.ctor/
Dp5-0x.cpp20 // A defaulted default constructor for a class X is defined as deleted if:
23 // default constructor,
24 …cted-note {{default constructor of 'Deleted1a' is implicitly deleted because variant field 'u' has…
25 Deleted1a d1a; // expected-error {{implicitly-deleted default constructor}}
37 Deleted2a d2a; // expected-error {{implicitly-deleted default constructor}}
39 …int &&b; // expected-note {{default constructor of 'Deleted2b' is implicitly deleted because field…
41 Deleted2b d2b; // expected-error {{deleted default constructor}}
51 // default constructor,
53 expected-warning {{does not declare any constructor}} \
55 Deleted3a d3a; // expected-error {{implicitly-deleted default constructor}}
[all …]
/external/libcxx/test/std/containers/views/span.cons/
Dspan.fail.cpp17 // Remarks: This constructor shall not participate in overload resolution unless:
42 …std::span< int> s1{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
43 …std::span< int> s2{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
44 …std::span< int> s3{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
46 …std::span<const int> s4{ vsp}; // expected-error {{no matching constructor for initializa… in checkCV()
47 …std::span<const int> s5{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
49 …std::span< volatile int> s6{ csp}; // expected-error {{no matching constructor for initializa… in checkCV()
50 …std::span< volatile int> s7{cvsp}; // expected-error {{no matching constructor for initializa… in checkCV()
55 …std::span< int, 0> s1{ csp0}; // expected-error {{no matching constructor for initia… in checkCV()
56 …std::span< int, 0> s2{ vsp0}; // expected-error {{no matching constructor for initia… in checkCV()
[all …]
/external/tensorflow/tensorflow/dtensor/mlir/
DPasses.td24 let constructor = "CreateDTensorOpToDeviceClusterPass()";
32 let constructor = "CreateDTensorDeviceMeshClusterCoarsening()";
40 let constructor = "CreateDTensorConstantFolding()";
48 let constructor = "CreateDTensorAllReduceSumOptimization()";
56 let constructor = "CreateDTensorAllReduceScatterOptimization()";
64 let constructor = "CreateDTensorAllReduceCombineOptimization()";
72 let constructor = "CreateDTensorMixedPrecisionReducePass()";
80 let constructor = "CreateDTensorDCE()";
88 let constructor = "CreateDTensorUndoMergeConstAcrossMesh()";
96 let constructor = "CreateDTensorSetDefaultSharding()";
[all …]
/external/starlark-go/starlarkstruct/
Dstruct.go52 func FromKeywords(constructor starlark.Value, kwargs []starlark.Tuple) *Struct {
53 if constructor == nil {
54 panic("nil constructor")
57 constructor: constructor,
70 // The constructor parameter specifies the constructor; use Default for an ordinary struct.
71 func FromStringDict(constructor starlark.Value, d starlark.StringDict) *Struct {
72 if constructor == nil {
73 panic("nil constructor")
76 constructor: constructor,
89 // A struct has a constructor, a distinct value that identifies a class
[all …]
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DAssistedConstructor.java23 import java.lang.reflect.Constructor;
33 * Internal respresentation of a constructor annotated with {@link AssistedInject}
40 private final Constructor<T> constructor; field in AssistedConstructor
45 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in create() argument
46 return new AssistedConstructor<T>(constructor, parameterTypes); in create()
49 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in AssistedConstructor() argument
50 this.constructor = constructor; in AssistedConstructor()
52 Annotation[][] annotations = constructor.getParameterAnnotations(); in AssistedConstructor()
69 * Returns the {@link ParameterListKey} for this constructor. The {@link ParameterListKey} is
70 * created from the ordered list of {@link Assisted} constructor parameters.
[all …]
/external/objenesis/tck/src/main/resources/org/objenesis/tck/candidates/
Dcandidates.properties19 # Different visibilities of constructor.
20 org.objenesis.tck.candidates.NoConstructor = No constructor
21 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (s…
22 …esis.tck.candidates.DefaultPublicConstructor = Default public constructor
23 …ates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
24 …s.tck.candidates.DefaultProtectedConstructor = Default protected constructor
25 …s.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
26 …sis.tck.candidates.DefaultPackageConstructor = Default package constructor
27 …tes.SerializableDefaultPackageConstructor = Default package constructor (serializable)
28 …sis.tck.candidates.DefaultPrivateConstructor = Default private constructor
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DTypeSafeCollectionsTest.java14 package org.yaml.snakeyaml.constructor;
30 Constructor constructor = new Constructor(Car.class); in testTypeSafeList() local
33 constructor.addTypeDescription(carDescription); in testTypeSafeList()
34 Yaml yaml = new Yaml(constructor); in testTypeSafeList()
35 Car car = yaml.load(Util.getLocalResource("constructor/car-no-root-class.yaml")); in testTypeSafeList()
46 Constructor constructor = new Constructor(MyCar.class); in testTypeSafeMap() local
49 constructor.addTypeDescription(carDescription); in testTypeSafeMap()
50 Yaml yaml = new Yaml(constructor); in testTypeSafeMap()
51 MyCar car = yaml.load(Util.getLocalResource("constructor/car-no-root-class-map.yaml")); in testTypeSafeMap()
65 Constructor constructor = new Constructor(Car.class); in testTypeSafeList2() local
[all …]
/external/clang/test/CXX/class/class.union/
Dp1.cpp17 … } // expected-note 2{{because type 'Ctor' has a user-provided default constructor}} expected-note… in Ctor()
20 …Ctor2(); // expected-note {{because type 'Ctor2' has a user-provided default constructor}} expecte…
22 class CtorTmpl { // expected-note {{because type 'CtorTmpl' has no default constructor}}
23 …T> CtorTmpl(); // expected-note {{implicit default constructor suppressed by user-declared constru…
26 class CopyCtor { // expected-note 2{{because no constructor can be used to copy an object of type '…
39 Virtual v; // expected-error {{union member 'v' has a non-trivial copy constructor}}
40 VirtualBase vbase; // expected-error {{union member 'vbase' has a non-trivial copy constructor}}
41 Ctor ctor; // expected-error {{union member 'ctor' has a non-trivial constructor}}
42 Ctor2 ctor2; // expected-error {{union member 'ctor2' has a non-trivial constructor}}
43 CtorTmpl ctortmpl; // expected-error {{union member 'ctortmpl' has a non-trivial constructor}}
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionConstructorDeclaration.java28 import java.lang.reflect.Constructor;
39 private Constructor<?> constructor; field in ReflectionConstructorDeclaration
42 public ReflectionConstructorDeclaration(Constructor<?> constructor, TypeSolver typeSolver) { in ReflectionConstructorDeclaration() argument
43 this.constructor = constructor; in ReflectionConstructorDeclaration()
49 return new ReflectionClassDeclaration(constructor.getDeclaringClass(), typeSolver); in declaringType()
54 return constructor.getParameterCount(); in getNumberOfParams()
63 if (constructor.isVarArgs()) { in getParam()
64 variadic = i == (constructor.getParameterCount() - 1); in getParam()
66 return new ReflectionParameterDeclaration(constructor.getParameterTypes()[i], in getParam()
67 constructor.getGenericParameterTypes()[i], typeSolver, variadic, in getParam()
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java30 import java.lang.reflect.Constructor;
95 Invokable<A, A> invokable = A.constructor(); in testConstructor()
200 static Invokable<A, A> constructor() throws Exception { in constructor() method in InvokableTest.A
201 Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); in constructor() local
202 Invokable<A, A> invokable = Invokable.from(constructor); in constructor()
203 assertEquals(constructor.getName(), invokable.getName()); in constructor()
222 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
234 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
235 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
238 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DInvokableTest.java30 import java.lang.reflect.Constructor;
95 Invokable<A, A> invokable = A.constructor(); in testConstructor()
200 static Invokable<A, A> constructor() throws Exception { in constructor() method in InvokableTest.A
201 Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); in constructor() local
202 Invokable<A, A> invokable = Invokable.from(constructor); in constructor()
203 assertEquals(constructor.getName(), invokable.getName()); in constructor()
222 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
234 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
235 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
238 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
[all …]

12345678910>>...574