Uses of Class
com.google.common.reflect.Invokable
Packages that use Invokable
Package
Description
This package contains utilities to work with Java reflection.
This package contains 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 classFields 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) ReturnsInvokableofconstructor.ReturnsInvokableofmethod.Invokable<?,?> Parameter.getDeclaringInvokable()Returns theInvokablethat 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, AnnotatedType 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_NAMEClassSanityTester.BY_NUMBER_OF_PARAMETERSClassSanityTester.BY_PARAMETERSprivate final ImmutableList<Invokable<?,?>> ClassSanityTester.FactoryMethodReturnValueTester.factoriesMethods 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> TClassSanityTester.createInstance(Invokable<?, ? extends T> factory, List<?> args) ClassSanityTester.generateEqualFactoryArguments(Invokable<?, ?> factory, List<Parameter> params, List<Object> args) Returns dummy factory arguments that are equal toargsbut may be different instances, to be used to construct a second instance of the same equality group.ClassSanityTester.getDummyArguments(Invokable<?, ?> invokable) private static booleanClassSanityTester.hashCodeInsensitiveToArgReference(Invokable<?, ?> factory, List<Object> args, int i, Object alternateArg) private <T> TClassSanityTester.instantiate(Invokable<?, ? extends T> factory) Instantiates usingfactory.private static <T> T(package private) static booleanNullPointerTester.isNullable(Invokable<?, ?> invokable) private voidClassSanityTester.testEqualsUsing(Invokable<?, ?> factory) private voidNullPointerTester.testParameter(Object instance, Invokable<?, ?> invokable, int paramIndex, Class<?> testedClass) Verifies thatinvokableproduces aNullPointerExceptionorUnsupportedOperationExceptionwhen the parameter in positionparamIndexis null.Constructors in com.google.common.testing with parameters of type InvokableConstructor parameters in com.google.common.testing with type arguments of type InvokableModifierConstructorDescriptionprivateFactoryMethodReturnValueTester(Class<?> declaringClass, ImmutableList<Invokable<?, ?>> factories, String factoryMethodsDescription)