CollectionValuedPathExpression, IdentificationVariable
| Modifier and Type | Field and Description |
|---|---|
| private boolean | endsWithDot
Determines whether the path ends with a dot or not. |
| private AbstractExpression | identificationVariable
The identification variable that starts the path expression, which can be a sample |
| private List | paths
The state field path in a ordered list of string segments. |
| private int | pathSize
The cached number of segments representing the path expression. |
| private boolean | startsWithDot
Determines whether the path starts with a dot or not. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractPathExpression(AbstractExpression
The parent of this expression parent, AbstractExpression The identification variable that was already parsed, which means
the beginning of the parsing should start with a dot identificationVariable)Creates a new |
| public | AbstractPathExpression(AbstractExpression
The parent of this expression parent, AbstractExpression The identification variable that was already parsed, which means
the beginning of the parsing should start with a dot identificationVariable, String The path expression that is following the identification variable paths)Creates a new |
| protected | AbstractPathExpression(AbstractExpression
The parent of this expression parent, String The path expression paths)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 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.
|
| private void | |
| public final boolean | Returns: true if the path ends with a dot; false otherwiseDetermines whether the path ends with a dot or not. |
| public final 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 Expression | Returns: The root of the path expressionReturns the identification variable that starts the path expression, which can be a sample identification variable, a map value, map key or map entry expression. |
| public final String | Returns: The specified segmentThe 0-based segment index index)Returns the specified segment of the state field path. |
| public final boolean | Returns: true the identification variable was parsed; false otherwiseDetermines whether the identification variable was parsed. |
| public final boolean | Returns: true if this identification variable was virtually created to fully
qualify path expression; false if it was parsedDetermines whether the path's identification variable is virtual or not, meaning it's not part of the query but is required for proper navigability. |
| 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.
|
| public final ListIterable | Returns: AnIterator over the segments of the state field pathReturns the segments in the state field path in order. |
| public final int | |
| protected final void | setVirtualIdentificationVariable(String
The identification variable that was generated to identify the "root" object variableName)Sets a virtual identification variable because the abstract schema name was parsed without one. |
| public final boolean | Returns: true if the path starts with a dot; false otherwiseDetermines whether the path starts with a dot or not. |
| public String | Returns: The string representation of this path expression contained in the given rangeThe beginning of the range to create the string representation startIndex, int When to stop creating the string representation, which is exclusive stopIndex)Returns a string representation from the given range. |
| 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.
|
| endsWithDot | back to summary |
|---|---|
| private boolean endsWithDot Determines whether the path ends with a dot or not. | |
| identificationVariable | back to summary |
|---|---|
| private AbstractExpression identificationVariable The identification variable that starts the path expression, which can be a sample | |
| paths | back to summary |
|---|---|
| private List<String> paths The state field path in a ordered list of string segments. | |
| pathSize | back to summary |
|---|---|
| private int pathSize The cached number of segments representing the path expression. | |
| startsWithDot | back to summary |
|---|---|
| private boolean startsWithDot Determines whether the path starts with a dot or not. | |
| AbstractPathExpression | back to summary |
|---|---|
| protected AbstractPathExpression(AbstractExpression parent, AbstractExpression identificationVariable) Creates a new
| |
| AbstractPathExpression | back to summary |
|---|---|
| public AbstractPathExpression(AbstractExpression parent, AbstractExpression identificationVariable, String paths) Creates a new
| |
| AbstractPathExpression | back to summary |
|---|---|
| protected AbstractPathExpression(AbstractExpression parent, String paths) 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 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
| |
| checkPaths | back to summary |
|---|---|
| private void checkPaths() | |
| endsWithDot | back to summary |
|---|---|
| public final boolean endsWithDot() Determines whether the path ends with a dot or not.
| |
| findQueryBNF | back to summary |
|---|---|
| public final JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getIdentificationVariable | back to summary |
|---|---|
| public final Expression getIdentificationVariable() Returns the identification variable that starts the path expression, which can be a sample identification variable, a map value, map key or map entry expression.
| |
| getPath | back to summary |
|---|---|
| public final String getPath(int index) Returns the specified segment of the state field path.
| |
| hasIdentificationVariable | back to summary |
|---|---|
| public final boolean hasIdentificationVariable() Determines whether the identification variable was parsed.
| |
| hasVirtualIdentificationVariable | back to summary |
|---|---|
| public final boolean hasVirtualIdentificationVariable() Determines whether the path's identification variable is virtual or not, meaning it's not part of the query but is required for proper navigability.
| |
| 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
| |
| paths | back to summary |
|---|---|
| public final ListIterable Returns the segments in the state field path in order.
| |
| pathSize | back to summary |
|---|---|
| public final int pathSize() Returns the number of segments in the state field path.
| |
| setVirtualIdentificationVariable | back to summary |
|---|---|
| protected final void setVirtualIdentificationVariable(String variableName) Sets a virtual identification variable because the abstract schema name was parsed without one. This is valid in an UPDATE and DELETE queries.
| |
| startsWithDot | back to summary |
|---|---|
| public final boolean startsWithDot() Determines whether the path starts with a dot or not.
| |
| toParsedText | back to summary |
|---|---|
| public String toParsedText(int startIndex, int stopIndex) Returns a string representation from the given range.
| |
| toParsedText | back to summary |
|---|---|
| protected final void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |