public final class ASTStepVisitor extends NFATraversalRegexASTVisitor
Term to
ASTTransitions (by calculating their respective GroupBoundaries) and annotate for
every successor which LookAheadAssertions and/or LookBehindAssertions it should
be merged with. For example, when starting from Term "a" in the expression
/a(b|(?=c)d)(?<=e)/, it will find the successors "b" and "d", where "d" must be merged
with the successors of the look-ahead assertion ("c"), and both successors may be merged with the
successors of the look-behind assertion ("e").NFATraversalRegexASTVisitorast| Constructor and Description |
|---|
ASTStepVisitor(RegexAST ast,
CompilationBuffer compilationBuffer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enterLookAhead(LookAheadAssertion assertion) |
protected void |
leaveLookAhead(LookAheadAssertion assertion) |
ASTStep |
step(NFAState expandState) |
protected void |
visit(RegexASTNode target)
Visit the next successor found.
|
canTraverseCaret, dollarsOnPath, getGroupBoundaries, getLastDollarOnPath, getTraversableLookBehindAssertions, run, setCanTraverseCaret, setReverse, setTraversableLookBehindAssertionspublic ASTStepVisitor(RegexAST ast, CompilationBuffer compilationBuffer)
protected void visit(RegexASTNode target)
NFATraversalRegexASTVisitorvisit in class NFATraversalRegexASTVisitorprotected void enterLookAhead(LookAheadAssertion assertion)
enterLookAhead in class NFATraversalRegexASTVisitorprotected void leaveLookAhead(LookAheadAssertion assertion)
leaveLookAhead in class NFATraversalRegexASTVisitor