Package org.sonar.java.checks
Class FilesExistsJDK8Check
- 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.FilesExistsJDK8Check
-
- All Implemented Interfaces:
JavaVersionAwareVisitor,JavaCheck,JavaFileScanner
public class FilesExistsJDK8Check extends AbstractMethodDetection implements JavaVersionAwareVisitor
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description FilesExistsJDK8Check()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodMatchersgetMethodInvocationMatchers()booleanisCompatibleWithJavaVersion(JavaVersion version)protected voidonMethodInvocationFound(MethodInvocationTree mit)protected voidonMethodReferenceFound(MethodReferenceTree methodReferenceTree)-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
nodesToVisit, onConstructorFound, visitNode
-
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
-
onMethodInvocationFound
protected void onMethodInvocationFound(MethodInvocationTree mit)
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
onMethodReferenceFound
protected void onMethodReferenceFound(MethodReferenceTree methodReferenceTree)
- Overrides:
onMethodReferenceFoundin classAbstractMethodDetection
-
-