Package org.sonar.java.checks.regex
Class EscapeSequenceControlCharacterCheck
- 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.EscapeSequenceControlCharacterCheck
-
- All Implemented Interfaces:
RegexCheck,JavaCheck,JavaFileScanner
public class EscapeSequenceControlCharacterCheck extends AbstractRegexCheck
-
-
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_METHODS
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description EscapeSequenceControlCharacterCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckRegex(RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation)-
Methods inherited from class org.sonar.java.checks.regex.AbstractRegexCheck
filterAnnotation, getFinalVariableInitializer, getFlagsTree, getLiterals, getMethodInvocationMatchers, getRegexLiteralExpression, methodOrAnnotationName, nodesToVisit, onAnnotationFound, onMethodInvocationFound, regexForLiterals, reportIssue, reportIssue, setContext, 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, visitToken, visitTrivia
-
-
-
-
Method Detail
-
checkRegex
public void checkRegex(RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation)
- Specified by:
checkRegexin classAbstractRegexCheck
-
-