Expression from the root to the deepest leaf.
| Modifier and Type | Field and Description |
|---|---|
| private Expression | expression
The deepest child |
| private int | position
The position of the cursor in the query. |
| private Map | positions
The table containing the position of each of the |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPosition(Expression
An expression, int Expression in which the cursor is locatedThe position of the cursor within the given position)ExpressionAdds the position of the cursor within the given |
| public Expression | Returns: The deepestExpression child that was retrieving by
traversing the parsed tree up to the position of the cursor.Returns the child |
| public int | Returns: The position of the cursor in the queryReturns the position of the cursor in the query. |
| public int | Returns: Either the position of the cursor within the givenExpression or -1 if the
cursor is not within itThe expression)Expression for which the position of the cursor is requestedReturns the position of the cursor within the given |
| public void | setExpression(Expression
The expression)Expression that is the deepest leaf within the parsed treeSets the deepest leaf where the cursor is located. |
| public String |
| expression | back to summary |
|---|---|
| private Expression expression The deepest child | |
| position | back to summary |
|---|---|
| private int position The position of the cursor in the query. | |
| positions | back to summary |
|---|---|
| private Map<Expression, Integer> positions The table containing the position of each of the | |
| QueryPosition | back to summary |
|---|---|
| public QueryPosition(int position) Creates a new
| |
| addPosition | back to summary |
|---|---|
| public void addPosition(Expression expression, int position) Adds the position of the cursor within the given
| |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Returns the child
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Returns the position of the cursor in the query.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition(Expression expression) Returns the position of the cursor within the given
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(Expression expression) Sets the deepest leaf where the cursor is located.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |