public final class TRegexDFAExecutorDebugRecorder extends Object implements JsonConvertible
TRegexDFAExecutorNode.execute(TRegexExecutorLocals, boolean). A trace contains the
arguments received by TRegexDFAExecutorNode.execute(TRegexExecutorLocals, boolean), and
the ID of the DFA transition taken for all characters of the input string that have been
traversed. After execution, the recorded trace can be dumped to disk as JSON with
TRegexDFAExecutorDebugRecorder.finishRecording().| Modifier and Type | Method and Description |
|---|---|
static TRegexDFAExecutorDebugRecorder |
create(RegexOptions options,
DFAGenerator dfaGenerator) |
void |
finishRecording() |
void |
recordCGPartialTransition(int currentIndex,
int cgPartialTransitionIndex) |
void |
recordTransition(int currentIndex,
short stateNodeID,
int transitionIndex) |
void |
setInitialIndex(int initialIndex) |
void |
startRecording(TRegexDFAExecutorLocals locals) |
JsonValue |
toJson() |
public static TRegexDFAExecutorDebugRecorder create(RegexOptions options, DFAGenerator dfaGenerator)
public void startRecording(TRegexDFAExecutorLocals locals)
public void setInitialIndex(int initialIndex)
public void recordTransition(int currentIndex,
short stateNodeID,
int transitionIndex)
public void recordCGPartialTransition(int currentIndex,
int cgPartialTransitionIndex)
public void finishRecording()
public JsonValue toJson()
toJson in interface JsonConvertible