|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.expr.Expr
org.basex.query.xpath.values.Item
public abstract class Item
Interface for all XPath items (results of expressions).
| Constructor Summary | |
|---|---|
Item()
|
|
| Method Summary | |
|---|---|
abstract boolean |
bool()
Returns the boolean value. |
Expr |
compile(XPContext ctx)
Tries to optimize the Expression. |
abstract boolean |
eq(Item v)
Checks the equality of the value and the specified value. |
abstract double |
num()
Returns the double value. |
boolean |
sameAs(Result v)
Compares values for equality. |
void |
serialize(PrintOutput out,
boolean valid)
Serializes the stored data to the specified output stream. |
void |
serialize(ResultReader rr)
Serializes the stored data to the specified reader. |
int |
size()
Number of values, stored in the result instance. |
abstract byte[] |
str()
Returns the literal value. |
abstract java.lang.String |
toString()
|
boolean |
usesPos()
Checks whether this Expression (or its children) make use of the position parameter. |
boolean |
usesSize()
Checks whether this Expression (or its children) make use of the setsize parameter. |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
eval, indexEquivalent, indexSizes, returnedValue, sameAs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Item()
| Method Detail |
|---|
public abstract boolean bool()
public final Expr compile(XPContext ctx)
Expr
compile in class Exprctx - expression context
public abstract boolean eq(Item v)
v - value to be compared
public abstract double num()
public final boolean sameAs(Result v)
sameAs in interface Resultv - value to be compared
public final void serialize(PrintOutput out,
boolean valid)
throws java.io.IOException
serialize in interface Resultout - output streamvalid - well-formed output
java.io.IOException - in case of problems with the PrintOutputpublic final void serialize(ResultReader rr)
serialize in interface Resultrr - default handlerpublic int size()
size in interface Resultpublic abstract byte[] str()
public abstract java.lang.String toString()
toString in class Exprpublic final boolean usesPos()
Expr
usesPos in class Exprpublic final boolean usesSize()
Expr
usesSize in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||