Package org.sonar.java.checks.regex
Class ReluctantQuantifierWithEmptyContinuationCheck
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.AbstractRegexCheckTrackingMatchers
org.sonar.java.checks.regex.AbstractRegexCheckTrackingMatchType
org.sonar.java.checks.regex.ReluctantQuantifierWithEmptyContinuationCheck
- All Implemented Interfaces:
RegexCheck,JavaCheck,JavaFileScanner
public class ReluctantQuantifierWithEmptyContinuationCheck
extends AbstractRegexCheckTrackingMatchType
-
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 TypeMethodDescriptionprotected voidcheckRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation, org.sonarsource.analyzer.commons.regex.MatchType matchType) Methods inherited from class org.sonar.java.checks.regex.AbstractRegexCheckTrackingMatchType
checkRegex, trackedMethodMatchersMethods inherited from class org.sonar.java.checks.regex.AbstractRegexCheckTrackingMatchers
checkRegex, leaveNode, nodesToVisit, onMethodInvocationFound, visitNodeMethods inherited from class org.sonar.java.checks.regex.AbstractRegexCheck
filterAnnotation, getFinalVariableInitializer, getFlagsTree, getLiterals, getMethodInvocationMatchers, getRegexLiteralExpression, methodOrAnnotationName, onAnnotationFound, regexForLiterals, reportIssue, reportIssue, reportIssueFromCommons, setContextMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, leaveFile, reportIssue, reportIssue, reportIssue, scanFile, scanTreeMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
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
-
ReluctantQuantifierWithEmptyContinuationCheck
public ReluctantQuantifierWithEmptyContinuationCheck()
-
-
Method Details
-
checkRegex
protected void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexForLiterals, ExpressionTree methodInvocationOrAnnotation, org.sonarsource.analyzer.commons.regex.MatchType matchType) - Specified by:
checkRegexin classAbstractRegexCheckTrackingMatchType
-