Class DefaultReflectionResolver
java.lang.Object
org.checkerframework.common.reflection.DefaultReflectionResolver
- All Implemented Interfaces:
- ReflectionResolver
Default implementation of 
ReflectionResolver. It resolves calls to:
 - See the Checker Framework Manual:
- Reflection resolution
- 
Field SummaryFieldsFields inherited from interface org.checkerframework.common.reflection.ReflectionResolverINIT, INIT_LIST
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultReflectionResolver(BaseTypeChecker checker, MethodValAnnotatedTypeFactory methodValProvider, boolean debug) 
- 
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- 
MSG_PREFEX_REFLECTION- See Also:
 
 
- 
- 
Constructor Details- 
DefaultReflectionResolverpublic DefaultReflectionResolver(BaseTypeChecker checker, MethodValAnnotatedTypeFactory methodValProvider, boolean debug) 
 
- 
- 
Method Details- 
isReflectiveMethodInvocationDescription copied from interface:ReflectionResolverDetermines whether the given tree represents a reflective method or constructor call.- Specified by:
- isReflectiveMethodInvocationin interface- ReflectionResolver
- Returns:
- trueiff tree is a reflective method invocation,- falseotherwise
 
- 
resolveReflectiveCallpublic AnnotatedTypeFactory.ParameterizedExecutableType resolveReflectiveCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, AnnotatedTypeFactory.ParameterizedExecutableType origResult) Description copied from interface:ReflectionResolverResolve 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.- Specified by:
- resolveReflectiveCallin interface- ReflectionResolver
- 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
 
 
-