- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,803 for constructor (0.12 sec)
-
guava/src/com/google/common/reflect/Invokable.java
return method.isVarArgs(); } } static class ConstructorInvokable<T> extends Invokable<T, T> { final Constructor<?> constructor; ConstructorInvokable(Constructor<?> constructor) { super(constructor); this.constructor = constructor; } @Override final Object invokeInternal(@CheckForNull Object receiver, @Nullable Object[] args)
Registered: 2024-06-12 16:38 - Last Modified: 2023-12-14 20:35 - 19.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/InjectUtil.java
final Constructor<?>[] constructors = type.getDeclaredConstructors(); if (constructors.length == 1) { Constructor<?> constructor = constructors[0]; if (isPublicOrPackageScoped(constructor)) { // If there is a single constructor, and that constructor is public or package private we select it. return constructor; }
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-22 08:48 - 4K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt
private fun newConstructorForSerialization(beanType: Class<*>, constructor: Constructor<*>): Constructor<out Any> = ReflectionFactory.getReflectionFactory().newConstructorForSerialization(beanType, constructor)
Registered: 2024-06-12 18:38 - Last Modified: 2024-06-07 23:09 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ParamsMatchingConstructorSelector.java
Class<?>[] parameterTypes = constructor.getParameterTypes(); // The candidate constructor has fewer parameters than the number of // parameters we were given. This can't be the constructor if (parameterTypes.length < params.length) { continue; } int fromParam = 0; int toParam = 0;
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-28 09:51 - 6.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorCacheTest.groovy
@Shared def cache = new DirectInstantiator.ConstructorCache() @Unroll("constructor cache returns the same constructors as 'getConstructors' for #clazz") def "constructor cache returns the same constructors as 'getConstructors'"() { given: def constructor = null int i = 0 while (!constructor && ++i<50) { // need a loop because IBM JDK is much more proactive in cleaning weak references
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-22 08:48 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy
when: instantiator.newInstance(HasMixedConstructors, new StringBuilder("param")) then: ObjectInstantiationException e = thrown() e.cause.message == "Class DependencyInjectingInstantiatorTest.HasMixedConstructors has no constructor that is annotated with @Inject." }
Registered: 2024-06-12 18:38 - Last Modified: 2024-03-19 04:41 - 13.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
@SuppressWarnings({"unchecked", "rawtypes"}) List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors()); for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) { X instance = newFromConstructor(constructor, cause); if (instance != null) { if (instance.getCause() == null) {
Registered: 2024-06-12 16:38 - Last Modified: 2023-12-14 20:35 - 10.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/InjectUtil.java
if (constructors.size() == 1) { ClassGenerator.GeneratedConstructor<T> constructor = constructors.get(0); if (constructor.getParameterTypes().length == 0 && isPublicOrPackageScoped(type.getGeneratedClass(), constructor)) { return constructor; } if (constructor.getAnnotation(Inject.class) != null) {
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-28 09:51 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
return method.isVarArgs(); } } static class ConstructorInvokable<T> extends Invokable<T, T> { final Constructor<?> constructor; ConstructorInvokable(Constructor<?> constructor) { super(constructor); this.constructor = constructor; } @Override final Object invokeInternal(@CheckForNull Object receiver, @Nullable Object[] args)
Registered: 2024-06-12 16:38 - Last Modified: 2023-12-14 20:35 - 18.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorTest.groovy
def "creates instance with constructor parameters"() { CharSequence param = Mock() expect: def result = instantiator.newInstance(SomeType, param) result instanceof SomeType result.result == param } def "creates instance with subtypes of constructor parameters"() { expect:
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-22 08:48 - 5.7K bytes - Viewed (0)