between_expression ::= arithmetic_expression [NOT] BETWEEN arithmetic_expression AND arithmetic_expression |
string_expression [NOT] BETWEEN string_expression AND string_expression |
datetime_expression [NOT] BETWEEN datetime_expression AND datetime_expression| Modifier and Type | Field and Description |
|---|---|
| private String | andIdentifier
The actual AND identifier found in the string representation of the JPQL query. |
| private String | betweenIdentifier
The actual identifier found in the string representation of the JPQL query. |
| private AbstractExpression | expression
The |
| private boolean | hasSpaceAfterAnd
Determines whether a whitespace was found after AND. |
| private boolean | hasSpaceAfterBetween
Determines whether a whitespace was found after BETWEEN. |
| private boolean | hasSpaceAfterLowerBound
Determines whether a whitespace was found after the lower bound expression. |
| private AbstractExpression | lowerBoundExpression
The |
| private String | notIdentifier
The actual NOT identifier found in the string representation of the JPQL query. |
| private AbstractExpression | upperBoundExpression
The |
| Access | Constructor and Description |
|---|---|
| public | BetweenExpression(AbstractExpression
The parent of this expression parent, AbstractExpression The expression)Expression that is tested to be inclusive in a range of valuesCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected 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 String | Returns: The AND identifier that was actually parsed, or an empty string if it was not parsedReturns the actual AND identifier found in the string representation of the JPQL query, which has the actual case that was used. |
| public 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 String | Returns: The NOT identifier that was actually parsed, or an empty string if it was not parsedReturns the actual NOT identifier found in the string representation of the JPQL query, which has the actual case that was used. |
| public String | Returns: The unique identifier of the JPQL query BNF for the lower and upper bound expressionsReturns the unique identifier of the BNF for the lower and upper bound expressions. |
| public Expression | Returns: The expression that was parsed representing the expression to be testedReturns the |
| public String | Returns: Either BETWEEN or NOT BETWEENReturns the identifier for this expression that may include NOT if it was parsed. |
| public Expression | Returns: The expression that was parsed representing the lower bound expressionReturns the |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public Expression | Returns: The expression that was parsed representing the upper bound expressionReturns the |
| public boolean | Returns: true if the identifier AND was parsed; false otherwiseDetermines whether the identifier AND was part of the query. |
| protected boolean | Returns: true if the identifier BETWEEN was parsed; false otherwiseDetermines whether the identifier BETWEEN was part of the query. |
| public boolean | Returns: true if the query has the expression before BETWEEN;
false otherwiseDetermines whether the expression before the identifier was parsed. |
| public boolean | Returns: true if the query has the lower bound expression; false
otherwiseDetermines whether the lower bound expression was parsed. |
| public boolean | Returns: true if the identifier NOT was parsed; false otherwiseDetermines whether the identifier NOT was part of the query. |
| public boolean | Returns: true if there was a whitespace after AND; false otherwiseDetermines whether a whitespace was found after AND. |
| public boolean | Returns: true if there was a whitespace after the BETWEEN;
false otherwiseDetermines whether a whitespace was found after BETWEEN. |
| public boolean | Returns: true if there was a whitespace after the lower bound expression;
false otherwiseDetermines whether a whitespace was found after the lower bound expression. |
| public boolean | Returns: true if the query has the upper bound expression; false otherwiseDetermines whether the upper bound expression was parsed. |
| 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 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 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.
|
| andIdentifier | back to summary |
|---|---|
| private String andIdentifier The actual AND identifier found in the string representation of the JPQL query. | |
| betweenIdentifier | back to summary |
|---|---|
| private String betweenIdentifier The actual identifier found in the string representation of the JPQL query. | |
| expression | back to summary |
|---|---|
| private AbstractExpression expression The | |
| hasSpaceAfterAnd | back to summary |
|---|---|
| private boolean hasSpaceAfterAnd Determines whether a whitespace was found after AND. | |
| hasSpaceAfterBetween | back to summary |
|---|---|
| private boolean hasSpaceAfterBetween Determines whether a whitespace was found after BETWEEN. | |
| hasSpaceAfterLowerBound | back to summary |
|---|---|
| private boolean hasSpaceAfterLowerBound Determines whether a whitespace was found after the lower bound expression. | |
| lowerBoundExpression | back to summary |
|---|---|
| private AbstractExpression lowerBoundExpression The | |
| notIdentifier | back to summary |
|---|---|
| private String notIdentifier The actual NOT identifier found in the string representation of the JPQL query. | |
| upperBoundExpression | back to summary |
|---|---|
| private AbstractExpression upperBoundExpression The | |
| BetweenExpression | back to summary |
|---|---|
| public BetweenExpression(AbstractExpression parent, AbstractExpression expression) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| 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 void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected 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
| |
| getActualAndIdentifier | back to summary |
|---|---|
| public String getActualAndIdentifier() Returns the actual AND identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getActualBetweenIdentifier | back to summary |
|---|---|
| public String getActualBetweenIdentifier() Returns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getActualNotIdentifier | back to summary |
|---|---|
| public String getActualNotIdentifier() Returns the actual NOT identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getBoundExpressionQueryBNFId | back to summary |
|---|---|
| public String getBoundExpressionQueryBNFId() Returns the unique identifier of the BNF for the lower and upper bound expressions.
| |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Returns the
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Returns the identifier for this expression that may include NOT if it was parsed.
| |
| getLowerBoundExpression | back to summary |
|---|---|
| public Expression getLowerBoundExpression() Returns the
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getUpperBoundExpression | back to summary |
|---|---|
| public Expression getUpperBoundExpression() Returns the
| |
| hasAnd | back to summary |
|---|---|
| public boolean hasAnd() Determines whether the identifier AND was part of the query.
| |
| hasBetween | back to summary |
|---|---|
| protected boolean hasBetween() Determines whether the identifier BETWEEN was part of the query.
| |
| hasExpression | back to summary |
|---|---|
| public boolean hasExpression() Determines whether the expression before the identifier was parsed.
| |
| hasLowerBoundExpression | back to summary |
|---|---|
| public boolean hasLowerBoundExpression() Determines whether the lower bound expression was parsed.
| |
| hasNot | back to summary |
|---|---|
| public boolean hasNot() Determines whether the identifier NOT was part of the query.
| |
| hasSpaceAfterAnd | back to summary |
|---|---|
| public boolean hasSpaceAfterAnd() Determines whether a whitespace was found after AND.
| |
| hasSpaceAfterBetween | back to summary |
|---|---|
| public boolean hasSpaceAfterBetween() Determines whether a whitespace was found after BETWEEN.
| |
| hasSpaceAfterLowerBound | back to summary |
|---|---|
| public boolean hasSpaceAfterLowerBound() Determines whether a whitespace was found after the lower bound expression.
| |
| hasUpperBoundExpression | back to summary |
|---|---|
| public boolean hasUpperBoundExpression() Determines whether the upper bound expression was parsed.
| |
| 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 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
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |