Package org.jparsec
Class RepeatTimesParser<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jparsec.Parser
Parser.Mode, Parser.Reference<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ListFactory
<T> private final int
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionRepeatTimesParser
(Parser<? extends T> parser, int min, int max) RepeatTimesParser
(Parser<? extends T> parser, int min, int max, ListFactory<T> listFactory) -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
apply
(ParseContext ctxt) private boolean
repeatAtMost
(int times, Collection<T> collection, ParseContext ctxt) toString()
Methods inherited from class org.jparsec.Parser
asDelimiter, asOptional, atLeast, atomic, between, cast, endBy, endBy1, fails, followedBy, from, from, getReturn, ifelse, ifelse, infixl, infixn, infixr, label, lexer, many, many1, map, newReference, next, next, not, not, notFollowedBy, optional, optional, or, otherwise, parse, parse, parse, parse, parse, parseTree, peek, postfix, prefix, read, reluctantBetween, retn, sepBy, sepBy1, sepEndBy, sepEndBy1, skipAtLeast, skipMany, skipMany1, skipTimes, skipTimes, source, succeeds, times, times, token, until, withSource
-
Field Details
-
parser
-
min
private final int min -
max
private final int max -
listFactory
-
-
Constructor Details
-
RepeatTimesParser
-
RepeatTimesParser
RepeatTimesParser(Parser<? extends T> parser, int min, int max, ListFactory<T> listFactory)
-
-
Method Details