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) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canTraverseLookArounds() |
protected void |
enterLookAhead(LookAheadAssertion assertion) |
protected void |
leaveLookAhead(LookAheadAssertion assertion) |
ASTStep |
step(NFAState expandState) |
protected void |
visit(RegexASTNode target)
Visit the next successor found.
|
calcQuantifierGuards, canTraverseCaret, caretsOnPath, dollarsOnPath, getGroupBoundaries, getLastDollarOnPath, getQuantifierGuardsOnPath, getTraversableLookBehindAssertions, hasQuantifierGuards, run, setCanTraverseCaret, setReverse, setTraversableLookBehindAssertionspublic ASTStepVisitor(RegexAST ast)
protected void visit(RegexASTNode target)
NFATraversalRegexASTVisitorvisit in class NFATraversalRegexASTVisitorprotected void enterLookAhead(LookAheadAssertion assertion)
enterLookAhead in class NFATraversalRegexASTVisitorprotected void leaveLookAhead(LookAheadAssertion assertion)
leaveLookAhead in class NFATraversalRegexASTVisitorprotected boolean canTraverseLookArounds()
canTraverseLookArounds in class NFATraversalRegexASTVisitor