I
- the input typeO
- the output typepublic final class FSM2MealyParserIO<I,O> extends AbstractFSM2MealyParser<I,O>
AbstractFSMParser.Part
EXPECT_CHAR, EXPECT_IDENTIFIER, EXPECT_NUMBER, EXPECT_STRING, NO_SUCH_STATE, NON_DETERMINISM_DETECTED, targetInputs
Modifier and Type | Method and Description |
---|---|
protected void |
checkTransitions(StreamTokenizer streamTokenizer)
Perform some actions after all transitions have been parsed.
|
static <E> FSM2MealyParserIO<E,E> |
getParser(Collection<? extends E> targetInputs,
Function<String,E> edgeParser) |
static <I,O> FSM2MealyParserIO<I,O> |
getParser(Collection<? extends I> targetInputs,
Function<String,I> inputParser,
Function<String,O> outputParser) |
static <E> FSM2MealyParserIO<E,E> |
getParser(Function<String,E> edgeParser) |
static <I,O> FSM2MealyParserIO<I,O> |
getParser(Function<String,I> inputParser,
Function<String,O> outputParser) |
protected void |
parseTransition(StreamTokenizer streamTokenizer)
Parse a transition.
|
checkDataDefinitions, checkStateVectors, getOutputParser, getStates, getTransitions, parseDataDefinition, parseMealy, parseStateVector, readModel
getInputParser, getInputs, getPartLineNumber, getStreamTokenizer, parse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readModel, readModel, readModel
protected void parseTransition(StreamTokenizer streamTokenizer) throws FSMParseException, IOException
parseTransition
in class AbstractFSMParser<I>
streamTokenizer
- tokenizer containing the inputFSMParseException
- when the transition is illegal.IOException
- see StreamTokenizer.nextToken()
.protected void checkTransitions(StreamTokenizer streamTokenizer)
AbstractFSMParser
checkTransitions
in class AbstractFSMParser<I>
streamTokenizer
- tokenizer containing the inputpublic static <I,O> FSM2MealyParserIO<I,O> getParser(@Nullable Collection<? extends I> targetInputs, Function<String,I> inputParser, Function<String,O> outputParser)
public static <I,O> FSM2MealyParserIO<I,O> getParser(Function<String,I> inputParser, Function<String,O> outputParser)
public static <E> FSM2MealyParserIO<E,E> getParser(@Nullable Collection<? extends E> targetInputs, Function<String,E> edgeParser)
public static <E> FSM2MealyParserIO<E,E> getParser(Function<String,E> edgeParser)
Copyright © 2019. All rights reserved.