Package org.sonar.java.regex
Interface RegexScannerContext
- All Known Implementing Classes:
DefaultJavaFileScannerContext
,JavaFileScannerContextForTests
public interface RegexScannerContext
-
Method Summary
Modifier and TypeMethodDescriptionorg.sonarsource.analyzer.commons.regex.RegexParseResult
regexForLiterals
(org.sonarsource.analyzer.commons.regex.ast.FlagSet initialFlags, LiteralTree... stringLiterals) void
reportIssue
(RegexCheck regexCheck, Tree javaSyntaxElement, String message, Integer cost, List<RegexCheck.RegexIssueLocation> secondaries) void
reportIssue
(RegexCheck regexCheck, org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement regexSyntaxElement, String message, Integer cost, List<RegexCheck.RegexIssueLocation> secondaries)
-
Method Details
-
reportIssue
void reportIssue(RegexCheck regexCheck, org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement regexSyntaxElement, String message, @Nullable Integer cost, List<RegexCheck.RegexIssueLocation> secondaries) -
reportIssue
void reportIssue(RegexCheck regexCheck, Tree javaSyntaxElement, String message, @Nullable Integer cost, List<RegexCheck.RegexIssueLocation> secondaries) -
regexForLiterals
org.sonarsource.analyzer.commons.regex.RegexParseResult regexForLiterals(org.sonarsource.analyzer.commons.regex.ast.FlagSet initialFlags, LiteralTree... stringLiterals)
-