org.eobjects.metamodel.query.parser
Class QueryPartCollectionProcessor

java.lang.Object
  extended by org.eobjects.metamodel.query.parser.QueryPartCollectionProcessor
All Implemented Interfaces:
QueryPartProcessor

public class QueryPartCollectionProcessor
extends Object
implements QueryPartProcessor

Simple implementation of QueryPartProcessor which simply adds all elements to a collection. Use getTokens() to retrieve the 'processed' tokens and getDelims() for the corresponding delimitors.


Constructor Summary
QueryPartCollectionProcessor()
           
 
Method Summary
 List<String> getDelims()
           
 List<String> getTokens()
           
 void parse(String delim, String token)
          Method invoked whenever the QueryPartParser identifies a token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryPartCollectionProcessor

public QueryPartCollectionProcessor()
Method Detail

parse

public void parse(String delim,
                  String token)
Description copied from interface: QueryPartProcessor
Method invoked whenever the QueryPartParser identifies a token.

Specified by:
parse in interface QueryPartProcessor
Parameters:
delim - the (previous) delimitor identified before the token. This will always be null in case of the first token.
token - the token identified.

getDelims

public List<String> getDelims()

getTokens

public List<String> getTokens()


Copyright © 2007-2013. All Rights Reserved.