public final class QueryPosition
extends java.lang.Object
Expression
from the root to the deepest leaf.Modifier and Type | Method and Description |
---|---|
Expression |
getExpression()
Returns the child
Expression where the position of the cursor is. |
int |
getPosition()
Returns the position of the cursor in the query.
|
int |
getPosition(Expression expression)
Returns the position of the cursor within the given
Expression |
public Expression getExpression()
Expression
where the position of the cursor is.Expression
child that was retrieving by
traversing the parsed tree up to the position of the cursor.public int getPosition()
public int getPosition(Expression expression)
Expression
expression
- The Expression
for which the position of the cursor is requestedExpression
or -1 if the
cursor is not within itEclipseLink 2.3.2, "build v20111125-r10461" API Reference