expression ::= <identifier>(expression)| Modifier and Type | Field and Description |
|---|---|
| private AbstractExpression | expression
The sub-expression encapsulated within parenthesis. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSingleEncapsulatedExpression(AbstractExpression
The parent of this expression parent, String The JPQL identifier that starts 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 void | addOrderedEncapsulatedExpressionTo(List<Expression>
The list used to store the string representation of the encapsulated children)ExpressionImplements abstract org. Expressions representing the encapsulated Expression.
|
| 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 abstract String | Returns: The BNF used to parse the encapsulated expressionReturns the BNF used to parse the encapsulated expression. |
| public final Expression | Returns: TheExpression that is encapsulated within parenthesisReturns the |
| public boolean | hasEncapsulatedExpression()
Implements abstract org. |
| public final boolean | Returns: true if the encapsulated expression was parsed; false if it
was not parsedDetermines whether the encapsulated expression of the query was parsed. |
| protected void | parseEncapsulatedExpression(WordParser
The text to parse based on the current position of the cursor wordParser, int The number of whitespace characters that were parsed after '(' whitespaceCount, 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 | removeEncapsulatedExpression()
Implements abstract org. Expression that was parsed, it should not be part of this one.
|
| public final void | setExpression(AbstractExpression
The new encapsulated expression)Expression, which cannot be nullManually sets the encapsulated |
| protected void | toParsedTextEncapsulatedExpression(StringBuilder
The buffer used to append the encapsulated writer, boolean Expression's string
representationDetermines whether to include any characters that are considered
virtual, i.e. that was parsed when the query is incomplete and is needed for functionality
like content assist actual)Implements abstract org. Expression.
|
| expression | back to summary |
|---|---|
| private AbstractExpression expression The sub-expression encapsulated within parenthesis. | |
| AbstractSingleEncapsulatedExpression | back to summary |
|---|---|
| protected AbstractSingleEncapsulatedExpression(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
| |
| addOrderedEncapsulatedExpressionTo | back to summary |
|---|---|
| protected void addOrderedEncapsulatedExpressionTo(List<Expression> children) Implements abstract org. Adds the
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getEncapsulatedExpressionQueryBNFId | back to summary |
|---|---|
| public abstract String getEncapsulatedExpressionQueryBNFId() Returns the BNF used to parse the encapsulated expression.
| |
| getExpression | back to summary |
|---|---|
| public final Expression getExpression() Returns the
| |
| hasEncapsulatedExpression | back to summary |
|---|---|
| public boolean hasEncapsulatedExpression() Implements abstract org. Doc from org. Determines whether something was parsed after the left parenthesis.
| |
| hasExpression | back to summary |
|---|---|
| public final boolean hasExpression() Determines whether the encapsulated expression of the query was parsed.
| |
| parseEncapsulatedExpression | back to summary |
|---|---|
| protected void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) Implements abstract org. Doc from org. Parses the encapsulated expression by starting at the current position, which is part of the
given
| |
| removeEncapsulatedExpression | back to summary |
|---|---|
| protected void removeEncapsulatedExpression() Implements abstract org. Doc from org. Removes the encapsulated
| |
| setExpression | back to summary |
|---|---|
| public final void setExpression(AbstractExpression expression) Manually sets the encapsulated
| |
| toParsedTextEncapsulatedExpression | back to summary |
|---|---|
| protected void toParsedTextEncapsulatedExpression(StringBuilder writer, boolean actual) Implements abstract org. Generates a string representation of the encapsulated
| |