public class ResourceReleaseDetector extends Object
Constructor and Description |
---|
ResourceReleaseDetector() |
Modifier and Type | Method and Description |
---|---|
static 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) |
public static boolean isResourceRelease(Method method, Op04StructuredStatement root)
public static Matcher<StructuredStatement> getStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose)
public static Matcher<StructuredStatement> getNonTestingStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose)
public static Matcher<StructuredStatement> getSimpleStructuredStatementMatcher(WildcardMatch wcm, LValue throwableLValue, LValue autoclose)
public static MatchOneOf getCloseExpressionMatch(WildcardMatch wcm, LValueExpression autocloseExpression)
Copyright © 2011-2021. All Rights Reserved.