public class ListParser extends MetaPatternParser
| Constructor and Description |
|---|
ListParser(MetaPattern entryPattern,
MetaPattern separatorPattern,
CharSequence input)
Constructs a list parser from an entry MetaPattern, a separator MetaPattern and an input
character sequence.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getValues()
Gets the parsed values.
|
boolean |
matches()
Parse the input and add the elements to an internal list to be accessed by
|
advance, atEnd, matcher, setPatternpublic ListParser(MetaPattern entryPattern, MetaPattern separatorPattern, CharSequence input)
entryPattern - The pattern in between the separatorsseparatorPattern - The separator patterninput - The input to parsepublic final boolean matches()
matches in class MetaPatternParsergetValues(),
MetaPatternParser.matches()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.