Example usage for Java com.google.common.reflect Invokable fields, constructors, methods, implement or subclass
The text is from its open source code.
Invokable,Object> | from(Method method) Returns Invokable of method . |
Invokable | from(Constructor Returns Invokable of constructor . |
T | getAnnotation(Class Returns this element's annotation for the specified type if such an annotation is present, else null. |
Annotation[] | getAnnotations() Returns annotations that are present on this element. |
Class super T> | getDeclaringClass() |
ImmutableList | getExceptionTypes() Returns all declared exception types of this Invokable . |
TypeToken | getOwnerType() Returns the type of T . |
ImmutableList | getParameters() Returns all declared parameters of this Invokable . |
TypeToken extends R> | getReturnType() Returns the return type of this Invokable . |
R | invoke(@Nullable T receiver, Object... args) Invokes with receiver as 'this' and args passed to the underlying method and returns the return value; or calls the underlying constructor with args and returns the constructed instance. |
boolean | isAnnotationPresent(Class extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false. |
boolean | isVarArgs() Returns true if this was declared to take a variable number of arguments. |
String | toString() Returns a string representation of the object. |