Class RegexComplexityCheck
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.RegexComplexityCheck
- All Implemented Interfaces:
RegexCheck, JavaCheck, JavaFileScanner
-
Nested Class Summary
Nested classes/interfaces inherited from interface RegexCheck
RegexCheck.RegexIssueLocation -
Field Summary
Fields inherited from class AbstractRegexCheck
JAVA_LANG_STRING, LANG3_REGEX_UTILS, METHODS_IMPLYING_DOT_ALL_FLAG, REGEX_METHODS, REGEX_ON_THE_SECOND_ARGUMENT_METHODSFields inherited from class SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult parseResult, ExpressionTree methodInvocationOrAnnotation) voidleaveFile(JavaFileScannerContext context) voidsetMax(int max) voidvisitTrivia(SyntaxTrivia syntaxTrivia) Methods inherited from class AbstractRegexCheck
filterAnnotation, getFinalVariableInitializer, getFlagsTree, getLiterals, getMethodInvocationMatchers, getRegexLiteralExpression, methodOrAnnotationName, onAnnotationFound, onMethodInvocationFound, regexForLiterals, reportIssue, reportIssue, reportIssueFromCommons, setContext, visitNodeMethods inherited from class IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, reportIssue, scanFile, scanTreeMethods inherited from class SubscriptionVisitor
leaveNode, visitTokenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JavaFileScanner
scanWithoutParsing
-
Constructor Details
-
RegexComplexityCheck
public RegexComplexityCheck()
-
-
Method Details
-
nodesToVisit
- Overrides:
nodesToVisitin classAbstractRegexCheck
-
checkRegex
public void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult parseResult, ExpressionTree methodInvocationOrAnnotation) - Specified by:
checkRegexin classAbstractRegexCheck
-
visitTrivia
- Overrides:
visitTriviain classSubscriptionVisitor
-
leaveFile
- Overrides:
leaveFilein classIssuableSubscriptionVisitor
-
setMax
public void setMax(int max)
-