Class ResourceLeakUtils
java.lang.Object
org.checkerframework.checker.resourceleak.ResourceLeakUtils
Collection of static utility functions related to the various (sub-) checkers within the
 ResourceLeakChecker.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionList of checker names associated with the Resource Leak Checker. - 
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLeakCheckergetResourceLeakChecker(SourceChecker referenceChecker) Given a checker that is part of the resource leak checker hierarchy, returns theResourceLeakCheckerin the checker hierarchy.static ResourceLeakCheckergetResourceLeakChecker(AnnotatedTypeFactory referenceAtf) Given a type factory that is part of the resource leak checker hierarchy, returns theResourceLeakCheckerin the checker hierarchy.static RLCCalledMethodsCheckergetRLCCalledMethodsChecker(SourceChecker referenceChecker) Given a checker that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsCheckerin the checker hierarchy.static RLCCalledMethodsCheckergetRLCCalledMethodsChecker(AnnotatedTypeFactory referenceAtf) Given a type factory that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsCheckerin the checker hierarchy. 
- 
Field Details
- 
rlcCheckers
List of checker names associated with the Resource Leak Checker. 
 - 
 - 
Method Details
- 
getResourceLeakChecker
Given a type factory that is part of the resource leak checker hierarchy, returns theResourceLeakCheckerin the checker hierarchy.- Parameters:
 referenceAtf- the type factory to retrieve theResourceLeakCheckerfrom; must be part of the Resource Leak hierarchy- Returns:
 - the 
ResourceLeakCheckerin the checker hierarchy 
 - 
getResourceLeakChecker
Given a checker that is part of the resource leak checker hierarchy, returns theResourceLeakCheckerin the checker hierarchy.- Parameters:
 referenceChecker- the checker to retrieve theResourceLeakCheckerfrom; must be part of the Resource Leak hierarchy- Returns:
 - the 
ResourceLeakCheckerin the checker hierarchy 
 - 
getRLCCalledMethodsChecker
Given a type factory that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsCheckerin the checker hierarchy.- Parameters:
 referenceAtf- the type factory to retrieve theRLCCalledMethodsCheckerfrom; must be part of the Resource Leak hierarchy- Returns:
 - the 
RLCCalledMethodsCheckerin the checker hierarchy 
 - 
getRLCCalledMethodsChecker
Given a checker that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsCheckerin the checker hierarchy.- Parameters:
 referenceChecker- the checker to retrieve theRLCCalledMethodsCheckerfrom; must be part of the Resource Leak hierarchy- Returns:
 - the 
RLCCalledMethodsCheckerin the checker hierarchy 
 
 -