TItem
- Type of each value.public class ParameterParser<TItem> extends TextParser<java.util.List<TItem>>
Constructor and Description |
---|
ParameterParser(TextParser<TItem> elementParser) |
Modifier and Type | Method and Description |
---|---|
TextParser<TItem> |
getElementParser() |
java.util.List<TItem> |
parse(java.lang.String text)
Transforms the given text into an object.
|
java.util.List<TItem> |
parseExact(java.lang.String text) |
getParameterQueue, parse, tryParse, tryParse
public ParameterParser(TextParser<TItem> elementParser)
public java.util.List<TItem> parse(java.lang.String text) throws ParsingException
TextParser
parse
in class TextParser<java.util.List<TItem>>
text
- - text to parse.ParsingException
- The text cannot be transformed into a list of objects.public java.util.List<TItem> parseExact(java.lang.String text) throws ParsingException
ParsingException
public TextParser<TItem> getElementParser()