Top Description Fields Constructors Methods
org.jparsec

pack-priv final Class EmptyListParser<T>

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

A parser that always returns an empty mutable list.
Author
Ben Yu

Field Summary

Modifier and TypeField and Description
private static final EmptyListParser<T>

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Implements abstract org.jparsec.Parser.apply.

pack-priv static <T> Parser<List<T>>
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.jparsec.Parser:
asDelimiterasOptionalatLeastatomicbetweencastendByendBy1failsfollowedByfromfromgetReturnifelseifelseinfixlinfixninfixrlabellexermanymany1mapnewReferencenextnextnotnotnotFollowedByoptionaloptionalorotherwiseparseparseparseparseparseparseTreepeekpostfixprefixreadreluctantBetweenretnsepBysepBy1sepEndBysepEndBy1skipAtLeastskipManyskipMany1skipTimesskipTimessourcesucceedstimestimestokenuntilwithSource

Field Detail

INSTANCEback to summary
private static final EmptyListParser<T> INSTANCE
Annotations
@SuppressWarnings:rawtypes

Constructor Detail

EmptyListParserback to summary
private EmptyListParser()

Method Detail

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

Implements abstract org.jparsec.Parser.apply.

Annotations
@Override
instanceback to summary
pack-priv static <T> Parser<List<T>> instance()
Annotations
@SuppressWarnings:unchecked
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