/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/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | AssistedConstructor.java | 42 private final Constructor<T> constructor; field in AssistedConstructor 47 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in create() argument 48 return new AssistedConstructor<T>(constructor, parameterTypes); in create() 51 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in AssistedConstructor() argument 52 this.constructor = constructor; in AssistedConstructor() 54 Annotation[][] annotations = constructor.getParameterAnnotations(); in AssistedConstructor() 88 return new HashSet<Class<?>>(Arrays.asList(constructor.getExceptionTypes())); in getDeclaredExceptions() 96 constructor.setAccessible(true); in newInstance() 98 return constructor.newInstance(args); in newInstance() 106 return constructor.toString(); in toString()
|
D | FactoryProvider.java | 256 for (Constructor<?> constructor : implementationType.getRawType().getDeclaredConstructors()) { in createMethodMapping() 257 if (constructor.isAnnotationPresent(AssistedInject.class)) { in createMethodMapping() 259 constructor, implementationType.getParameterTypes(constructor)); in createMethodMapping() 325 for (AssistedConstructor<?> constructor : factoryMethodToConstructor.values()) { in getDependencies() 326 for (Parameter parameter : constructor.getAllParameters()) { in getDependencies() 349 AssistedConstructor<?> constructor = factoryMethodToConstructor.get(method); in get() 350 Object[] constructorArgs = gatherArgsForConstructor(constructor, creationArgs); in get() 351 Object objectToReturn = constructor.newInstance(constructorArgs); in get() 357 AssistedConstructor<?> constructor, in get() 359 int numParams = constructor.getAllParameters().size(); in get() [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()
|
D | YamlDocument.java | 24 import org.yaml.snakeyaml.constructor.Constructor; 32 public YamlDocument(String sourceName, boolean check, Constructor constructor) { in YamlDocument() argument 35 if (constructor == null) { in YamlDocument() 36 constructor = new Constructor(); in YamlDocument() 38 Yaml yaml = new Yaml(constructor); in YamlDocument()
|
/external/guice/core/src/com/google/inject/internal/ |
D | DefaultConstructionProxyFactory.java | 47 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in create() local 50 if (Modifier.isPublic(constructor.getModifiers())) { in create() 51 Class<T> classToConstruct = constructor.getDeclaringClass(); in create() 55 = BytecodeGen.newFastClass(classToConstruct, Visibility.forMember(constructor)) in create() 56 .getConstructor(constructor); in create() 67 return constructor; in create() 77 constructor.setAccessible(true); in create() 80 constructor.setAccessible(true); in create() 86 return constructor.newInstance(arguments); in create() 97 return constructor; in create()
|
/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/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/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/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/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/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/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()
|
D | TypeSafeCollectionsTest.java | 16 package org.yaml.snakeyaml.constructor; 34 Constructor constructor = new Constructor(Car.class); in testTypeSafeList() local 37 constructor.addTypeDescription(carDescription); in testTypeSafeList() 38 Yaml yaml = new Yaml(constructor); in testTypeSafeList() 50 Constructor constructor = new Constructor(MyCar.class); in testTypeSafeMap() local 53 constructor.addTypeDescription(carDescription); in testTypeSafeMap() 54 Yaml yaml = new Yaml(constructor); in testTypeSafeMap()
|
/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/doclava/src/com/google/doclava/ |
D | SinceTagger.java | 158 for (MethodInfo constructor : doc.constructors()) { in versionConstructors() 159 if (constructor.getSince() == null in versionConstructors() 160 && spec.hasConstructor(constructor)) { in versionConstructors() 161 constructor.setSince(versionName); in versionConstructors() 165 if (constructor.isDeprecated() && constructor.getDeprecatedSince() == null) { in versionConstructors() 167 if (spec.allConstructorsMap().containsKey(constructor.getHashableName())) { in versionConstructors() 168 MethodInfo specConstructor = spec.allConstructorsMap().get(constructor.getHashableName()); in versionConstructors() 170 constructor.setDeprecatedSince(versionName); in versionConstructors() 251 for (MethodInfo constructor : missingVersions(claz.constructors())) { in warnForMissingVersions() 252 Errors.error(Errors.NO_SINCE_DATA, constructor.position(), "XML missing constructor " in warnForMissingVersions() [all …]
|
/external/v8/src/runtime/ |
D | runtime-classes.cc | 34 CONVERT_ARG_HANDLE_CHECKED(JSFunction, constructor, 0); in RUNTIME_FUNCTION() 35 Handle<Object> name(constructor->shared()->name(), isolate); in RUNTIME_FUNCTION() 57 Object* ThrowNotSuperConstructor(Isolate* isolate, Handle<Object> constructor, in ThrowNotSuperConstructor() argument 60 if (constructor->IsJSFunction()) { in ThrowNotSuperConstructor() 61 super_name = handle(Handle<JSFunction>::cast(constructor)->shared()->name(), in ThrowNotSuperConstructor() 63 } else if (constructor->IsOddball()) { in ThrowNotSuperConstructor() 64 DCHECK(constructor->IsNull(isolate)); in ThrowNotSuperConstructor() 67 super_name = Object::NoSideEffectsToString(isolate, constructor); in ThrowNotSuperConstructor() 91 CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 0); in RUNTIME_FUNCTION() 93 return ThrowNotSuperConstructor(isolate, constructor, function); in RUNTIME_FUNCTION() [all …]
|
/external/guice/core/test/com/google/inject/ |
D | BindingTest.java | 228 final Constructor<D> constructor = D.class.getConstructor(Stage.class); in testToConstructorBinding() local 232 bind(Object.class).toConstructor(constructor); in testToConstructorBinding() 241 final Constructor<C> constructor = C.class.getConstructor(Stage.class, Object.class); in testToConstructorBindingsOnParameterizedTypes() local 247 bind(s).toConstructor(constructor, new TypeLiteral<C<Stage>>() {}); in testToConstructorBindingsOnParameterizedTypes() 248 bind(i).toConstructor(constructor, new TypeLiteral<C<Injector>>() {}); in testToConstructorBindingsOnParameterizedTypes() 264 final Constructor constructor = C.class.getConstructor(Stage.class, Object.class); in testToConstructorBindingsFailsOnRawTypes() local 269 bind(Object.class).toConstructor(constructor); in testToConstructorBindingsFailsOnRawTypes() 284 final Constructor<D> constructor = D.class.getConstructor(Stage.class); in testToConstructorAndMethodInterceptors() local 295 bind(Object.class).toConstructor(constructor); in testToConstructorAndMethodInterceptors() 308 final Constructor<E> constructor = E.class.getDeclaredConstructor(Stage.class); in testInaccessibleConstructor() local [all …]
|
/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()
|
/external/mockito/src/main/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiator.java | 31 for (Constructor<?> constructor : cls.getDeclaredConstructors()) { in withParams() 32 Class<?>[] types = constructor.getParameterTypes(); in withParams() 34 return invokeConstructor(constructor, params); in withParams() 44 …private static <T> T invokeConstructor(Constructor<?> constructor, Object... params) throws java.l… in invokeConstructor() argument 46 accessibility.enableAccess(constructor); in invokeConstructor() 47 return (T) constructor.newInstance(params); in invokeConstructor()
|
/external/snakeyaml/src/patches/android/ |
D | Constructor.patch | 4 …git a/src/main/java/org/yaml/snakeyaml/constructor/Constructor.java b/src/main/java/org/yaml/snake… 5 --- a/src/main/java/org/yaml/snakeyaml/constructor/Constructor.java 6 +++ b/src/main/java/org/yaml/snakeyaml/constructor/Constructor.java 9 package org.yaml.snakeyaml.constructor;
|
/external/v8/src/js/ |
D | runtime.js | 67 var constructor = object.constructor; 68 if (IS_UNDEFINED(constructor)) { 71 if (!IS_RECEIVER(constructor)) { 74 var species = constructor[speciesSymbol];
|