Package com.google.common.reflect
Class Invokable.MethodInvokable<T>
java.lang.Object
com.google.common.reflect.Invokable<T,Object>
com.google.common.reflect.Invokable.MethodInvokable<T>
- All Implemented Interfaces:
AnnotatedElement,Member
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.reflect.Invokable
Invokable.ConstructorInvokable<T>, Invokable.MethodInvokable<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) AnnotatedType[]Returns theAnnotatedTypefor the return type.(package private) Type[]This should never return a type that's not a subtype of Throwable.(package private) Type[](package private) Type(package private) final Annotation[][]final TypeVariable<?>[](package private) final ObjectinvokeInternal(Object receiver, Object[] args) final booleanReturnstrueif this is an overridable method.final booleanReturnstrueif this was declared to take a variable number of arguments.Methods inherited from class com.google.common.reflect.Invokable
equals, from, from, getAnnotation, getAnnotations, getDeclaredAnnotations, getDeclaringClass, getExceptionTypes, getModifiers, getName, getOwnerType, getParameters, getReturnType, hashCode, invoke, isAbstract, isAccessible, isAnnotationPresent, isFinal, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isTransient, isVolatile, returning, returning, setAccessible, toString, trySetAccessibleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypeMethods inherited from interface java.lang.reflect.Member
accessFlags
-
Field Details
-
method
-
-
Constructor Details
-
MethodInvokable
MethodInvokable(Method method)
-
-
Method Details
-
invokeInternal
@CheckForNull final Object invokeInternal(@CheckForNull Object receiver, Object[] args) throws InvocationTargetException, IllegalAccessException - Specified by:
invokeInternalin classInvokable<T,Object> - Throws:
InvocationTargetExceptionIllegalAccessException
-
getGenericReturnType
Type getGenericReturnType()- Specified by:
getGenericReturnTypein classInvokable<T,Object>
-
getGenericParameterTypes
Type[] getGenericParameterTypes()- Specified by:
getGenericParameterTypesin classInvokable<T,Object>
-
getAnnotatedParameterTypes
AnnotatedType[] getAnnotatedParameterTypes()- Specified by:
getAnnotatedParameterTypesin classInvokable<T,Object>
-
getAnnotatedReturnType
Description copied from class:InvokableReturns theAnnotatedTypefor the return type.- Specified by:
getAnnotatedReturnTypein classInvokable<T,Object>
-
getGenericExceptionTypes
Type[] getGenericExceptionTypes()Description copied from class:InvokableThis should never return a type that's not a subtype of Throwable.- Specified by:
getGenericExceptionTypesin classInvokable<T,Object>
-
getParameterAnnotations
- Specified by:
getParameterAnnotationsin classInvokable<T,Object>
-
getTypeParameters
Description copied from class:Invokable- Specified by:
getTypeParametersin classInvokable<T,Object>
-
isOverridable
public final boolean isOverridable()Description copied from class:InvokableReturnstrueif this is an overridable method. Constructors, private, static or final methods, or methods declared by final classes are not overridable.- Specified by:
isOverridablein classInvokable<T,Object>
-
isVarArgs
public final boolean isVarArgs()Description copied from class:InvokableReturnstrueif this was declared to take a variable number of arguments.
-