expression ::= identifier conditional_expressionHavingClause, OnClause, StartWithClause, WhereClause
| Modifier and Type | Field and Description |
|---|---|
| private AbstractExpression | conditionalExpression
The expression representing the composition of the conditional expressions. |
| private boolean | hasSpaceAfterIdentifier
Determines whether a whitespace was parsed after the identifier. |
| private String | identifier
The actual identifier found in the string representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractConditionalClause(AbstractExpression
The parent of this expression parent, String The identifier of this conditional clause identifier)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected final void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected final void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public CollectionExpression | Returns: The single select item represented by a temporary collectionCreates a new |
| public JPQLQueryBNF | findQueryBNF(Expression
The expression)Expression that is a descendant of this oneOverrides org. Implements org. JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression.
|
| public final String | Returns: The identifier that was actually parsedReturns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used. |
| public final Expression | Returns: The actual conditional expressionReturns the expression representing the composition of the conditional expressions. |
| public final String | |
| public final boolean | Returns: true if there is a conditional expression; false otherwiseDetermines whether the conditional expression was parsed. |
| public final boolean | Returns: true if there was a whitespace after the identifier; false
otherwiseDetermines whether a whitespace was parsed after the identifier or not. |
| protected boolean | isParsingComplete(WordParser
The text to parse based on the current position of the cursor wordParser, String The word that was retrieved from the given text, which is the first word in the text word, Expression The expression)Expression that has already been parsedOverrides org. |
| protected final void | parse(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Implements abstract org. WordParser.
|
| protected boolean | shouldSkipLiteral(AbstractExpression
The expression)Expression that has just been parsed or nullOverrides org. |
| protected final void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| conditionalExpression | back to summary |
|---|---|
| private AbstractExpression conditionalExpression The expression representing the composition of the conditional expressions. | |
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| private boolean hasSpaceAfterIdentifier Determines whether a whitespace was parsed after the identifier. | |
| identifier | back to summary |
|---|---|
| private String identifier The actual identifier found in the string representation of the JPQL query. | |
| AbstractConditionalClause | back to summary |
|---|---|
| protected AbstractConditionalClause(AbstractExpression parent, String identifier) Creates a new
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addChildrenTo | back to summary |
|---|---|
| protected final void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected final void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| buildCollectionExpression | back to summary |
|---|---|
| public CollectionExpression buildCollectionExpression() Creates a new
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getActualIdentifier | back to summary |
|---|---|
| public final String getActualIdentifier() Returns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getConditionalExpression | back to summary |
|---|---|
| public final Expression getConditionalExpression() Returns the expression representing the composition of the conditional expressions.
| |
| getIdentifier | back to summary |
|---|---|
| public final String getIdentifier() Returns the JPQL identifier of this expression.
| |
| hasConditionalExpression | back to summary |
|---|---|
| public final boolean hasConditionalExpression() Determines whether the conditional expression was parsed.
| |
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| public final boolean hasSpaceAfterIdentifier() Determines whether a whitespace was parsed after the identifier or not.
| |
| isParsingComplete | back to summary |
|---|---|
| protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression) Overrides org. Doc from org. Determines whether the parsing is complete based on what is left in the given text. The text is never empty.
| |
| parse | back to summary |
|---|---|
| protected final void parse(WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| shouldSkipLiteral | back to summary |
|---|---|
| protected boolean shouldSkipLiteral(AbstractExpression expression) Overrides org. Doc from org. When parsing an invalid or incomplete query, it is possible two literals would be parsed but in some cases, a CollectionExpression should not be created and the parsing should actually stop here. Example: BETWEEN 10 20, when parsing 20, it should not be parsed as part of the lower bound expression.
| |
| toParsedText | back to summary |
|---|---|
| protected final void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |