-
- All Implemented Interfaces:
public final class FsmParser
Use a Finite State Machine config to parse a sequence of Text to a sequence of StateValue, which contains the FSM state and the value for that state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
FsmParser.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FormParseConfig
config
-
Constructor Summary
Constructors Constructor Description FsmParser(FormParseConfig config, FsmEventListener eventListener)
-
Method Summary
Modifier and Type Method Description final FormParseConfig
getConfig()
final Sequence<StateValue>
parse(Sequence<Text> texts)
-
-
Constructor Detail
-
FsmParser
FsmParser(FormParseConfig config, FsmEventListener eventListener)
- Parameters:
config
- FSM configeventListener
- event listener
-
-
Method Detail
-
getConfig
final FormParseConfig getConfig()
-
parse
final Sequence<StateValue> parse(Sequence<Text> texts)
-
-
-
-