/external/guava/guava-tests/test/com/google/common/reflect/ |
D | InvokableTest.java | 58 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter() 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() 118 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_returnType() 123 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_exceptionTypes() 128 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_typeParameters() 135 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_parameters() 149 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_call() [all …]
|
D | ParameterTest.java | 35 for (Parameter param : Invokable.from(method).getParameters()) { in testNulls() 44 for (Parameter param : Invokable.from(method).getParameters()) { in testEquals()
|
D | TypeTokenTest.java | 1243 Invokable<T, String> invokable = new TypeToken<T>(getClass()) {} in testMethod_returnType_resolvedAgainstTypeBound() 1252 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(setMethod); in testMethod_parameterTypes() 1263 .addEqualityGroup(Invokable.from(getMethod), Invokable.from(getMethod)) in testMethod_equals() 1264 .addEqualityGroup(Invokable.from(setMethod)) in testMethod_equals() 1279 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod); in testMethod_exceptionTypes() 1312 .addEqualityGroup(Invokable.from(defaultConstructor), Invokable.from(defaultConstructor)) in testConstructor_equals() 1313 .addEqualityGroup(Invokable.from(oneArgConstructor)) in testConstructor_equals() 1330 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); in testConstructor_parameterTypes() 1345 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); in testConstructor_exceptionTypes()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | ClassSanityTester.java | 35 import com.google.common.reflect.Invokable; 81 private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME = 82 new Ordering<Invokable<?, ?>>() { 83 @Override public int compare(Invokable<?, ?> left, Invokable<?, ?> right) { 88 private static final Ordering<Invokable<?, ?>> BY_PARAMETERS = 89 new Ordering<Invokable<?, ?>>() { 90 @Override public int compare(Invokable<?, ?> left, Invokable<?, ?> right) { 95 private static final Ordering<Invokable<?, ?>> BY_NUMBER_OF_PARAMETERS = 96 new Ordering<Invokable<?, ?>>() { 97 @Override public int compare(Invokable<?, ?> left, Invokable<?, ?> right) { [all …]
|
D | NullPointerTester.java | 30 import com.google.common.reflect.Invokable; 221 testParameter(null, Invokable.from(ctor), paramIndex, ctor.getDeclaringClass()); in testConstructorParameter() 258 if (Invokable.from(method).isStatic()) { in getStaticMethods() 268 if (!Invokable.from(method).isStatic()) { in getInstanceMethods() 331 private void testParameter(Object instance, Invokable<?, ?> invokable, in testParameter() argument 339 Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable; in testParameter() 357 private Object[] buildParamList(Invokable<?, ?> invokable, int indexOfParamToSetToNull) { in buildParamList() argument 448 private static Invokable<?, ?> invokable(@Nullable Object instance, Method method) { 450 return Invokable.from(method);
|
D | DummyProxy.java | 24 import com.google.common.reflect.Invokable; 72 Invokable<?, ?> invokable = interfaceType.method(method); in handleInvocation()
|
D | FreshValueGenerator.java | 69 import com.google.common.reflect.Invokable; 184 ImmutableList<Parameter> params = Invokable.from(generator).getParameters(); in generate()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Invokable.java | 60 public abstract class Invokable<T, R> extends Element implements GenericDeclaration { class 62 <M extends AccessibleObject & Member> Invokable(M member) { in Invokable() method in Invokable 67 public static Invokable<?, Object> from(Method method) { in from() 72 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() 147 public final <R1 extends R> Invokable<T, R1> returning(Class<R1> returnType) { in returning() 152 public final <R1 extends R> Invokable<T, R1> returning(TypeToken<R1> returnType) { in returning() 158 Invokable<T, R1> specialized = (Invokable<T, R1>) this; in returning() 186 static class MethodInvokable<T> extends Invokable<T, Object> { 230 static class ConstructorInvokable<T> extends Invokable<T, T> {
|
D | Parameter.java | 39 private final Invokable<?, ?> declaration; 45 Invokable<?, ?> declaration, in Parameter() argument 61 public Invokable<?, ?> getDeclaringInvokable() { in getDeclaringInvokable()
|
D | TypeToken.java | 494 public final Invokable<T, Object> method(Method method) { in method() 497 return new Invokable.MethodInvokable<T>(method) { in method() 521 public final Invokable<T, T> constructor(Constructor<?> constructor) { 524 return new Invokable.ConstructorInvokable<T>(constructor) {
|