public final class PureNFAMap extends Object
| Constructor and Description |
|---|
PureNFAMap(RegexAST ast,
PureNFA root,
PureNFAIndex lookArounds) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefixLookBehindEntry(PureNFA lookBehind,
int offset)
Mark a potential look-behind entry starting
offset characters before the root
expression. |
RegexAST |
getAst() |
RegexASTSubtreeRootNode |
getASTSubtree(PureNFA nfa) |
PureNFAIndex |
getLookArounds() |
CodePointSet |
getMergedInitialStateCharSet(CompilationBuffer compilationBuffer)
Creates a
CodePointSet that matches the union of all code point sets of
character class successor states of the root NFA's
unanchored initial state. |
int |
getPrefixLength() |
PureNFA |
getRoot() |
JsonValue |
toJson() |
public PureNFAMap(RegexAST ast, PureNFA root, PureNFAIndex lookArounds)
public RegexAST getAst()
public PureNFA getRoot()
public PureNFAIndex getLookArounds()
public int getPrefixLength()
public RegexASTSubtreeRootNode getASTSubtree(PureNFA nfa)
public CodePointSet getMergedInitialStateCharSet(CompilationBuffer compilationBuffer)
CodePointSet that matches the union of all code point sets of
character class successor states of the root NFA's
unanchored initial state. If this can not be
calculated, e.g. because one of the successors is an empty
match state, null is returned.public void addPrefixLookBehindEntry(PureNFA lookBehind, int offset)
offset characters before the root
expression.public JsonValue toJson()