|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.item.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 |
comp(XPContext ctx)
Optimizes 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 |
same(Result v)
Compares values for equality. |
void |
serialize(Serializer ser)
Serializes the complete result. |
void |
serialize(Serializer ser,
int n)
Serializes the specified result. |
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 org.basex.query.ExprInfo |
|---|
color, info, name, plan |
| 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 abstract byte[] str()
public abstract double num()
public abstract boolean eq(Item v)
v - value to be compared
public final Expr comp(XPContext ctx)
Expr
comp in class Exprctx - expression context
public final boolean usesSize()
Expr
usesSize in class Exprpublic final boolean usesPos()
Expr
usesPos in class Exprpublic abstract java.lang.String toString()
toString in class ExprInfopublic int size()
size in interface Resultpublic final boolean same(Result v)
same in interface Resultv - value to be compared
public void serialize(Serializer ser)
throws java.io.IOException
serialize in interface Resultser - serializer
java.io.IOException - exception
public void serialize(Serializer ser,
int n)
throws java.io.IOException
serialize in interface Resultser - serializern - number of result to serialize
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||