Class ResourceReleaseDetector
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.ResourceReleaseDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchOneOf
getCloseExpressionMatch
(WildcardMatch wcm, LValueExpression autocloseExpression) static Matcher<StructuredStatement>
getNonTestingStructuredStatementMatcher
(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) static Matcher<StructuredStatement>
getSimpleStructuredStatementMatcher
(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) static Matcher<StructuredStatement>
getStructuredStatementMatcher
(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) static boolean
isResourceRelease
(Method method, Op04StructuredStatement root)
-
Constructor Details
-
ResourceReleaseDetector
public ResourceReleaseDetector()
-
-
Method Details
-
isResourceRelease
-
getStructuredStatementMatcher
public static Matcher<StructuredStatement> getStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) -
getNonTestingStructuredStatementMatcher
public static Matcher<StructuredStatement> getNonTestingStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) -
getSimpleStructuredStatementMatcher
public static Matcher<StructuredStatement> getSimpleStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose) -
getCloseExpressionMatch
public static MatchOneOf getCloseExpressionMatch(WildcardMatch wcm, LValueExpression autocloseExpression)
-