Package jjparse.description
Class Choice
java.lang.Object
jjparse.description.Description
jjparse.description.Choice
A
Description for Parsing.Parsers that expect a Parsing.choice(jjparse.Parsing.Parser<? extends T>...).- Author:
- Björn Lötters
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Produces aStringthat explains what a correspondingParsing.Parserwould expect according to thisDescription.Methods inherited from class jjparse.description.Description
and, negate, normalize, or
-
Field Details
-
alternatives
TheListof alternativeDescriptions.
-
-
Constructor Details
-
Choice
Constructs a newChoiceDescription.- Parameters:
alternatives- The list of alternativeDescriptions.
-
-
Method Details
-
describe
Description copied from class:DescriptionProduces aStringthat explains what a correspondingParsing.Parserwould expect according to thisDescription.- Specified by:
describein classDescription- Returns:
- An
OptionalStringwhereOptional.empty()is returned in case thisDescriptionisEmpty.
-