|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.locpath.Steps
public final class Steps
Location Steps.
| Constructor Summary | |
|---|---|
Steps()
|
|
| Method Summary | |
|---|---|
void |
add(int s,
Step step)
Adds the specified step at the specified position. |
void |
add(Step step)
Adds the specified step. |
boolean |
compile(XPContext ctx)
Optimizes the predicates. |
NodeSet |
eval(XPContext ctx)
Evaluates the location steps. |
Step |
get(int s)
Returns the specified step. |
Step |
last()
Returns the last location step. |
void |
remove(int s)
Removes the specified step. |
boolean |
sameAs(Steps stps)
Returns the location steps for equality. |
void |
set(int s,
Step step)
Sets the specified step. |
int |
size()
Returns the number of location steps. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Steps()
| Method Detail |
|---|
public void add(int s,
Step step)
s - step indexstep - step to be addedpublic void add(Step step)
step - step to be added
public boolean compile(XPContext ctx)
throws EvalException
ctx - query context
EvalException - evaluation exception
public NodeSet eval(XPContext ctx)
throws EvalException
ctx - query context
EvalException - evaluation exceptionpublic Step get(int s)
s - step index
public Step last()
public void remove(int s)
s - step indexpublic boolean sameAs(Steps stps)
stps - location steps to be compared
public void set(int s,
Step step)
s - step indexstep - step to be setpublic int size()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||