Project: stp

com.ibm.rational.stp.client.samples
Class QueryUtilities.Tokenizer

Object
  extended by com.ibm.rational.stp.client.samples.QueryUtilities.Tokenizer
Enclosing class:
QueryUtilities

private static class QueryUtilities.Tokenizer
extends Object

Tokenizes a stream containing a filtering expression from the command line


Field Summary
private  String m_stream
          The remainder of the character stream from which tokens are fetched
private  String m_text
          The original input stream
 
Constructor Summary
QueryUtilities.Tokenizer(String stream)
          Creates a new FilterTokenizer object based on a given stream.
 
Method Summary
(package private)  QueryUtilities.FilterSym next()
          Fetches the next token in the stream, without verification, and returns its FilterSym structure;
(package private)  QueryUtilities.FilterSym next(EnumSet<QueryUtilities.Kind> mask)
          Fetches the next token in the stream, verifies that its kind satisfies the mask parameter and finally, returns its FilterSym structure;
(package private)
<T> QueryUtilities.FilterSym<T>
next(EnumSet<QueryUtilities.Kind> mask, Object match)
          Fetches the next token in the stream, verifies that its kind satisfies the mask parameter; and, if specified, verifies that its code matches the match parameter, and finally, returns its FilterSym structure;
(package private)  QueryUtilities.FilterSym<CqQuery.Filter.Operation> nextOperation()
           
(package private)  QueryUtilities.FilterSym<CqQuery.FilterLeaf.TargetType> nextTarget()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stream

private String m_stream
The remainder of the character stream from which tokens are fetched


m_text

private String m_text
The original input stream

Constructor Detail

QueryUtilities.Tokenizer

QueryUtilities.Tokenizer(String stream)
Creates a new FilterTokenizer object based on a given stream.

Parameters:
stream - The String to be tokenized
Method Detail

next

<T> QueryUtilities.FilterSym<T> next(EnumSet<QueryUtilities.Kind> mask,
                                     Object match)
Fetches the next token in the stream, verifies that its kind satisfies the mask parameter; and, if specified, verifies that its code matches the match parameter, and finally, returns its FilterSym structure;

Parameters:
mask - A bit mask specifying the type(s) of token that are acceptable return values.
match - A specific FilterSym.code value that the token is required to match; may be null if no specific code match is required.
Returns:
A FilterSym object representing the next token in the stream.

next

QueryUtilities.FilterSym next(EnumSet<QueryUtilities.Kind> mask)
Fetches the next token in the stream, verifies that its kind satisfies the mask parameter and finally, returns its FilterSym structure;

Parameters:
mask - A bit mask specifying the type(s) of token that are acceptable return values.
Returns:
A FilterSym object representing the next token in the stream.

nextTarget

QueryUtilities.FilterSym<CqQuery.FilterLeaf.TargetType> nextTarget()

nextOperation

QueryUtilities.FilterSym<CqQuery.Filter.Operation> nextOperation()

next

QueryUtilities.FilterSym next()
Fetches the next token in the stream, without verification, and returns its FilterSym structure;

Returns:
A FilterSym object representing the next token in the stream.

Generated Mon 15-Aug-2011 10:18 PM

Copyright © IBM 2011. All rights reserved.