|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.QueryPosition
public final class QueryPosition
This object contains the cursor position within the parsed tree and within each of the Expression
from the root to the deepest leaf.
Constructor Summary | |
---|---|
QueryPosition(int position)
Creates a new QueryPosition . |
Method Summary | |
---|---|
void |
addPosition(Expression expression,
int position)
Adds the position of the cursor within the given Expression |
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 |
void |
setExpression(Expression expression)
Sets the deepest leaf where the cursor is located. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryPosition(int position)
QueryPosition
.
position
- The position of the cursor in the queryMethod Detail |
---|
public void addPosition(Expression expression, int position)
Expression
expression
- An Expression
in which the cursor is locatedThe
- 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 requested
Expression
or -1 if the
cursor is not within itpublic void setExpression(Expression expression)
expression
- The Expression
that is the deepest leaf within the parsed treepublic java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |