public final class NFA extends Object implements StateIndex<NFAState>, JsonConvertible
| Constructor and Description |
|---|
NFA(RegexAST ast,
NFAState dummyInitialState,
NFAStateTransition[] anchoredEntry,
NFAStateTransition[] unAnchoredEntry,
NFAStateTransition reverseAnchoredEntry,
NFAStateTransition reverseUnAnchoredEntry,
Collection<NFAState> states,
Counter.ThresholdCounter stateIDCounter,
Counter.ThresholdCounter transitionIDCounter,
PreCalculatedResultFactory[] preCalculatedResults) |
public NFA(RegexAST ast, NFAState dummyInitialState, NFAStateTransition[] anchoredEntry, NFAStateTransition[] unAnchoredEntry, NFAStateTransition reverseAnchoredEntry, NFAStateTransition reverseUnAnchoredEntry, Collection<NFAState> states, Counter.ThresholdCounter stateIDCounter, Counter.ThresholdCounter transitionIDCounter, PreCalculatedResultFactory[] preCalculatedResults)
public NFAState getUnAnchoredInitialState()
public NFAState getAnchoredInitialState()
public boolean hasReverseUnAnchoredEntry()
public RegexAST getAst()
public NFAState getDummyInitialState()
public boolean isEntry(NFAState state, boolean forward)
public boolean isAnchoredEntry(NFAState state, boolean forward)
public boolean isUnAnchoredEntry(NFAState state, boolean forward)
public int getAnchoredEntryOffset(NFAState state, boolean forward)
public int getUnAnchoredEntryOffset(NFAState state, boolean forward)
public NFAStateTransition[] getAnchoredEntry()
public NFAStateTransition[] getUnAnchoredEntry()
public NFAStateTransition getReverseAnchoredEntry()
public NFAStateTransition getReverseUnAnchoredEntry()
public NFAState[] getStates()
public NFAStateTransition[] getTransitions()
public PreCalculatedResultFactory[] getPreCalculatedResults()
public NFAStateTransition getInitialLoopBackTransition()
public boolean isTraceFinderNFA()
public int getNumberOfStates()
getNumberOfStates in interface StateIndex<NFAState>public NFAState getState(int id)
getState in interface StateIndex<NFAState>public int getNumberOfTransitions()
public boolean isDead()
public void setInitialLoopBack(boolean enable)
public JsonValue toJson()
toJson in interface JsonConvertiblepublic JsonValue toJson(boolean forward)