private static class QueryUtilities.Tokenizer extends Object
Modifier and Type | Field and Description |
---|---|
private String |
m_stream
The remainder of the character stream from which tokens are fetched
|
private String |
m_text
The original input stream
|
Constructor and Description |
---|
QueryUtilities.Tokenizer(String stream)
Creates a new FilterTokenizer object based on a given stream.
|
Modifier and Type | Method and Description |
---|---|
(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() |
private String m_stream
private String m_text
QueryUtilities.Tokenizer(String stream)
stream
- The String to be tokenized<T> QueryUtilities.FilterSym<T> next(EnumSet<QueryUtilities.Kind> mask, Object match)
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.QueryUtilities.FilterSym next(EnumSet<QueryUtilities.Kind> mask)
mask
- A bit mask specifying the type(s) of token that are
acceptable return values.QueryUtilities.FilterSym<CqQuery.FilterLeaf.TargetType> nextTarget()
QueryUtilities.FilterSym<CqQuery.Filter.Operation> nextOperation()
QueryUtilities.FilterSym next()
Copyright © IBM 2016. All rights reserved.