Package org.sonar.java.checks.regex
Class EmptyLineRegexCheck
- 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.regex.AbstractRegexCheck
-
- org.sonar.java.checks.regex.EmptyLineRegexCheck
-
- All Implemented Interfaces:
RegexCheck,JavaCheck,JavaFileScanner
public class EmptyLineRegexCheck 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
REGEX_METHODS
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description EmptyLineRegexCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckRegex(RegexParseResult regexForLiterals, MethodInvocationTree mit)protected MethodMatchersgetMethodInvocationMatchers()-
Methods inherited from class org.sonar.java.checks.regex.AbstractRegexCheck
getFinalVariableInitializer, getFlagsTree, getLiterals, nodesToVisit, onMethodInvocationFound, regexForLiterals, reportIssue, reportIssue, setContext
-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
onConstructorFound, onMethodReferenceFound, 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
-
getMethodInvocationMatchers
protected MethodMatchers getMethodInvocationMatchers()
- Overrides:
getMethodInvocationMatchersin classAbstractRegexCheck
-
checkRegex
public void checkRegex(RegexParseResult regexForLiterals, MethodInvocationTree mit)
- Specified by:
checkRegexin classAbstractRegexCheck
-
-