expression ::= left_expression identifier right_expression| Modifier and Type | Field and Description |
|---|---|
| private boolean | hasSpaceAfterIdentifier
Determines whether a whitespace is present after the identifier. |
| private String | identifier
The actual identifier found in the string representation of the JPQL query. |
| private AbstractExpression | leftExpression
The left side of the arithmetic expression. |
| private AbstractExpression | rightExpression
The right side of the arithmetic expression. |
| Access | Constructor and Description |
|---|---|
| protected | CompoundExpression(AbstractExpression
The parent of this expression parent, String The identifier of this expression 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 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 JPQL 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 String | |
| public final Expression | Returns: The expression that was parsed representing the first expressionReturns the |
| public abstract String | Returns: The ID of the BNF used when parsing the expression before the identifierReturns the unique identifier of the |
| public final Expression | Returns: The expression that was parsed representing the second expressionReturns the |
| public abstract String | Returns: The ID of the BNF used when parsing the expression after the identifierReturns the unique identifier of the |
| public final boolean | Returns: true if the first expression was parsed; false if it was
not parsedDetermines whether the first expression of the query was parsed. |
| public final boolean | Returns: true if the second expression was parsed; false if it was
not parsedDetermines whether the second expression of the query 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. |
| 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 abstract String | Returns: The identifier for this expressionThe wordParser)WordParser containing the text to parse, which starts with the identifierParses the identifier of this expression. |
| protected final void | setLeftExpression(AbstractExpression
The expression that was parsed before the identifier leftExpression)Sets the given |
| protected final void | setRightExpression(AbstractExpression
The expression that was parsed after the identifier rightExpression)Sets the given |
| 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.
|
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| private boolean hasSpaceAfterIdentifier Determines whether a whitespace is present after the identifier. | |
| identifier | back to summary |
|---|---|
| private String identifier The actual identifier found in the string representation of the JPQL query. | |
| leftExpression | back to summary |
|---|---|
| private AbstractExpression leftExpression The left side of the arithmetic expression. | |
| rightExpression | back to summary |
|---|---|
| private AbstractExpression rightExpression The right side of the arithmetic expression. | |
| CompoundExpression | back to summary |
|---|---|
| protected CompoundExpression(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
| |
| 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.
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Returns the JPQL identifier of this expression.
| |
| getLeftExpression | back to summary |
|---|---|
| public final Expression getLeftExpression() Returns the
| |
| getLeftExpressionQueryBNFId | back to summary |
|---|---|
| public abstract String getLeftExpressionQueryBNFId() Returns the unique identifier of the
| |
| getRightExpression | back to summary |
|---|---|
| public final Expression getRightExpression() Returns the
| |
| getRightExpressionQueryBNFId | back to summary |
|---|---|
| public abstract String getRightExpressionQueryBNFId() Returns the unique identifier of the
| |
| hasLeftExpression | back to summary |
|---|---|
| public final boolean hasLeftExpression() Determines whether the first expression of the query was parsed.
| |
| hasRightExpression | back to summary |
|---|---|
| public final boolean hasRightExpression() Determines whether the second expression of the query was parsed.
| |
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| public final boolean hasSpaceAfterIdentifier() Determines whether a whitespace was parsed after the identifier.
| |
| 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
| |
| parseIdentifier | back to summary |
|---|---|
| protected abstract String parseIdentifier(WordParser wordParser) Parses the identifier of this expression.
| |
| setLeftExpression | back to summary |
|---|---|
| protected final void setLeftExpression(AbstractExpression leftExpression) Sets the given
| |
| setRightExpression | back to summary |
|---|---|
| protected final void setRightExpression(AbstractExpression rightExpression) Sets the given
| |
| toParsedText | back to summary |
|---|---|
| protected final void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |