java.lang.Object
io.cucumber.gherkin.GherkinParser
Main entry point for the Gherkin library
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intEstimate of the average number of lines in a feature file.(package private) static final intEstimate of the average line length in a feature file.(package private) static final intEstimate of the average feature file size.private final GherkinParser.IdGeneratorprivate final booleanprivate final booleanprivate final booleanprivate final PickleCompiler -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGherkinParser(boolean includeSource, boolean includeGherkinDocument, boolean includePickles, GherkinParser.IdGenerator idGenerator) -
Method Summary
Modifier and TypeMethodDescriptionstatic GherkinParser.Builderbuilder()private io.cucumber.messages.types.EnvelopecreateParseError(ParserError e, String uri) Stream<io.cucumber.messages.types.Envelope> parse(io.cucumber.messages.types.Envelope envelope) private List<io.cucumber.messages.types.Envelope> parse(io.cucumber.messages.types.Source source) Stream<io.cucumber.messages.types.Envelope> Stream<io.cucumber.messages.types.Envelope> parse(String uri, InputStream source) private List<io.cucumber.messages.types.Envelope> Stream<io.cucumber.messages.types.Envelope>
-
Field Details
-
FEATURE_FILE_AVERAGE_LINE_LENGTH
static final int FEATURE_FILE_AVERAGE_LINE_LENGTHEstimate of the average line length in a feature file.- See Also:
-
FEATURE_FILE_AVERAGE_LINE_COUNT
static final int FEATURE_FILE_AVERAGE_LINE_COUNTEstimate of the average number of lines in a feature file.- See Also:
-
FEATURE_FILE_AVERAGE_SIZE
static final int FEATURE_FILE_AVERAGE_SIZEEstimate of the average feature file size.- See Also:
-
includeSource
private final boolean includeSource -
includeGherkinDocument
private final boolean includeGherkinDocument -
includePickles
private final boolean includePickles -
idGenerator
-
pickleCompiler
-
-
Constructor Details
-
GherkinParser
private GherkinParser(boolean includeSource, boolean includeGherkinDocument, boolean includePickles, GherkinParser.IdGenerator idGenerator)
-
-
Method Details
-
builder
-
parse
- Throws:
IOException
-
parse
public Stream<io.cucumber.messages.types.Envelope> parse(String uri, InputStream source) throws IOException - Throws:
IOException
-
parse
-
parse
public Stream<io.cucumber.messages.types.Envelope> parse(io.cucumber.messages.types.Envelope envelope) -
parse
-
parse
-
createParseError
-