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 ResourceLeakChecker
getResourceLeakChecker
(SourceChecker referenceChecker) Given a checker that is part of the resource leak checker hierarchy, returns theResourceLeakChecker
in the checker hierarchy.static ResourceLeakChecker
getResourceLeakChecker
(AnnotatedTypeFactory referenceAtf) Given a type factory that is part of the resource leak checker hierarchy, returns theResourceLeakChecker
in the checker hierarchy.static RLCCalledMethodsChecker
getRLCCalledMethodsChecker
(SourceChecker referenceChecker) Given a checker that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsChecker
in the checker hierarchy.static RLCCalledMethodsChecker
getRLCCalledMethodsChecker
(AnnotatedTypeFactory referenceAtf) Given a type factory that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsChecker
in 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 theResourceLeakChecker
in the checker hierarchy.- Parameters:
referenceAtf
- the type factory to retrieve theResourceLeakChecker
from; must be part of the Resource Leak hierarchy- Returns:
- the
ResourceLeakChecker
in the checker hierarchy
-
getResourceLeakChecker
Given a checker that is part of the resource leak checker hierarchy, returns theResourceLeakChecker
in the checker hierarchy.- Parameters:
referenceChecker
- the checker to retrieve theResourceLeakChecker
from; must be part of the Resource Leak hierarchy- Returns:
- the
ResourceLeakChecker
in the checker hierarchy
-
getRLCCalledMethodsChecker
Given a type factory that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsChecker
in the checker hierarchy.- Parameters:
referenceAtf
- the type factory to retrieve theRLCCalledMethodsChecker
from; must be part of the Resource Leak hierarchy- Returns:
- the
RLCCalledMethodsChecker
in the checker hierarchy
-
getRLCCalledMethodsChecker
Given a checker that is part of the resource leak checker hierarchy, returns theRLCCalledMethodsChecker
in the checker hierarchy.- Parameters:
referenceChecker
- the checker to retrieve theRLCCalledMethodsChecker
from; must be part of the Resource Leak hierarchy- Returns:
- the
RLCCalledMethodsChecker
in the checker hierarchy
-