Package eu.bandm.tools.lexic
Class NAutomaton.Trace
java.lang.Object
eu.bandm.tools.lexic.NAutomaton.Trace
- All Implemented Interfaces:
Automaton.Trace<Set<V>>
- Enclosing class:
- NAutomaton<V>
Iterator-like mutable API for tracking the consumption of an
input sequence of code points by an automaton.
This implementation is rather inefficient; for
performance-critical applications use DAutomaton.Trace
or
ZAutomaton.Trace
instead.
-
Method Summary
-
Method Details
-
restart
public void restart()Jumps to the initial state(s).- Specified by:
restart
in interfaceAutomaton.Trace<Set<V>>
-
step
public boolean step(int c) Attempts a state transition by consuming one code point.- Specified by:
step
in interfaceAutomaton.Trace<Set<V>>
- Parameters:
c
- the code point to consume- Returns:
true
if the transition was successful;false
otherwise- See Also:
-
getLabel
Returns the label associated with the current state(s).- Specified by:
getLabel
in interfaceAutomaton.Trace<Set<V>>
- Returns:
- the label associated with the current state(s)
-