empty_collection_comparison_expression ::= collection_valued_path_expression IS [NOT] EMPTY| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | emptyIdentifier
The actual EMPTY identifier found in the string representation of the JPQL query. |
| private AbstractExpression | expression
The |
| private boolean | hasSpaceAfterIs
Determines whether a whitespace was parsed after IS. |
| private String | isIdentifier
The actual IS identifier found in the string representation of the JPQL query. |
| private String | notIdentifier
The actual IS identifier found in the string representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| public | EmptyCollectionComparisonExpression(AbstractExpression
The parent of this expression parent, AbstractExpression The expression)Expression that represents the collection-valued path expressionCreates a new |
| pack-priv | EmptyCollectionComparisonExpression(AbstractExpression
The parent of this expression parent, String The actual identifier, which is either identifier, AbstractExpression IS_EMPTY
or IS_NOT_EMPTYThe expression)Expression that represents the collection-valued path expressionCreates 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.
|
| private EmptyCollectionComparisonExpression. | |
| 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 EMPTY identifier that was actually parsedReturns the actual EMPTY found in the string representation of the JPQL query, which has the actual case that was used. |
| public String | Returns: The IS identifier that was actually parsed, or an empty string if it was not parsedReturns the actual IS 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 found in the string representation of the JPQL query, which has the actual case that was used. |
| public Expression | Returns: The expression that was parsed representing the collection valued path expressionReturns the |
| public String | Returns: Either IS NOT EMPTY, NOT EMPTY, IS EMPTY or EMPTYReturns the identifier for this expression that may include NOT if it was parsed. |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public boolean | Returns: true if the expression was parsed; false otherwiseDetermines whether the 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 IS; false otherwiseDetermines whether a whitespace was found after IS. |
| 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.
|
| private void |
| emptyIdentifier | back to summary |
|---|---|
| private String emptyIdentifier The actual EMPTY identifier found in the string representation of the JPQL query. | |
| expression | back to summary |
|---|---|
| private AbstractExpression expression The | |
| hasSpaceAfterIs | back to summary |
|---|---|
| private boolean hasSpaceAfterIs Determines whether a whitespace was parsed after IS. | |
| isIdentifier | back to summary |
|---|---|
| private String isIdentifier The actual IS identifier found in the string representation of the JPQL query. | |
| notIdentifier | back to summary |
|---|---|
| private String notIdentifier The actual IS identifier found in the string representation of the JPQL query. | |
| EmptyCollectionComparisonExpression | back to summary |
|---|---|
| public EmptyCollectionComparisonExpression(AbstractExpression parent, AbstractExpression expression) Creates a new
| |
| EmptyCollectionComparisonExpression | back to summary |
|---|---|
| pack-priv EmptyCollectionComparisonExpression(AbstractExpression parent, String identifier, 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
| |
| buildConverter | back to summary |
|---|---|
| private EmptyCollectionComparisonExpression. | |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getActualEmptyIdentifier | back to summary |
|---|---|
| public String getActualEmptyIdentifier() Returns the actual EMPTY found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getActualIsIdentifier | back to summary |
|---|---|
| public String getActualIsIdentifier() Returns the actual IS 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 found in the string representation of the JPQL query, which has the actual case that was used.
| |
| 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. The identifier IS should always be part of the identifier but it is possible it is not present when this expression is invalid.
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| hasExpression | back to summary |
|---|---|
| public boolean hasExpression() Determines whether the expression was parsed.
| |
| hasNot | back to summary |
|---|---|
| public boolean hasNot() Determines whether the identifier NOT was part of the query.
| |
| hasSpaceAfterIs | back to summary |
|---|---|
| public boolean hasSpaceAfterIs() Determines whether a whitespace was found after IS.
| |
| 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
| |
| updateExpression | back to summary |
|---|---|
| private void updateExpression(AbstractExpression expression) | |
StateFieldPathExpression into a CollectionValuedPathExpression.
The parser only creates state field path expressions but this expression only supports a
collection valued path expression.
| Modifier and Type | Field and Description |
|---|---|
| private AbstractExpression | |
| private AbstractExpression |
| Access | Constructor and Description |
|---|---|
| pack-priv | StateFieldPathToCollectionValuedPathConverter(AbstractExpression
The parent of the expression parent, AbstractExpression The expression that might need to be converted expression)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(StateFieldPathExpression
The expression)Expression to visitOverrides org. Implements org. StateFieldPathExpression expression.
|
| expression | back to summary |
|---|---|
| private AbstractExpression expression | |
| parent | back to summary |
|---|---|
| private AbstractExpression parent | |
| StateFieldPathToCollectionValuedPathConverter | back to summary |
|---|---|
| pack-priv StateFieldPathToCollectionValuedPathConverter(AbstractExpression parent, AbstractExpression expression) Creates a new
| |
| visit | back to summary |
|---|---|
| public void visit(StateFieldPathExpression expression) Overrides org. Implements org. Doc from org. Visits the
| |