Interface ReflectionResolver
- All Known Implementing Classes:
- DefaultReflectionResolver
public interface ReflectionResolver
Interface for reflection resolvers that handle reflective method calls such as 
Method.invoke(Object, Object...) or Constructor.newInstance(Object...).- See the Checker Framework Manual:
- Reflection resolution
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDetermines whether the given tree represents a reflective method or constructor call.resolveReflectiveCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, AnnotatedTypeFactory.ParameterizedExecutableType origResult) Resolve reflection and return the result offactory.methodFromUsefor the actual, resolved method or constructor call.
- 
Field Details- 
INITThe "method name" of constructors.- See Also:
 
- 
INIT_LISTA list containing just the "method name" of constructors. Clients must not modify this list.
 
- 
- 
Method Details- 
isReflectiveMethodInvocationDetermines whether the given tree represents a reflective method or constructor call.- Returns:
- trueiff tree is a reflective method invocation,- falseotherwise
 
- 
resolveReflectiveCallAnnotatedTypeFactory.ParameterizedExecutableType resolveReflectiveCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, AnnotatedTypeFactory.ParameterizedExecutableType origResult) Resolve reflection and return the result offactory.methodFromUsefor the actual, resolved method or constructor call. If the reflective method cannot be resolved the original result (origResult) is returned.- Parameters:
- factory- the currently used AnnotatedTypeFactory
- tree- the reflective invocation tree (m.invoke or c.newInstance)
- origResult- the original result for the unresolved, reflective method call
 
 
-