| Constructor and Description |
|---|
DFAState(Scope<DFAState<T>> scope,
Set<NFAState<T>> nfaSet)
Creates a DFAState
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DFAState<T>> |
edges() |
int |
getAcceptStartLength()
Returns true if this state can accept a prefix constructed from
a list of ranges starting from dfa start state
|
int |
getFixedEndLength()
If FIXED_ENDER option is used this method returns the length of fixed end.
|
Collection<Transition<DFAState<T>>> |
getTransitions()
return all transitions
|
int |
getTransitionSelectivity()
Calculates a value of how selective transitions are from this state.
|
boolean |
hasBoundaryMatches()
Return true if one of transition ranges is a boundary match.
|
Collection<DFAState<T>> |
inStates() |
boolean |
isAcceptImmediately() |
boolean |
isDistributed() |
Iterator<DFAState<T>> |
iterator() |
void |
setAcceptImmediately(boolean acceptImmediately) |
DFAState<T> |
transit(int input)
Returns next DFAState
|
DFAState<T> |
transit(Range condition)
Returns next DFAState
|
changePriority, equals, getNumber, getScope, getToken, hashCode, isAccepting, setPriority, setToken, toStringpublic boolean isAcceptImmediately()
public void setAcceptImmediately(boolean acceptImmediately)
public boolean isDistributed()
public int getFixedEndLength()
public int getAcceptStartLength()
public int getTransitionSelectivity()
public boolean hasBoundaryMatches()
public DFAState<T> transit(int input)
input - public DFAState<T> transit(Range condition)
input - public Collection<Transition<DFAState<T>>> getTransitions()