Package org.sonar.java.checks
Class ReplaceGuavaWithJava8Check
- java.lang.Object
-
- org.sonar.java.ast.visitors.SubscriptionVisitor
-
- org.sonar.plugins.java.api.IssuableSubscriptionVisitor
-
- org.sonar.java.checks.methods.AbstractMethodDetection
-
- org.sonar.java.checks.ReplaceGuavaWithJava8Check
-
- All Implemented Interfaces:
org.sonar.java.JavaVersionAwareVisitor,org.sonar.plugins.java.api.JavaCheck,org.sonar.plugins.java.api.JavaFileScanner
public class ReplaceGuavaWithJava8Check extends AbstractMethodDetection implements org.sonar.java.JavaVersionAwareVisitor
-
-
Constructor Summary
Constructors Constructor Description ReplaceGuavaWithJava8Check()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.sonar.java.matcher.MethodMatcher>getMethodInvocationMatchers()booleanisCompatibleWithJavaVersion(org.sonar.plugins.java.api.JavaVersion version)List<org.sonar.plugins.java.api.tree.Tree.Kind>nodesToVisit()protected voidonMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)voidvisitNode(org.sonar.plugins.java.api.tree.Tree tree)-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
onConstructorFound, onMethodReferenceFound
-
Methods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTree
-
-
-
-
Method Detail
-
isCompatibleWithJavaVersion
public boolean isCompatibleWithJavaVersion(org.sonar.plugins.java.api.JavaVersion version)
- Specified by:
isCompatibleWithJavaVersionin interfaceorg.sonar.java.JavaVersionAwareVisitor
-
getMethodInvocationMatchers
protected List<org.sonar.java.matcher.MethodMatcher> getMethodInvocationMatchers()
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
nodesToVisit
public List<org.sonar.plugins.java.api.tree.Tree.Kind> nodesToVisit()
- Overrides:
nodesToVisitin classAbstractMethodDetection
-
visitNode
public void visitNode(org.sonar.plugins.java.api.tree.Tree tree)
- Overrides:
visitNodein classAbstractMethodDetection
-
onMethodInvocationFound
protected void onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
-