Home
last modified time | relevance | path

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

12345678910>>...69

/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/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/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/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java94 Invokable<A, A> invokable = A.constructor(); in testConstructor()
199 static Invokable<A, A> constructor() throws Exception { in constructor() method in InvokableTest.A
200 Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); in constructor() local
201 Invokable<A, A> invokable = Invokable.from(constructor); in constructor()
202 assertEquals(constructor.getName(), invokable.getName()); in constructor()
221 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
233 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
234 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
237 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
248 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DInvokableTest.java94 Invokable<A, A> invokable = A.constructor(); in testConstructor()
199 static Invokable<A, A> constructor() throws Exception { in constructor() method in InvokableTest.A
200 Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class); in constructor() local
201 Invokable<A, A> invokable = Invokable.from(constructor); in constructor()
202 assertEquals(constructor.getName(), invokable.getName()); in constructor()
221 assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
233 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
234 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
237 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
248 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Dmhlo_passes.td20 let constructor = "createChloLegalizeToHloPass()";
31 let constructor = "createHloCanonicalizeReductionPass()";
36 let constructor = "createLegalizeToLhloPass()";
41 let constructor = "createLegalizeToMemrefPass()";
46 let constructor = "createLegalizeControlFlowPass()";
51 let constructor = "createControlFlowToScfPass()";
56 let constructor = "createLegalizeEinsumToDotGeneralPass()";
61 let constructor = "createLegalizeGatherToTorchIndexSelectPass()";
67 let constructor = "createLegalizeTrigonometricToApproximationPass()";
72 let constructor = "createLegalizeHloToLinalgPass()";
[all …]
/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/python/cpython3/Lib/test/
Dtest_hashlib.py154 constructor = getattr(_hashlib, 'openssl_'+algorithm, None)
155 if constructor:
157 constructor()
162 constructors.add(constructor)
165 constructor = getattr(hashlib, "__get_builtin_constructor")(name)
166 self.constructors_to_test[name].add(constructor)
278 constructor = get_builtin_constructor('md5')
279 self.assertIs(constructor, _md5.md5)
601 def check_blake2(self, constructor, salt_size, person_size, key_size, argument
603 self.assertEqual(constructor.SALT_SIZE, salt_size)
[all …]
/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/skia/tests/sksl/errors/
DVectorSlice.glsl3 error: 7: 'half4' is not a valid parameter to 'half3' constructor; use '.xyz' instead
4 error: 8: 'half4' is not a valid parameter to 'half2' constructor; use '.xy' instead
5 error: 9: 'half4' is not a valid parameter to 'half' constructor; use '.x' instead
6 error: 12: 'int4' is not a valid parameter to 'int3' constructor; use '.xyz' instead
7 error: 13: 'int4' is not a valid parameter to 'int2' constructor; use '.xy' instead
8 error: 14: 'int4' is not a valid parameter to 'int' constructor; use '.x' instead
9 error: 17: 'bool4' is not a valid parameter to 'bool3' constructor; use '.xyz' instead
10 error: 18: 'bool4' is not a valid parameter to 'bool2' constructor; use '.xy' instead
11 error: 19: 'bool4' is not a valid parameter to 'bool' constructor; use '.x' instead
/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/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/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/guava/guava/src/com/google/common/reflect/
DInvokable.java84 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() argument
85 return new ConstructorInvokable<T>(constructor); in from()
422 final Constructor<?> constructor; field in Invokable.ConstructorInvokable
424 ConstructorInvokable(Constructor<?> constructor) { in ConstructorInvokable() argument
425 super(constructor); in ConstructorInvokable()
426 this.constructor = constructor; in ConstructorInvokable()
433 return constructor.newInstance(args); in invokeInternal()
435 throw new RuntimeException(constructor + " failed.", e); in invokeInternal()
456 Type[] types = constructor.getGenericParameterTypes(); in getGenericParameterTypes()
458 Class<?>[] rawParamTypes = constructor.getParameterTypes(); in getGenericParameterTypes()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dpasses.td23 let constructor = "transforms::CreateTFKernelToLLVMPass()";
33 let constructor = "tf_framework::CreateEmbedTFFrameworkPass()";
38 let constructor = "tf_framework::CreateRewriteTFFrameworkAssert()";
43 let constructor = "transforms::CreateTFToJITInvocationPass()";
64 let constructor = "transforms::CreateBufferReusePass()";
69 let constructor = "transforms::CreateShapeToDescriptorsPass()";
75 let constructor = "transforms::CreateComputeOpAndFuncBufferizePass()";
81 let constructor = "transforms::CreateFinalBufferizePass()";
86 let constructor = "transforms::CreateConvertToSignlessPass()";
91 let constructor = "transforms::CreateGpuKernelToNvvmPass()";
[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/skia/resources/sksl/errors/
DVectorSlice.rts22 'half4' is not a valid parameter to 'half3' constructor; use '.xyz' instead
23 'half4' is not a valid parameter to 'half2' constructor; use '.xy' instead
24 'half4' is not a valid parameter to 'half' constructor; use '.x' instead
25 'int4' is not a valid parameter to 'int3' constructor; use '.xyz' instead
26 'int4' is not a valid parameter to 'int2' constructor; use '.xy' instead
27 'int4' is not a valid parameter to 'int' constructor; use '.x' instead
28 'bool4' is not a valid parameter to 'bool3' constructor; use '.xyz' instead
29 'bool4' is not a valid parameter to 'bool2' constructor; use '.xy' instead
30 'bool4' is not a valid parameter to 'bool' constructor; use '.x' instead

12345678910>>...69