Package org.jparsec
Class DelimitedParser<T>
- java.lang.Object
-
- org.jparsec.Parser<java.util.List<T>>
-
- org.jparsec.DelimitedParser<T>
-
final class DelimitedParser<T> extends Parser<java.util.List<T>>
Parses a list of pattern started with a delimiter, separated and optionally ended by the delimiter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jparsec.Parser
Parser.Mode, Parser.Reference<T>
-
-
Field Summary
Fields Modifier and Type Field Description private Parser<?>
delim
private ListFactory<T>
listFactory
private Parser<T>
parser
-
Constructor Summary
Constructors Constructor Description DelimitedParser(Parser<T> p, Parser<?> delim, ListFactory<T> listFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
apply(ParseContext ctxt)
java.lang.String
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 Detail
-
delim
private final Parser<?> delim
-
listFactory
private final ListFactory<T> listFactory
-
-
Constructor Detail
-
DelimitedParser
DelimitedParser(Parser<T> p, Parser<?> delim, ListFactory<T> listFactory)
-
-
Method Detail
-
apply
final boolean apply(ParseContext ctxt)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-