ResultVariableFactory creates a new ResultVariable when the portion of the
query to parse starts with or without AS.
ResultVariable
| Modifier and Type | Class and Description |
|---|---|
| private static class | ResultVariableFactory.SelectClauseVisitor
This visitor determines whether the result variable should set the parsed expression as the select expression or not. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ID
The unique identifier of this |
| private ResultVariableFactory. | selectClauseVisitor
Caches the visitor that determines if the parent |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractExpression | buildExpression(AbstractExpression
The parent parent, WordParser AbstractExpressionThe text to parse based on the current position of the cursor wordParser, String The current word being parsed word, JPQLQueryBNF The BNF grammar that was used to identifier this factory to be capable to
parse a portion of the query queryBNF, AbstractExpression During the parsing, it is possible the first part of an expression was
parsed which needs to be used as a sub-expression of the newly created expression expression, boolean tolerant)Implements abstract org. Expression.
|
| private ResultVariableFactory. |
| ID | back to summary |
|---|---|
| public static final String ID The unique identifier of this | |
| selectClauseVisitor | back to summary |
|---|---|
| private ResultVariableFactory. Caches the visitor that determines if the parent | |
| ResultVariableFactory | back to summary |
|---|---|
| public ResultVariableFactory() Creates a new | |
| buildExpression | back to summary |
|---|---|
| protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant) Implements abstract org. Doc from org. Creates a new
| |
| selectClauseVisitor | back to summary |
|---|---|
| private ResultVariableFactory. | |
SELECT clause: default valid location.SELECT clause: to support from within the
FROM clause.| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | supported
Indicates if the result variable should have already parsed expression as its select expression. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(JPQLExpression
The expression)Expression to visitOverrides org. Implements org. JPQLExpression expression.
|
| public void | visit(SelectClause
The expression)Expression to visitOverrides org. Implements org. SelectClause expression.
|
| public void | visit(SimpleSelectClause
The expression)Expression to visitOverrides org. Implements org. SimpleSelectClause expression.
|
| supported | back to summary |
|---|---|
| pack-priv boolean supported Indicates if the result variable should have already parsed expression as its select expression. | |
| SelectClauseVisitor | back to summary |
|---|---|
| private SelectClauseVisitor() | |
| visit | back to summary |
|---|---|
| public void visit(JPQLExpression expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(SelectClause expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(SimpleSelectClause expression) Overrides org. Implements org. Doc from org. Visits the
| |