|
|||||||||
| 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
org.basex.query.xpath.values.NodeSet
public final class NodeSet
XPath Value representing a NodeSet.
| Field Summary | |
|---|---|
int |
currPos
Current nodeset position. |
int |
currSize
Current nodeset size. |
Data |
data
Data reference.. |
int[][] |
ftidpos
FTIdPos array. |
int[] |
ftids
FTIds array. |
int |
mCount
Count maximal number of pre-values. |
int[] |
nodes
Node array. |
int |
size
Number of stored values.. |
| Constructor Summary | |
|---|---|
NodeSet(Data d)
Constructor, creating a new node set from the specified node ids. |
|
NodeSet(int[] ids,
Data d)
Constructor, creating a new node set from the specified node ids. |
|
NodeSet(int[] ids,
XPContext ctx)
Constructor, creating a new node set from the specified node ids. |
|
NodeSet(int[] ids,
XPContext ctx,
int[][] ftIds)
Constructor, creating a new node set from the specified node ids. |
|
NodeSet(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 ftcontains (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 |
contains(Item val)
Checks whether this value contains the word(s) in val. |
boolean |
eq(Item v)
Checks the equality of the value and the specified value. |
NodeSet |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
boolean |
ftcontainedin(Item val)
inverse ftcontains (this NodeSet is the argument to val.ftcontains). |
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. |
int |
prec()
Returns the evaluation precedence. |
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.values.Item |
|---|
compile, sameAs, serialize, serialize, usesPos, usesSize |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
indexEquivalent, indexSizes, returnedValue, sameAs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int currPos
public int currSize
public Data data
public int[][] ftidpos
public int[] ftids
public int mCount
public int[] nodes
public int size
| Constructor Detail |
|---|
public NodeSet(Data d)
d - data reference
public NodeSet(int[] ids,
Data d)
ids - node idsd - data reference
public NodeSet(int[] ids,
XPContext ctx)
ids - node idsctx - query context
public NodeSet(int[] ids,
XPContext ctx,
int[][] ftIds)
ids - node idsctx - query contextftIds - ids and posvalues for fulltextqueriespublic NodeSet(XPContext ctx)
ctx - query context| Method Detail |
|---|
public boolean appr(Item v)
Item
v - value to be compared
public boolean apprContainedIn(Item val)
val - value to contain one of these nodes
public boolean apprContains(Item v)
Item
v - value to be compared
public boolean bool()
Item
bool in class Itempublic boolean contains(Item val)
Item
val - word(s) to be contained
public boolean eq(Item v)
Item
eq in class Itemv - value to be compared
public NodeSet eval(XPContext ctx)
Expr
eval in class Exprctx - query context
public boolean ftcontainedin(Item val)
val - value to contain one of these nodes
public boolean ge(Item v)
Item
v - value to be compared
public boolean gt(Item v)
Item
v - value to be compared
public boolean le(Item v)
Item
v - value to be compared
public boolean lt(Item v)
Item
v - value to be compared
public double num()
Item
num in class Itempublic int prec()
Item
public void set(int pre)
pre - node to be set.public int size()
Item
size in interface Resultsize in class Itempublic byte[] str()
Item
str in class Itempublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||