Searched refs:constructor (Results 1 - 25 of 618) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A D2008-03-03-CtorAttrType.c2 int __attribute__((constructor)) foo(void) {
5 void __attribute__((constructor)) bar(void) {}
H A Dattribute_constructor.c3 void foo() __attribute__((constructor));
H A Dconstructor-attribute.c9 void A() __attribute__((constructor));
20 static void C() __attribute__((constructor));
/external/clang/test/Sema/
H A Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}}
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no more than 1 argument}}
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an integer constant}}
8 int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
/external/clang/test/CodeGenCXX/
H A Dconstructor-attr.cpp9 static void foo() __attribute__((constructor)) {
/external/testng/src/main/java/org/testng/internal/
H A DObjectFactoryImpl.java10 * Note that if no constructor is found matching the specified parameters,
11 * this factory will try to invoke a constructor that takes in a string object
26 public Object newInstance(Constructor constructor, Object... params) { argument
28 constructor.setAccessible(true);
29 return constructor.newInstance(params);
32 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass());
35 return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass());
39 + (constructor != null
40 ? constructor.getDeclaringClass().getName()
41 : ": couldn't find a suitable constructor"),
[all...]
H A DPathUtilsFactory.java33 Constructor<?> constructor = propertyUtilsClass.getConstructor();
35 return (IPathUtils)constructor.newInstance();
45 // Impossible. PathUtils should have a 0-arg constructor.
H A DPropertyUtilsFactory.java33 Constructor<?> constructor = propertyUtilsClass.getConstructor();
35 return (IPropertyUtils)constructor.newInstance();
45 // Impossible. PropertyUtils should have a 0-arg constructor.
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
H A DReflectionConstructorDeclaration.java37 private Constructor<?> constructor; field in class:ReflectionConstructorDeclaration
40 public ReflectionConstructorDeclaration(Constructor<?> constructor, argument
42 this.constructor = constructor;
48 return new ReflectionClassDeclaration(constructor.getDeclaringClass(), typeSolver);
53 return constructor.getParameterCount();
62 if (constructor.isVarArgs()) {
63 variadic = i == (constructor.getParameterCount() - 1);
65 return new ReflectionParameterDeclaration(constructor.getParameterTypes()[i], constructor
[all...]
/external/testng/src/main/java/org/testng/
H A DIObjectFactory.java6 * Factory used to create all test instances. This factory is passed the constructor
16 Object newInstance(Constructor constructor, Object... params); argument
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
H A DAssistedConstructor.java34 * Internal respresentation of a constructor annotated with
42 private final Constructor<T> constructor; field in class:AssistedConstructor
47 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) {
48 return new AssistedConstructor<T>(constructor, parameterTypes);
51 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { argument
52 this.constructor = constructor;
54 Annotation[][] annotations = constructor.getParameterAnnotations();
71 * Returns the {@link ParameterListKey} for this constructor. The
73 * constructor parameter
46 create( Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) argument
[all...]
/external/compiler-rt/test/tsan/Linux/
H A Dcheck_preinit.cc24 __attribute__ ((constructor))
37 __attribute__ ((constructor))
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/
H A DAccessibleInstantiator.java22 * Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
34 if(constructor != null) {
35 constructor.setAccessible(true);
/external/testng/src/test/java/test/objectfactory/
H A DLoggingObjectFactory.java21 public Object newInstance(Constructor constructor, Object... params) argument
24 return super.newInstance(constructor, params);
/external/guice/core/src/com/google/inject/internal/
H A DDefaultConstructionProxyFactory.java30 * Produces construction proxies that invoke the class constructor.
39 * @param injectionPoint an injection point whose member is a constructor of {@code T}.
46 @SuppressWarnings("unchecked") // the injection point is for a constructor of T
47 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember();
49 // Use FastConstructor if the constructor is public.
50 if (Modifier.isPublic(constructor.getModifiers())) {
51 Class<T> classToConstruct = constructor.getDeclaringClass();
55 = BytecodeGen.newFastClass(classToConstruct, Visibility.forMember(constructor))
56 .getConstructor(constructor);
67 return constructor;
[all...]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
H A DPropertyUtilsSharingTest.java21 import org.yaml.snakeyaml.constructor.Constructor;
29 assertSame(yaml1.constructor.getPropertyUtils(), yaml1.representer.getPropertyUtils());
32 assertSame(yaml2.constructor.getPropertyUtils(), yaml2.representer.getPropertyUtils());
35 assertSame(yaml3.constructor.getPropertyUtils(), yaml3.representer.getPropertyUtils());
43 assertSame(pu, yaml.constructor.getPropertyUtils());
52 assertSame(pu, yaml.constructor.getPropertyUtils());
58 Constructor constructor = new Constructor();
60 constructor.setPropertyUtils(pu_c);
64 Yaml yaml = new Yaml(constructor, representer);
65 assertSame(pu_c, yaml.constructor
[all...]
/external/mockito/src/main/java/org/mockito/internal/runners/util/
H A DRunnerProvider.java15 Constructor<?> constructor;
19 throw new IllegalArgumentException("Expected " + runnerClassName + " to have exactly one constructor.");
21 constructor = runnerClass.getConstructors()[0];
27 return (InternalRunner) constructor.newInstance(constructorArgs);
/external/deqp/framework/delibs/dethread/
H A DdeSingleton.h47 * If current singleton state is DE_SINGLETON_NOT_INITIALIZED, constructor
50 * It is guaranteed that constructor is called only once, even when multiple
57 * \param constructor Constructor function.
58 * \param arg Generic arg pointer for constructor.
60 void deInitSingleton (volatile deSingletonState* singletonState, deSingletonConstructorFunc constructor, void* arg);
H A DdeSingleton.c30 void deInitSingleton (volatile deSingletonState* singletonState, deSingletonConstructorFunc constructor, void* arg) argument
38 constructor(arg);
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/constructor/
H A DConstruct.java16 package org.yaml.snakeyaml.constructor;
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
H A DChild1.java16 package org.yaml.snakeyaml.constructor;
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/partialconstruct/
H A DFragmentComposerTest.java21 import org.yaml.snakeyaml.constructor.Constructor;
36 Constructor constructor = new Constructor();
37 constructor.setComposer(composer);
38 DeveloperBean developer = (DeveloperBean) constructor.getSingleData(DeveloperBean.class);
/external/objenesis/tck/src/main/resources/org/objenesis/tck/candidates/
H A Dserializable-candidates.properties19 # Different visibilities of constructor.
20 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (serializable)
21 org.objenesis.tck.candidates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
22 org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
23 org.objenesis.tck.candidates.SerializableDefaultPackageConstructor = Default package constructor (serializable)
24 org.objenesis.tck.candidates.SerializableDefaultPrivateConstructor = Default private constructor (serializable)
H A Dcandidates.properties19 # Different visibilities of constructor.
20 org.objenesis.tck.candidates.NoConstructor = No constructor
21 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (serializable)
22 org.objenesis.tck.candidates.DefaultPublicConstructor = Default public constructor
23 org.objenesis.tck.candidates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
24 org.objenesis.tck.candidates.DefaultProtectedConstructor = Default protected constructor
25 org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
26 org.objenesis.tck.candidates.DefaultPackageConstructor = Default package constructor
27 org.objenesis.tck.candidates.SerializableDefaultPackageConstructor = Default package constructor (serializable)
28 org.objenesis.tck.candidates.DefaultPrivateConstructor = Default private constructor
[all...]
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
H A DFieldInitializer.java23 * 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.
142 * to be given to a constructor given the argument types.
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
170 * this constructor.
189 Constructor<?> constructor = null;
191 constructor
288 checkParameterized(Constructor<?> constructor, Field field) argument
[all...]

Completed in 1137 milliseconds

1234567891011>>