Class State<StateIdType,EmitTokenType>
java.lang.Object
us.irdev.bedrock.bag.scanner.State<StateIdType,EmitTokenType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAction
(char input) onAnyInput
(StateIdType nextStateId, boolean capture, EmitTokenType emitToken) onEnd
(EmitTokenType emitToken) onInput
(char input, StateIdType nextStateId, boolean capture, EmitTokenType emitToken) onInput
(char input, Action<StateIdType, EmitTokenType> action) onInput
(String inputs, StateIdType nextStateId, boolean capture, EmitTokenType emitToken) onInput
(String inputs, Action<StateIdType, EmitTokenType> action)
-
Constructor Details
-
State
-
-
Method Details
-
getAction
-
onInput
public State<StateIdType,EmitTokenType> onInput(char input, Action<StateIdType, EmitTokenType> action) throws DuplicateInputException- Throws:
DuplicateInputException
-
onInput
public State<StateIdType,EmitTokenType> onInput(char input, StateIdType nextStateId, boolean capture, EmitTokenType emitToken) throws DuplicateInputException - Throws:
DuplicateInputException
-
onInput
public State<StateIdType,EmitTokenType> onInput(String inputs, Action<StateIdType, EmitTokenType> action) throws DuplicateInputException- Throws:
DuplicateInputException
-
onInput
public State<StateIdType,EmitTokenType> onInput(String inputs, StateIdType nextStateId, boolean capture, EmitTokenType emitToken) throws DuplicateInputException - Throws:
DuplicateInputException
-
onEnd
-
onAnyInput
public State<StateIdType,EmitTokenType> onAnyInput(StateIdType nextStateId, boolean capture, EmitTokenType emitToken)
-