|
||||||||||
| 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
org.basex.query.xpath.item.Nod
public final class Nod
XPath Value representing a NodeSet.
| Field Summary | |
|---|---|
int |
currPos
Current node set position. |
int |
currSize
Current node set size. |
Data |
data
Data reference.. |
int[] |
nodes
Node array. |
int |
size
Number of stored values.. |
| Constructor Summary | |
|---|---|
Nod(Data d)
Constructor, creating a new node set from the specified node ids. |
|
Nod(int[] ids,
Data d)
Constructor, creating a new node set from the specified node ids. |
|
Nod(int[] ids,
XPContext ctx)
Constructor, creating a new node set from the specified node ids. |
|
Nod(XPContext ctx)
Constructor, creating an empty node set. |
|
| Method Summary | |
|---|---|
boolean |
appr(Item v)
Checks the approximate equality of the value and the specified value. |
boolean |
apprContainedIn(Item val)
inverse contains (this NodeSet is the argument to val.apprContains). |
boolean |
apprContains(Item v)
Checks whether this value approximately contains the word(s) in val. |
boolean |
bool()
Returns the boolean value. |
boolean |
eq(Item v)
Checks the equality of the value and the specified value. |
Nod |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
boolean |
ge(Item v)
Checks if the value is greater than or equal to the specified value. |
boolean |
gt(Item v)
Checks if the value is greater than the specified value. |
boolean |
le(Item v)
Checks if the value is less than or equal to the specified value. |
boolean |
lt(Item v)
Checks if the value is less than the specified value. |
double |
num()
Returns the double value. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
int |
prec()
Returns the evaluation precedence. |
void |
serialize(Serializer ser)
Serializes the complete result. |
void |
serialize(Serializer ser,
int n)
Serializes the specified result. |
void |
set(int pre)
Sets a single node. |
int |
size()
Number of values, stored in the result instance. |
byte[] |
str()
Returns the literal value. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xpath.item.Item |
|---|
comp, same, usesPos, usesSize |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
indexEquivalent, indexSizes, returnedValue, sameAs |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info, name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int[] nodes
public Data data
public int size
public int currPos
public int currSize
| Constructor Detail |
|---|
public Nod(int[] ids,
XPContext ctx)
ids - node idsctx - query contextpublic Nod(XPContext ctx)
ctx - query contextpublic Nod(Data d)
d - data reference
public Nod(int[] ids,
Data d)
ids - node idsd - data reference| Method Detail |
|---|
public void set(int pre)
pre - node to be set.public int size()
Item
size in interface Resultsize in class Item
public void serialize(Serializer ser)
throws java.io.IOException
Item
serialize in interface Resultserialize in class Itemser - serializer
java.io.IOException - exception
public void serialize(Serializer ser,
int n)
throws java.io.IOException
Item
serialize in interface Resultserialize in class Itemser - serializern - number of result to serialize
java.io.IOException - exceptionpublic Nod eval(XPContext ctx)
Expr
eval in class Exprctx - query context
public boolean bool()
Item
bool in class Itempublic byte[] str()
Item
str in class Itempublic double num()
Item
num in class Itempublic int prec()
Item
public boolean lt(Item v)
Item
v - value to be compared
public boolean le(Item v)
Item
v - value to be compared
public boolean gt(Item v)
Item
v - value to be compared
public boolean ge(Item v)
Item
v - value to be compared
public boolean eq(Item v)
Item
eq in class Itemv - value to be compared
public boolean appr(Item v)
Item
v - value to be compared
public boolean apprContains(Item v)
Item
v - value to be compared
public boolean apprContainedIn(Item val)
val - value to contain one of these nodes
public java.lang.String toString()
toString in class Item
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||