public interface ReflectionResolver
Method.invoke(Object, Object...)
or Constructor.newInstance(Object...)
.Modifier and Type | Field and Description |
---|---|
static String |
INIT
Constant for "method name" of constructors.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReflectiveMethodInvocation(MethodInvocationTree tree)
Determines whether the given tree represents a reflective method or constructor call.
|
AnnotatedTypeFactory.ParameterizedExecutableType |
resolveReflectiveCall(AnnotatedTypeFactory factory,
MethodInvocationTree tree,
AnnotatedTypeFactory.ParameterizedExecutableType origResult)
Resolve reflection and return the result of
factory.methodFromUse for the actual,
resolved method or constructor call. |
static final String INIT
boolean isReflectiveMethodInvocation(MethodInvocationTree tree)
true
iff tree is a reflective method invocation, false
otherwiseAnnotatedTypeFactory.ParameterizedExecutableType resolveReflectiveCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, AnnotatedTypeFactory.ParameterizedExecutableType origResult)
factory.methodFromUse
for the actual,
resolved method or constructor call. If the reflective method cannot be resolved the original
result (origResult
) is returned.factory
- the currently used AnnotatedTypeFactorytree
- the reflective invocation tree (m.invoke or c.newInstance)origResult
- the original result for the unresolved, reflective method call