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 theAnnotatedType
for 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 Object
invokeInternal
(Object receiver, Object[] args) final boolean
Returnstrue
if this is an overridable method.final boolean
Returnstrue
if 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, trySetAccessible
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
Methods 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:
invokeInternal
in classInvokable<T,
Object> - Throws:
InvocationTargetException
IllegalAccessException
-
getGenericReturnType
Type getGenericReturnType()- Specified by:
getGenericReturnType
in classInvokable<T,
Object>
-
getGenericParameterTypes
Type[] getGenericParameterTypes()- Specified by:
getGenericParameterTypes
in classInvokable<T,
Object>
-
getAnnotatedParameterTypes
AnnotatedType[] getAnnotatedParameterTypes()- Specified by:
getAnnotatedParameterTypes
in classInvokable<T,
Object>
-
getAnnotatedReturnType
Description copied from class:Invokable
Returns theAnnotatedType
for the return type.- Specified by:
getAnnotatedReturnType
in classInvokable<T,
Object>
-
getGenericExceptionTypes
Type[] getGenericExceptionTypes()Description copied from class:Invokable
This should never return a type that's not a subtype of Throwable.- Specified by:
getGenericExceptionTypes
in classInvokable<T,
Object>
-
getParameterAnnotations
- Specified by:
getParameterAnnotations
in classInvokable<T,
Object>
-
getTypeParameters
Description copied from class:Invokable
- Specified by:
getTypeParameters
in classInvokable<T,
Object>
-
isOverridable
public final boolean isOverridable()Description copied from class:Invokable
Returnstrue
if this is an overridable method. Constructors, private, static or final methods, or methods declared by final classes are not overridable.- Specified by:
isOverridable
in classInvokable<T,
Object>
-
isVarArgs
public final boolean isVarArgs()Description copied from class:Invokable
Returnstrue
if this was declared to take a variable number of arguments.
-