public final class DFAGenerator extends Object implements JsonConvertible
| Constructor and Description |
|---|
DFAGenerator(TRegexCompilationRequest compilationRequest,
NFA nfa,
TRegexDFAExecutorProperties executorProps,
CompilationBuffer compilationBuffer) |
public DFAGenerator(TRegexCompilationRequest compilationRequest, NFA nfa, TRegexDFAExecutorProperties executorProps, CompilationBuffer compilationBuffer)
public NFA getNfa()
public DFAStateNodeBuilder[] getEntryStates()
public Map<DFAStateNodeBuilder,DFAStateNodeBuilder> getStateMap()
public TRegexDFAExecutorProperties getProps()
public boolean isForward()
public boolean isGenericCG()
public boolean isSearching()
public RegexOptions getOptions()
public CompilationBuffer getCompilationBuffer()
public DFAStateNodeBuilder getState(short stateNodeID)
public void nodeSplitSetNewDFASize(int size)
public void nodeSplitRegisterDuplicateState(short oldID,
short newID)
public void nodeSplitUpdateSuccessors(short stateID,
short[] newSuccessors)
public Counter getCgPartialTransitionIDCounter()
public void registerCGPartialTransitionDebugInfo(DFACaptureGroupTransitionBuilder.PartialTransitionDebugInfo partialTransition)
public void calcDFA()
DFAGenerator.createDFAExecutor() or
DFAGenerator.toJson() or passing the generator object to
DFAExport.public TRegexDFAExecutorNode createDFAExecutor()
TRegexDFAExecutorNode and returns the dfa as a new TRegexDFAExecutorNode.
Make sure to calculate the DFA with DFAGenerator.calcDFA() before calling this method!TRegexDFAExecutorNode that runs the DFA generated by this object.public String getDebugDumpName()
public JsonValue toJson()
toJson in interface JsonConvertible