public class TRegexBacktrackingNFAExecutorNode extends TRegexExecutorNode
| Modifier and Type | Field and Description |
|---|---|
static TRegexExecutorNode[] |
NO_LOOK_AROUND_EXECUTORS |
root| Constructor and Description |
|---|
TRegexBacktrackingNFAExecutorNode(PureNFAMap nfaMap,
PureNFA nfa,
TRegexExecutorNode[] lookAroundExecutors,
CompilationBuffer compilationBuffer) |
| Modifier and Type | Method and Description |
|---|---|
TRegexExecutorLocals |
createLocals(Object input,
int fromIndex,
int index,
int maxIndex) |
Object |
execute(TRegexExecutorLocals abstractLocals,
boolean compactString) |
protected int |
getBackRefBoundary(TRegexBacktrackingNFAExecutorLocals locals,
PureNFATransition transition,
int cgIndex,
int index) |
void |
initialize(TRegexExecRootNode rootNode) |
protected boolean |
inputAtBegin(TRegexBacktrackingNFAExecutorLocals locals) |
protected boolean |
inputIsHighSurrogate(char c) |
protected boolean |
inputIsLowSurrogate(char c) |
protected int |
inputToCodePoint(char highSurrogate,
char lowSurrogate) |
boolean |
isForward() |
boolean |
isIgnoreCase() |
protected boolean |
lookAroundExecutorIsLiteral(PureNFAState s) |
protected void |
runMergeExplode(TRegexBacktrackingNFAExecutorLocals locals,
boolean compactString) |
protected int[] |
runSubMatcher(TRegexBacktrackingNFAExecutorLocals subLocals,
boolean compactString,
PureNFAState lookAroundState) |
protected boolean |
subMatchFailed(PureNFAState curState,
int[] subMatchResult) |
protected boolean |
transitionMatches(TRegexBacktrackingNFAExecutorLocals locals,
boolean compactString,
PureNFATransition transition,
int index,
boolean atEnd,
char c) |
protected void |
updateState(TRegexBacktrackingNFAExecutorLocals locals,
PureNFATransition transition,
int index) |
boolean |
writesCaptureGroups()
Returns
true if this executor may write any new capture group boundaries. |
getChar, getCharAt, getInputLength, getNumberOfCaptureGroups, setRootaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic static final TRegexExecutorNode[] NO_LOOK_AROUND_EXECUTORS
public TRegexBacktrackingNFAExecutorNode(PureNFAMap nfaMap, PureNFA nfa, TRegexExecutorNode[] lookAroundExecutors, CompilationBuffer compilationBuffer)
public void initialize(TRegexExecRootNode rootNode)
public boolean writesCaptureGroups()
TRegexExecutorNodetrue if this executor may write any new capture group boundaries.writesCaptureGroups in class TRegexExecutorNodepublic boolean isForward()
public boolean isIgnoreCase()
public TRegexExecutorLocals createLocals(Object input, int fromIndex, int index, int maxIndex)
createLocals in class TRegexExecutorNodepublic Object execute(TRegexExecutorLocals abstractLocals, boolean compactString)
execute in class TRegexExecutorNodeprotected void runMergeExplode(TRegexBacktrackingNFAExecutorLocals locals, boolean compactString)
protected boolean lookAroundExecutorIsLiteral(PureNFAState s)
protected int[] runSubMatcher(TRegexBacktrackingNFAExecutorLocals subLocals, boolean compactString, PureNFAState lookAroundState)
protected boolean subMatchFailed(PureNFAState curState, int[] subMatchResult)
protected boolean transitionMatches(TRegexBacktrackingNFAExecutorLocals locals, boolean compactString, PureNFATransition transition, int index, boolean atEnd, char c)
protected int getBackRefBoundary(TRegexBacktrackingNFAExecutorLocals locals, PureNFATransition transition, int cgIndex, int index)
protected void updateState(TRegexBacktrackingNFAExecutorLocals locals, PureNFATransition transition, int index)
protected boolean inputAtBegin(TRegexBacktrackingNFAExecutorLocals locals)
protected boolean inputIsLowSurrogate(char c)
protected boolean inputIsHighSurrogate(char c)
protected int inputToCodePoint(char highSurrogate,
char lowSurrogate)