Package | Description |
---|---|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Invokable.ConstructorInvokable<T> |
(package private) static class |
Invokable.MethodInvokable<T> |
Modifier and Type | Field and Description |
---|---|
private Invokable<?,?> |
Parameter.declaration |
Modifier and Type | Method and Description |
---|---|
Invokable<T,T> |
TypeToken.constructor(java.lang.reflect.Constructor<?> constructor)
|
static <T> Invokable<T,T> |
Invokable.from(java.lang.reflect.Constructor<T> constructor)
Returns
Invokable of constructor . |
static Invokable<?,java.lang.Object> |
Invokable.from(java.lang.reflect.Method method)
Returns
Invokable of method . |
Invokable<?,?> |
Parameter.getDeclaringInvokable()
Returns the
Invokable that declares this parameter. |
Invokable<T,java.lang.Object> |
TypeToken.method(java.lang.reflect.Method method)
|
<R1 extends R> |
Invokable.returning(java.lang.Class<R1> returnType)
Explicitly specifies the return type of this
Invokable . |
<R1 extends R> |
Invokable.returning(TypeToken<R1> returnType)
Explicitly specifies the return type of this
Invokable . |
Constructor and Description |
---|
Parameter(Invokable<?,?> declaration,
int position,
TypeToken<?> type,
java.lang.annotation.Annotation[] annotations) |