|
||||||||||
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 location steps. |
Nod |
eval(XPContext ctx)
Evaluates the location steps. |
Step |
get(int s)
Returns the specified step. |
Step |
last()
Returns the last location step. |
void |
plan(Serializer ser)
Serializes the abstract syntax tree. |
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 int size()
public Step get(int s)
s
- step index
public Step last()
public void set(int s, Step step)
s
- step indexstep
- step to be setpublic void add(int s, Step step)
s
- step indexstep
- step to be addedpublic void add(Step step)
step
- step to be addedpublic void remove(int s)
s
- step indexpublic Nod eval(XPContext ctx) throws QueryException
ctx
- query context
QueryException
- evaluation exceptionpublic boolean compile(XPContext ctx) throws QueryException
ctx
- query context
QueryException
- evaluation exceptionpublic boolean sameAs(Steps stps)
stps
- location steps to be compared
public java.lang.String toString()
toString
in class java.lang.Object
public void plan(Serializer ser) throws java.io.IOException
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |