public final class SelectItemParser extends Object implements QueryPartProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
SelectItemParser.MultipleSelectItemsParsedException |
| Constructor and Description |
|---|
SelectItemParser(Query query,
boolean allowExpressionBasedSelectItems) |
| Modifier and Type | Method and Description |
|---|---|
SelectItem |
findSelectItem(String expression)
Finds/creates a SelectItem based on the given expression.
|
void |
parse(String delim,
String itemToken)
Method invoked whenever the
QueryPartParser identifies a token. |
public SelectItemParser(Query query, boolean allowExpressionBasedSelectItems)
public void parse(String delim, String itemToken) throws MetaModelException
QueryPartProcessorQueryPartParser identifies a token.parse in interface QueryPartProcessordelim - the (previous) delimitor identified before the token. This
will always be null in case of the first token.itemToken - the token identified.MetaModelExceptionpublic SelectItem findSelectItem(String expression) throws SelectItemParser.MultipleSelectItemsParsedException
parse(String, String) method, this method will not actually add
the selectitem to the query.expression - SelectItemParser.MultipleSelectItemsParsedException - if an expression yielding multiple select-items (such as "*")
was passed in the expressionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.