Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 1832) sorted by relevance

12345678910>>...74

/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: app.constructor(): illegal constructor
4 Alert: PASS: new app.constructor: not a dynamic object
5 Alert: PASS: event.constructor(): illegal constructor
6 Alert: PASS: new event.constructor: not a dynamic object
7 Alert: PASS: font.constructor(): illegal constructor
8 Alert: PASS: new font.constructor: not a dynamic object
9 Alert: PASS: global.constructor(): illegal constructor
10 Alert: PASS: new global.constructor: not a dynamic object
[all …]
/external/guice/core/src/com/google/inject/internal/
DDefaultConstructionProxyFactory.java45 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()
70 final Constructor<T> constructor; field in DefaultConstructionProxyFactory.FastClassProxy
76 Constructor<T> constructor, in FastClassProxy() argument
80 this.constructor = constructor; in FastClassProxy()
99 return constructor; in getConstructor()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionConstructorDeclaration.java39 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()
68 constructor.getParameters()[i].getName()); in getParam()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionConstructorDeclaration.java32 private Constructor<?> constructor; field in ReflectionConstructorDeclaration
35 public ReflectionConstructorDeclaration(Constructor<?> constructor, in ReflectionConstructorDeclaration() argument
37 this.constructor = constructor; in ReflectionConstructorDeclaration()
43 return new ReflectionClassDeclaration(constructor.getDeclaringClass(), typeSolver); in declaringType()
48 return constructor.getParameterCount(); in getNumberOfParams()
57 if (constructor.isVarArgs()) { in getParam()
58 variadic = i == (constructor.getParameterCount() - 1); in getParam()
60 …return new ReflectionParameterDeclaration(constructor.getParameterTypes()[i], constructor.getGener… in getParam()
65 return constructor.getName(); in getName()
70 return ReflectionFactory.modifiersToAccessLevel(constructor.getModifiers()); in accessLevel()
[all …]
/external/starlark-go/starlarkstruct/
Dstruct.go52 func FromKeywords(constructor starlark.Value, kwargs []starlark.Tuple) *Struct {
53 if constructor == nil {
57 constructor: constructor,
71 func FromStringDict(constructor starlark.Value, d starlark.StringDict) *Struct {
72 if constructor == nil {
76 constructor: constructor,
102 constructor starlark.Value member
135 if s.constructor == Default {
140 buf.WriteString(s.constructor.String())
156 func (s *Struct) Constructor() starlark.Value { return s.constructor }
[all …]
/external/angle/src/compiler/translator/
DStructureHLSL.cpp388 TString *constructor = &definedStruct->second->constructor; in addStructConstructor() local
389 if (!constructor->empty()) in addStructConstructor()
393 *constructor += name + " " + constructorFunctionName + "("; in addStructConstructor()
410 *constructor += WriteParameterList(ctorParameters); in addStructConstructor()
412 *constructor += in addStructConstructor()
420 *constructor += "x" + str(parameterIndex); in addStructConstructor()
423 *constructor += ", "; in addStructConstructor()
426 *constructor += in addStructConstructor()
446 TString constructor = TypeString(ctorType) + " " + constructorFunctionName + "("; in addBuiltInConstructor() local
455 constructor += WriteParameterList(ctorParameters); in addBuiltInConstructor()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DInvokableTest.java44 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
56 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
57 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
60 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
71 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes()
75 TypeVariable<?>[] variables = Prepender.constructor().getTypeParameters(); in testConstructor_typeParameters()
81 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters()
95 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call()
103 Prepender.constructor(String.class, int.class).returning(Prepender.class); in testConstructor_returning()
110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning()
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java44 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
56 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
57 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
60 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
71 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes()
75 TypeVariable<?>[] variables = Prepender.constructor().getTypeParameters(); in testConstructor_typeParameters()
81 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters()
95 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call()
103 Prepender.constructor(String.class, int.class).returning(Prepender.class); in testConstructor_returning()
110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning()
[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/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java189 Constructor<?> constructor = null; in instantiate() local
191 constructor = field.getType().getDeclaredConstructor(); in instantiate()
192 changer.enableAccess(constructor); in instantiate()
195 Object newFieldInstance = constructor.newInstance(noArg); in instantiate()
208 if(constructor != null) { in instantiate()
209 changer.safelyDisableAccess(constructor); in instantiate()
240 private int countMockableParams(Constructor<?> constructor) {
242 for (Class<?> aClass : constructor.getParameterTypes()) {
263 Constructor<?> constructor = null; in instantiate() local
265 constructor = biggestConstructor(field.getType()); in instantiate()
[all …]
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dhicpp-undelegated-constructor.rst1 .. title:: clang-tidy - hicpp-undelegated-constructor
3 :http-equiv=refresh: 5;URL=bugprone-undelegated-constructor.html
5 hicpp-undelegated-constructor
8 This check is an alias for `bugprone-undelegated-constructor <bugprone-undelegated-constructor.html…
10 to find misplaced constructor calls inside a constructor.
20 Ctor(); // did you intend to call a delegated constructor?
21 Ctor(0); // did you intend to call a delegated constructor?
22 Ctor(1, 2); // did you intend to call a delegated constructor?
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DAssistedConstructor.java40 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()
85 return new HashSet<Class<?>>(Arrays.asList(constructor.getExceptionTypes())); in getDeclaredExceptions()
90 constructor.setAccessible(true); in newInstance()
92 return constructor.newInstance(args); in newInstance()
100 return constructor.toString(); in toString()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DPropertyUtilsSharingTest.java21 import org.yaml.snakeyaml.constructor.Constructor;
29 assertSame(yaml1.constructor.getPropertyUtils(), yaml1.representer.getPropertyUtils()); in testYamlDefaults()
32 assertSame(yaml2.constructor.getPropertyUtils(), yaml2.representer.getPropertyUtils()); in testYamlDefaults()
35 assertSame(yaml3.constructor.getPropertyUtils(), yaml3.representer.getPropertyUtils()); in testYamlDefaults()
43 assertSame(pu, yaml.constructor.getPropertyUtils()); in testYamlConstructorWithPropertyUtils()
52 assertSame(pu, yaml.constructor.getPropertyUtils()); in testYamlRepresenterWithPropertyUtils()
58 Constructor constructor = new Constructor(); in testYamlConstructorANDRepresenterWithPropertyUtils() local
60 constructor.setPropertyUtils(pu_c); in testYamlConstructorANDRepresenterWithPropertyUtils()
64 Yaml yaml = new Yaml(constructor, representer); in testYamlConstructorANDRepresenterWithPropertyUtils()
65 assertSame(pu_c, yaml.constructor.getPropertyUtils()); in testYamlConstructorANDRepresenterWithPropertyUtils()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/
DYaml.java31 import org.yaml.snakeyaml.constructor.BaseConstructor;
32 import org.yaml.snakeyaml.constructor.Constructor;
54 protected BaseConstructor constructor; field in Yaml
94 public Yaml(BaseConstructor constructor) { in Yaml() argument
95 this(constructor, new Representer()); in Yaml()
107 public Yaml(BaseConstructor constructor, Representer representer) { in Yaml() argument
108 this(constructor, representer, new DumperOptions()); in Yaml()
135 public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions) { in Yaml() argument
136 this(constructor, representer, dumperOptions, new Resolver()); in Yaml()
152 public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions, in Yaml() argument
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java58 … public static boolean isApplicable(ConstructorDeclaration constructor, List<Type> argumentsTypes, in isApplicable() argument
60 return isApplicable(constructor, argumentsTypes, typeSolver, false); in isApplicable()
63 … private static boolean isApplicable(ConstructorDeclaration constructor, List<Type> argumentsTypes, in isApplicable() argument
65 if (constructor.hasVariadicParameter()) { in isApplicable()
66 int pos = constructor.getNumberOfParams() - 1; in isApplicable()
67 if (constructor.getNumberOfParams() == argumentsTypes.size()) { in isApplicable()
69 Type expectedType = constructor.getLastParam().getType(); in isApplicable()
72 for (TypeParameterDeclaration tp : constructor.getTypeParameters()) { in isApplicable()
81 constructor.getLastParam().getType()); in isApplicable()
90 … groupVariadicParamValues(argumentsTypes, pos, constructor.getLastParam().getType()); in isApplicable()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java58 …public static boolean isApplicable(ResolvedConstructorDeclaration constructor, List<ResolvedType> … in isApplicable() argument
60 return isApplicable(constructor, argumentsTypes, typeSolver, false); in isApplicable()
63 …private static boolean isApplicable(ResolvedConstructorDeclaration constructor, List<ResolvedType>… in isApplicable() argument
65 if (constructor.hasVariadicParameter()) { in isApplicable()
66 int pos = constructor.getNumberOfParams() - 1; in isApplicable()
67 if (constructor.getNumberOfParams() == argumentsTypes.size()) { in isApplicable()
69 ResolvedType expectedType = constructor.getLastParam().getType(); in isApplicable()
72 for (ResolvedTypeParameterDeclaration tp : constructor.getTypeParameters()) { in isApplicable()
81 constructor.getLastParam().getType()); in isApplicable()
90 … groupVariadicParamValues(argumentsTypes, pos, constructor.getLastParam().getType()); in isApplicable()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Dmhlo_passes.td20 let constructor = "createChloLegalizeToHloPass()";
29 let constructor = "createLegalizeToLhloPass()";
34 let constructor = "createLegalizeControlFlowPass()";
39 let constructor = "createControlFlowToScfPass()";
44 let constructor = "createLegalizeGatherToTorchIndexSelectPass()";
50 let constructor = "createLegalizeTrigonometricToApproximationPass()";
56 let constructor = "createLegalizeHloToLinalgPass()";
62 let constructor = "createLegalizeToStdPass()";
67 let constructor = "createLowerComplexPass()";
73 let constructor = "createLegalizeGeneralDotPass()";
[all …]
/external/testng/src/main/java/org/testng/internal/
DObjectFactoryImpl.java26 public Object newInstance(Constructor constructor, Object... params) { in newInstance() argument
28 constructor.setAccessible(true); in newInstance()
29 return constructor.newInstance(params); in newInstance()
32 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass()); in newInstance()
35 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass()); in newInstance()
39 + (constructor != null in newInstance()
40 ? constructor.getDeclaringClass().getName() in newInstance()
/external/guava/guava/src/com/google/common/reflect/
DInvokable.java71 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() argument
72 return new ConstructorInvokable<T>(constructor); in from()
262 final Constructor<?> constructor; field in Invokable.ConstructorInvokable
264 ConstructorInvokable(Constructor<?> constructor) { in ConstructorInvokable() argument
265 super(constructor); in ConstructorInvokable()
266 this.constructor = constructor; in ConstructorInvokable()
273 return constructor.newInstance(args); in invokeInternal()
275 throw new RuntimeException(constructor + " failed.", e); in invokeInternal()
296 Type[] types = constructor.getGenericParameterTypes(); in getGenericParameterTypes()
298 Class<?>[] rawParamTypes = constructor.getParameterTypes(); in getGenericParameterTypes()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DPropertyBoxParserImpl.java165 String constructor; in invoke() local
170constructor = mapping.getProperty((parent) + "-uuid[" + Hex.encodeHex(userType).toUpperCase() + "]… in invoke()
171 if (constructor == null) { in invoke()
172constructor = mapping.getProperty("uuid[" + Hex.encodeHex(userType).toUpperCase() + "]"); in invoke()
174 if (constructor == null) { in invoke()
175 constructor = mapping.getProperty("uuid"); in invoke()
178 constructor = mapping.getProperty((parent) + "-" + (type)); in invoke()
179 if (constructor == null) { in invoke()
180 constructor = mapping.getProperty((type)); in invoke()
183 if (constructor == null) { in invoke()
[all …]
/external/python/cpython3/Lib/test/
Dtest_hashlib.py149 constructor = getattr(_hashlib, 'openssl_'+algorithm, None)
150 if constructor:
152 constructor()
157 constructors.add(constructor)
160 constructor = getattr(hashlib, "__get_builtin_constructor")(name)
161 self.constructors_to_test[name].add(constructor)
275 constructor = get_builtin_constructor('md5')
276 self.assertIs(constructor, _md5.md5)
598 def check_blake2(self, constructor, salt_size, person_size, key_size, argument
600 self.assertEqual(constructor.SALT_SIZE, salt_size)
[all …]
/external/guava/android/guava/src/com/google/common/reflect/
DInvokable.java70 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() argument
71 return new ConstructorInvokable<T>(constructor); in from()
244 final Constructor<?> constructor; field in Invokable.ConstructorInvokable
246 ConstructorInvokable(Constructor<?> constructor) { in ConstructorInvokable() argument
247 super(constructor); in ConstructorInvokable()
248 this.constructor = constructor; in ConstructorInvokable()
255 return constructor.newInstance(args); in invokeInternal()
257 throw new RuntimeException(constructor + " failed.", e); in invokeInternal()
278 Type[] types = constructor.getGenericParameterTypes(); in getGenericParameterTypes()
280 Class<?>[] rawParamTypes = constructor.getParameterTypes(); in getGenericParameterTypes()
[all …]
/external/clang/test/Sema/
Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to f…
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no mor…
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an …
8 int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression …
/external/llvm-project/clang/test/Sema/
Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to f…
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no mor…
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an …
8 int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression …
/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 …]

12345678910>>...74