Top Description Fields Constructors Methods
org.jparsec

pack-priv final Class DelimitedParser<T>

extends Parser<List<T>>
Class Inheritance
Imports
java.util.List

Parses a list of pattern started with a delimiter, separated and optionally ended by the delimiter.
Author
Ben Yu

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
DelimitedParser(Parser<T> p, Parser<?> delim, ListFactory<T> listFactory)

Method Summary

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

Implements abstract org.jparsec.Parser.apply.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.jparsec.Parser:
asDelimiterasOptionalatLeastatomicbetweencastendByendBy1failsfollowedByfromfromgetReturnifelseifelseinfixlinfixninfixrlabellexermanymany1mapnewReferencenextnextnotnotnotFollowedByoptionaloptionalorotherwiseparseparseparseparseparseparseTreepeekpostfixprefixreadreluctantBetweenretnsepBysepBy1sepEndBysepEndBy1skipAtLeastskipManyskipMany1skipTimesskipTimessourcesucceedstimestimestokenuntilwithSource

Field Detail

delimback to summary
private final Parser<?> delim
listFactoryback to summary
private final ListFactory<T> listFactory
parserback to summary
private final Parser<T> parser

Constructor Detail

DelimitedParserback to summary
pack-priv DelimitedParser(Parser<T> p, Parser<?> delim, ListFactory<T> listFactory)

Method Detail

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

Implements abstract org.jparsec.Parser.apply.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override