Class ResourceReleaseDetector
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.ResourceReleaseDetector
-
public class ResourceReleaseDetector extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResourceReleaseDetector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatchOneOfgetCloseExpressionMatch(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 booleanisResourceRelease(Method method, Op04StructuredStatement root)
-
-
-
Method Detail
-
isResourceRelease
public static boolean isResourceRelease(Method method, Op04StructuredStatement root)
-
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)
-
-