Uses of Class
com.google.common.reflect.Invokable
Packages that use Invokable
Package
Description
Utilities for reflection.
Testing utilities.
-
Uses of Invokable in com.google.common.reflect
Subclasses of Invokable in com.google.common.reflectModifier and TypeClassDescription(package private) static class
(package private) static class
Fields in com.google.common.reflect declared as InvokableMethods in com.google.common.reflect that return InvokableModifier and TypeMethodDescriptionTypeToken.constructor
(Constructor<?> constructor) static <T> Invokable
<T, T> Invokable.from
(Constructor<T> constructor) ReturnsInvokable
ofconstructor
.ReturnsInvokable
ofmethod
.Invokable
<?, ?> Parameter.getDeclaringInvokable()
Returns theInvokable
that declares this parameter.Explicitly specifies the return type of thisInvokable
.Explicitly specifies the return type of thisInvokable
.Constructors in com.google.common.reflect with parameters of type InvokableModifierConstructorDescription(package private)
Parameter
(Invokable<?, ?> declaration, int position, TypeToken<?> type, Annotation[] annotations, Object annotatedType) -
Uses of Invokable in com.google.common.testing
Fields in com.google.common.testing with type parameters of type InvokableModifier and TypeFieldDescriptionClassSanityTester.BY_METHOD_NAME
ClassSanityTester.BY_NUMBER_OF_PARAMETERS
ClassSanityTester.BY_PARAMETERS
private final ImmutableList
<Invokable<?, ?>> ClassSanityTester.FactoryMethodReturnValueTester.factories
Methods in com.google.common.testing that return InvokableMethods in com.google.common.testing that return types with arguments of type InvokableModifier and TypeMethodDescriptionprivate static <T> ImmutableList
<Invokable<?, ? extends T>> ClassSanityTester.getFactories
(TypeToken<T> type) Factories with the least number of parameters are listed first.private ImmutableList
<Invokable<?, ?>> ClassSanityTester.FactoryMethodReturnValueTester.getFactoriesToTest()
Methods in com.google.common.testing with parameters of type InvokableModifier and TypeMethodDescriptionprivate Object[]
NullPointerTester.buildParamList
(Invokable<?, ?> invokable, int indexOfParamToSetToNull) private static <T> T
ClassSanityTester.createInstance
(Invokable<?, ? extends T> factory, List<?> args) ClassSanityTester.generateEqualFactoryArguments
(Invokable<?, ?> factory, List<Parameter> params, List<Object> args) Returns dummy factory arguments that are equal toargs
but may be different instances, to be used to construct a second instance of the same equality group.ClassSanityTester.getDummyArguments
(Invokable<?, ?> invokable) private static boolean
ClassSanityTester.hashCodeInsensitiveToArgReference
(Invokable<?, ?> factory, List<Object> args, int i, Object alternateArg) private <T> T
ClassSanityTester.instantiate
(Invokable<?, ? extends T> factory) Instantiates usingfactory
.private static <T> T
(package private) static boolean
NullPointerTester.isNullable
(Invokable<?, ?> invokable) (package private) abstract boolean
NullPointerTester.NullnessAnnotationReader.isNullable
(Invokable<?, ?> invokable) private void
ClassSanityTester.testEqualsUsing
(Invokable<?, ?> factory) private void
NullPointerTester.testParameter
(Object instance, Invokable<?, ?> invokable, int paramIndex, Class<?> testedClass) Verifies thatinvokable
produces aNullPointerException
orUnsupportedOperationException
when the parameter in positionparamIndex
is null.Constructors in com.google.common.testing with parameters of type InvokableConstructor parameters in com.google.common.testing with type arguments of type InvokableModifierConstructorDescriptionprivate
FactoryMethodReturnValueTester
(Class<?> declaringClass, ImmutableList<Invokable<?, ?>> factories, String factoryMethodsDescription)