Top Description Fields Constructors Methods
org.jparsec

pack-priv final Class ReluctantBetweenParser<T>

extends Parser<T>
Class Inheritance
Annotations
@Deprecated

Deprecated

A parser that first consumes the start and end, and then tries to consume the middle. Useful when the end terminator may be present in the body (e.g. (bodyWithParens ()())())
Author
michael

Field Summary

Modifier and TypeField and Description
private final Parser<T>
private final Parser<?>
private final Parser<?>

Constructor Summary

AccessConstructor and Description
pack-priv
ReluctantBetweenParser(Parser<?> start, Parser<T> between, Parser<?> end)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
apply(ParseContext ctxt)

Implements abstract org.jparsec.Parser.apply.

Inherited from org.jparsec.Parser:
asDelimiterasOptionalatLeastatomicbetweencastendByendBy1failsfollowedByfromfromgetReturnifelseifelseinfixlinfixninfixrlabellexermanymany1mapnewReferencenextnextnotnotnotFollowedByoptionaloptionalorotherwiseparseparseparseparseparseparseTreepeekpostfixprefixreadreluctantBetweenretnsepBysepBy1sepEndBysepEndBy1skipAtLeastskipManyskipMany1skipTimesskipTimessourcesucceedstimestimestokenuntilwithSource

Field Detail

betweenback to summary
private final Parser<T> between
endback to summary
private final Parser<?> end
startback to summary
private final Parser<?> start

Constructor Detail

ReluctantBetweenParserback to summary
pack-priv ReluctantBetweenParser(Parser<?> start, Parser<T> between, Parser<?> end)

Method Detail

applyback to summary
pack-priv boolean apply(ParseContext ctxt)

Implements abstract org.jparsec.Parser.apply.

Annotations
@Override