Class ComplexRegexFinder
- java.lang.Object
-
- org.sonarsource.analyzer.commons.regex.ast.RegexBaseVisitor
-
- org.sonarsource.analyzer.commons.regex.finders.ComplexRegexFinder
-
- All Implemented Interfaces:
RegexVisitor
public class ComplexRegexFinder extends RegexBaseVisitor
-
-
Constructor Summary
Constructors Constructor Description ComplexRegexFinder(RegexIssueReporter.ElementIssue regexElementIssueReporter, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter(RegexParseResult regexParseResult)Override to perform an action after the entire regex has been visited.voidvisitBackReference(BackReferenceTree tree)voidvisitCharacterClass(CharacterClassTree tree)voidvisitCharacterClassIntersection(CharacterClassIntersectionTree tree)voidvisitDisjunction(DisjunctionTree tree)voidvisitLookAround(LookAroundTree tree)voidvisitNonCapturingGroup(NonCapturingGroupTree tree)voidvisitRepetition(RepetitionTree tree)-
Methods inherited from class org.sonarsource.analyzer.commons.regex.ast.RegexBaseVisitor
backslash, before, supportsAnyOfFeatures, visit, visit, visitAtomicGroup, visitBoundary, visitCapturingGroup, visitCharacter, visitCharacterClassUnion, visitCharacterRange, visitConditionalSubpattern, visitDot, visitEscapedCharacterClass, visitGroup, visitInCharClass, visitMiscEscapeSequence, visitSequence
-
-
-
-
Constructor Detail
-
ComplexRegexFinder
public ComplexRegexFinder(RegexIssueReporter.ElementIssue regexElementIssueReporter, int max)
-
-
Method Detail
-
visitDisjunction
public void visitDisjunction(DisjunctionTree tree)
- Specified by:
visitDisjunctionin interfaceRegexVisitor- Overrides:
visitDisjunctionin classRegexBaseVisitor
-
visitRepetition
public void visitRepetition(RepetitionTree tree)
- Specified by:
visitRepetitionin interfaceRegexVisitor- Overrides:
visitRepetitionin classRegexBaseVisitor
-
visitCharacterClass
public void visitCharacterClass(CharacterClassTree tree)
- Specified by:
visitCharacterClassin interfaceRegexVisitor- Overrides:
visitCharacterClassin classRegexBaseVisitor
-
visitCharacterClassIntersection
public void visitCharacterClassIntersection(CharacterClassIntersectionTree tree)
- Specified by:
visitCharacterClassIntersectionin interfaceRegexVisitor- Overrides:
visitCharacterClassIntersectionin classRegexBaseVisitor
-
visitNonCapturingGroup
public void visitNonCapturingGroup(NonCapturingGroupTree tree)
- Specified by:
visitNonCapturingGroupin interfaceRegexVisitor- Overrides:
visitNonCapturingGroupin classRegexBaseVisitor
-
visitLookAround
public void visitLookAround(LookAroundTree tree)
- Specified by:
visitLookAroundin interfaceRegexVisitor- Overrides:
visitLookAroundin classRegexBaseVisitor
-
visitBackReference
public void visitBackReference(BackReferenceTree tree)
- Specified by:
visitBackReferencein interfaceRegexVisitor- Overrides:
visitBackReferencein classRegexBaseVisitor
-
after
protected void after(RegexParseResult regexParseResult)
Description copied from class:RegexBaseVisitorOverride to perform an action after the entire regex has been visited.- Overrides:
afterin classRegexBaseVisitor
-
-