/external/guice/core/src/com/google/inject/internal/ |
D | DefaultConstructionProxyFactory.java | 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() 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/ |
D | ReflectionConstructorDeclaration.java | 37 private Constructor<?> constructor; field in ReflectionConstructorDeclaration 40 public ReflectionConstructorDeclaration(Constructor<?> constructor, in ReflectionConstructorDeclaration() argument 42 this.constructor = constructor; in ReflectionConstructorDeclaration() 48 return new ReflectionClassDeclaration(constructor.getDeclaringClass(), typeSolver); in declaringType() 53 return constructor.getParameterCount(); in getNumberOfParams() 62 if (constructor.isVarArgs()) { in getParam() 63 variadic = i == (constructor.getParameterCount() - 1); in getParam() 65 …return new ReflectionParameterDeclaration(constructor.getParameterTypes()[i], constructor.getGener… in getParam() 70 return constructor.getName(); in getName() 75 return ReflectionFactory.modifiersToAccessLevel(constructor.getModifiers()); in accessSpecifier() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | InvokableTest.java | 45 Prepender.constructor().getReturnType().getType()); in testConstructor_returnType() 57 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local 58 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter() 61 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter() 70 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes() 75 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() 102 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class) in testConstructor_returning() 110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | FieldInitializer.java | 189 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/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_reflectionmodel_ReflectionConstructorDeclaration.txt | 1 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/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | AssistedConstructor.java | 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() 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/main/java/org/yaml/snakeyaml/ |
D | Yaml.java | 31 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/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | PropertyUtilsSharingTest.java | 21 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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/ |
D | ConstructorResolutionLogic.java | 58 …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/python/cpython3/Lib/test/ |
D | test_hashlib.py | 123 constructor = getattr(_hashlib, 'openssl_'+algorithm, None) 124 if constructor: 125 constructors.add(constructor) 128 constructor = getattr(hashlib, "__get_builtin_constructor")(name) 129 self.constructors_to_test[name].add(constructor) 219 constructor = get_builtin_constructor('md5') 220 self.assertIs(constructor, _md5.md5) 525 def check_blake2(self, constructor, salt_size, person_size, key_size, argument 527 self.assertEqual(constructor.SALT_SIZE, salt_size) 529 constructor(salt=b'a' * i) [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
D | PropertyBoxParserImpl.java | 165 String constructor; in invoke() local 170 …constructor = mapping.getProperty((parent) + "-uuid[" + Hex.encodeHex(userType).toUpperCase() + "]… in invoke() 171 if (constructor == null) { in invoke() 172 … constructor = 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/guava/guava/src/com/google/common/reflect/ |
D | Invokable.java | 72 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() argument 73 return new ConstructorInvokable<T>(constructor); in from() 232 final Constructor<?> constructor; field in Invokable.ConstructorInvokable 234 ConstructorInvokable(Constructor<?> constructor) { in ConstructorInvokable() argument 235 super(constructor); in ConstructorInvokable() 236 this.constructor = constructor; in ConstructorInvokable() 242 return constructor.newInstance(args); in invokeInternal() 244 throw new RuntimeException(constructor + " failed.", e); in invokeInternal() 260 Type[] types = constructor.getGenericParameterTypes(); in getGenericParameterTypes() 262 Class<?>[] rawParamTypes = constructor.getParameterTypes(); in getGenericParameterTypes() [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | ObjectFactoryImpl.java | 26 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/ |
D | candidates.properties | 19 # 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/clang/test/Sema/ |
D | constructor-attribute.c | 3 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/deqp-deps/glslang/Test/baseResults/ |
D | vulkan.frag.out | 9 ERROR: 0:14: 'sampler2D' : sampler-constructor requires two arguments 10 ERROR: 0:15: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type 11 ERROR: 0:16: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type 12 ERROR: 0:17: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler' 13 ERROR: 0:18: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler' 14 ERROR: 0:19: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler' 15 ERROR: 0:21: 'sampler3D' : sampler-constructor cannot make an array of samplers 16 ERROR: 0:22: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type 17 ERROR: 0:23: 'sampler2D' : sampler-constructor first argument must match type and dimensionality of… 19 ERROR: 0:29: 'sampler3D' : sampler-constructor cannot make an array of samplers [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/ |
D | ReflectionConstructor.java | 51 private final Constructor constructor; field in ReflectionConstructor 53 public ReflectionConstructor(Constructor constructor) { in ReflectionConstructor() argument 54 this.constructor = constructor; in ReflectionConstructor() 58 final Constructor method = this.constructor; in getParameters() 85 return constructor.getModifiers(); 97 return ReflectionUtils.javaToDexName(constructor.getDeclaringClass().getName()); 101 return constructor.getName();
|
/external/libcxxabi/src/ |
D | cxa_vector.cpp | 119 void (*constructor)(void *), void (*destructor)(void *)) { in __cxa_vec_new() 121 constructor, destructor, &::operator new [], &::operator delete [] ); in __cxa_vec_new() 144 void (*constructor)(void *), void (*destructor)(void *), in __cxa_vec_new2() 160 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new2() 172 void (*constructor)(void *), void (*destructor)(void *), in __cxa_vec_new3() 188 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new3() 209 void (*constructor)(void *, void *), in __cxa_vec_cctor() 211 if ( NULL != constructor ) { in __cxa_vec_cctor() 219 constructor ( dest_ptr, src_ptr ); in __cxa_vec_cctor() 234 void (*constructor)(void *), void (*destructor)(void *)) { in __cxa_vec_ctor() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | ArrayTagsTest.java | 16 package org.yaml.snakeyaml.constructor; 61 Constructor constructor = new Constructor(); in testLoadClassTag() local 62 constructor.addTypeDescription(new TypeDescription(Car.class, "!car")); in testLoadClassTag() 63 Yaml yaml = new Yaml(constructor); in testLoadClassTag() 72 Constructor constructor = new Constructor(); in testNullDescription() local 74 constructor.addTypeDescription(null); in testNullDescription() 82 Constructor constructor = new Constructor(new TypeDescription(CarWithArray.class)); in testLoadClassNoRoot() local 83 Yaml yaml = new Yaml(constructor); in testLoadClassNoRoot()
|
D | ClassTagsTest.java | 16 package org.yaml.snakeyaml.constructor; 75 Constructor constructor = new Constructor(); in testLoadClassTag() local 76 constructor.addTypeDescription(new TypeDescription(Car.class, "!car")); in testLoadClassTag() 77 Yaml yaml = new Yaml(constructor); in testLoadClassTag() 87 Constructor constructor = new Constructor(); in testNullDescription() local 89 constructor.addTypeDescription(null); in testNullDescription() 97 Constructor constructor = new Constructor(new TypeDescription(Car.class)); in testLoadClassNoRoot() local 98 Yaml yaml = new Yaml(constructor); in testLoadClassNoRoot()
|
/external/doclava/src/com/google/doclava/ |
D | SinceTagger.java | 160 for (MethodInfo constructor : doc.constructors()) { in versionConstructors() 161 if (constructor.getSince() == null in versionConstructors() 162 && spec.hasConstructor(constructor)) { in versionConstructors() 163 constructor.setSince(versionName); in versionConstructors() 167 if (constructor.isDeprecated() && constructor.getDeprecatedSince() == null) { in versionConstructors() 169 if (spec.allConstructorsMap().containsKey(constructor.getHashableName())) { in versionConstructors() 170 MethodInfo specConstructor = spec.allConstructorsMap().get(constructor.getHashableName()); in versionConstructors() 172 constructor.setDeprecatedSince(versionName); in versionConstructors() 253 for (MethodInfo constructor : missingVersions(claz.constructors())) { in warnForMissingVersions() 254 Errors.error(Errors.NO_SINCE_DATA, constructor.position(), "XML missing constructor " in warnForMissingVersions() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiator.java | 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() 159 …e void evaluateConstructor(List<Constructor<?>> matchingConstructors, Constructor<?> constructor) { in evaluateConstructor() argument 163 Class<?>[] paramTypes = constructor.getParameterTypes(); in evaluateConstructor() 183 matchingConstructors.add(constructor); in evaluateConstructor()
|
/external/guice/core/test/com/google/inject/ |
D | BindingTest.java | 250 final Constructor<D> constructor = D.class.getConstructor(Stage.class); in testToConstructorBinding() local 257 bind(Object.class).toConstructor(constructor); in testToConstructorBinding() 266 final Constructor<C> constructor = C.class.getConstructor(Stage.class, Object.class); in testToConstructorBindingsOnParameterizedTypes() local 275 bind(s).toConstructor(constructor, new TypeLiteral<C<Stage>>() {}); in testToConstructorBindingsOnParameterizedTypes() 276 bind(i).toConstructor(constructor, new TypeLiteral<C<Injector>>() {}); in testToConstructorBindingsOnParameterizedTypes() 292 final Constructor constructor = C.class.getConstructor(Stage.class, Object.class); in testToConstructorBindingsFailsOnRawTypes() local 299 bind(Object.class).toConstructor(constructor); in testToConstructorBindingsFailsOnRawTypes() 314 final Constructor<D> constructor = D.class.getConstructor(Stage.class); in testToConstructorAndMethodInterceptors() local 330 bind(Object.class).toConstructor(constructor); in testToConstructorAndMethodInterceptors() 343 final Constructor<E> constructor = E.class.getDeclaredConstructor(Stage.class); in testInaccessibleConstructor() local [all …]
|
/external/setupdesign/main/src/com/google/android/setupdesign/items/ |
D | ReflectionInflater.java | 87 Constructor<? extends T> constructor = in createItem() local 91 if (constructor == null) { in createItem() 96 constructor = clazz.getConstructor(CONSTRUCTOR_SIGNATURE); in createItem() 97 constructor.setAccessible(true); in createItem() 98 constructorMap.put(tagName, constructor); in createItem() 103 final T item = constructor.newInstance(tempConstructorArgs); in createItem()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/resolver/ |
D | ImplicitResolverTest.java | 26 import org.yaml.snakeyaml.constructor.AbstractConstruct; 27 import org.yaml.snakeyaml.constructor.Construct; 28 import org.yaml.snakeyaml.constructor.Constructor; 84 Constructor constructor = new ConfigurationConstructor(config); in testMain() local 85 constructor.addTypeDescription(new TypeDescription(TestBean.class, "!testbean")); in testMain() 86 Yaml yaml = new Yaml(constructor); in testMain()
|