Class DefaultEncodingUsageCheck
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.DefaultEncodingUsageCheck
- All Implemented Interfaces:
JavaCheck,JavaFileScanner,JavaVersionAwareVisitor
public class DefaultEncodingUsageCheck
extends AbstractMethodDetection
implements JavaVersionAwareVisitor
-
Field Summary
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodMatchersbooleanisCompatibleWithJavaVersion(JavaVersion version) protected voidonConstructorFound(NewClassTree newClassTree) protected voidprotected voidonMethodReferenceFound(MethodReferenceTree methodReferenceTree) Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
nodesToVisit, visitNodeMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, leaveFile, reportIssue, reportIssue, reportIssue, reportIssue, scanFile, scanTree, setContextMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveNode, visitToken, visitTriviaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.JavaFileScanner
scanWithoutParsing
-
Constructor Details
-
DefaultEncodingUsageCheck
public DefaultEncodingUsageCheck()
-
-
Method Details
-
isCompatibleWithJavaVersion
- Specified by:
isCompatibleWithJavaVersionin interfaceJavaVersionAwareVisitor
-
getMethodInvocationMatchers
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
onMethodInvocationFound
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
onMethodReferenceFound
- Overrides:
onMethodReferenceFoundin classAbstractMethodDetection
-
onConstructorFound
- Overrides:
onConstructorFoundin classAbstractMethodDetection
-