Package org.sonar.java.checks.regex
Class StringReplaceCheck
java.lang.Object
org.sonar.java.ast.visitors.SubscriptionVisitor
org.sonar.plugins.java.api.IssuableSubscriptionVisitor
org.sonar.java.checks.regex.AbstractRegexCheck
org.sonar.java.checks.regex.StringReplaceCheck
- All Implemented Interfaces:
RegexCheck,JavaCheck,JavaFileScanner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.java.regex.RegexCheck
RegexCheck.RegexIssueLocation -
Field Summary
Fields inherited from class org.sonar.java.checks.regex.AbstractRegexCheck
JAVA_LANG_STRING, LANG3_REGEX_UTILS, METHODS_IMPLYING_DOT_ALL_FLAG, REGEX_METHODS, REGEX_ON_THE_SECOND_ARGUMENT_METHODSFields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation) protected booleanfilterAnnotation(AnnotationTree annotation) protected MethodMatchersMethods inherited from class org.sonar.java.checks.regex.AbstractRegexCheck
getFinalVariableInitializer, getFlagsTree, getLiterals, getRegexLiteralExpression, methodOrAnnotationName, nodesToVisit, onAnnotationFound, onMethodInvocationFound, regexForLiterals, reportIssue, reportIssue, reportIssueFromCommons, setContext, visitNodeMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTreeMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveFile, leaveNode, scanFile, 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
-
StringReplaceCheck
public StringReplaceCheck()
-
-
Method Details
-
getMethodInvocationMatchers
- Overrides:
getMethodInvocationMatchersin classAbstractRegexCheck
-
filterAnnotation
- Overrides:
filterAnnotationin classAbstractRegexCheck
-
checkRegex
public void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation) - Specified by:
checkRegexin classAbstractRegexCheck
-