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:
JavaVersionAwareVisitor,JavaCheck,JavaFileScanner
public class ReplaceGuavaWithJava8Check extends AbstractMethodDetection implements JavaVersionAwareVisitor
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description ReplaceGuavaWithJava8Check()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodMatchersgetMethodInvocationMatchers()booleanisCompatibleWithJavaVersion(JavaVersion version)List<Tree.Kind>nodesToVisit()protected voidonMethodInvocationFound(MethodInvocationTree mit)voidvisitNode(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
-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
hasSemantic, leaveFile, leaveNode, scanFile, setContext, visitToken, visitTrivia
-
-
-
-
Method Detail
-
isCompatibleWithJavaVersion
public boolean isCompatibleWithJavaVersion(JavaVersion version)
- Specified by:
isCompatibleWithJavaVersionin interfaceJavaVersionAwareVisitor
-
getMethodInvocationMatchers
protected MethodMatchers getMethodInvocationMatchers()
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Overrides:
nodesToVisitin classAbstractMethodDetection
-
visitNode
public void visitNode(Tree tree)
- Overrides:
visitNodein classAbstractMethodDetection
-
onMethodInvocationFound
protected void onMethodInvocationFound(MethodInvocationTree mit)
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
-