public class DefaultReflectionResolver extends Object implements ReflectionResolver
ReflectionResolver. It resolves calls to:
| Modifier and Type | Field and Description |
|---|---|
static String |
MSG_PREFEX_REFLECTION |
INIT, INIT_LIST| Constructor and Description |
|---|
DefaultReflectionResolver(BaseTypeChecker checker,
MethodValAnnotatedTypeFactory methodValProvider,
boolean debug) |
| 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. |
public static final String MSG_PREFEX_REFLECTION
public DefaultReflectionResolver(BaseTypeChecker checker, MethodValAnnotatedTypeFactory methodValProvider, boolean debug)
public boolean isReflectiveMethodInvocation(MethodInvocationTree tree)
ReflectionResolverisReflectiveMethodInvocation in interface ReflectionResolvertrue iff tree is a reflective method invocation, false otherwisepublic AnnotatedTypeFactory.ParameterizedExecutableType resolveReflectiveCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, AnnotatedTypeFactory.ParameterizedExecutableType origResult)
ReflectionResolverfactory.methodFromUse for the actual,
resolved method or constructor call. If the reflective method cannot be resolved the original
result (origResult) is returned.resolveReflectiveCall in interface ReflectionResolverfactory - the currently used AnnotatedTypeFactorytree - the reflective invocation tree (m.invoke or c.newInstance)origResult - the original result for the unresolved, reflective method call