public class QueryPartCollectionProcessor extends Object implements QueryPartProcessor
QueryPartProcessor
which simply adds all
elements to a collection. Use getTokens()
to retrieve the 'processed'
tokens and getDelims()
for the corresponding delimitors.Constructor and Description |
---|
QueryPartCollectionProcessor() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDelims() |
List<String> |
getTokens() |
void |
parse(String delim,
String token)
Method invoked whenever the
QueryPartParser identifies a token. |
public void parse(String delim, String token)
QueryPartProcessor
QueryPartParser
identifies a token.parse
in interface QueryPartProcessor
delim
- the (previous) delimitor identified before the token. This
will always be null in case of the first token.token
- the token identified.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.