|
||||||||||
| 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.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Num
org.basex.query.xquery.item.Itr
public class Itr
Integer item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr |
|---|
Expr.Return, Expr.Using |
| Field Summary | |
|---|---|
static Itr |
ZERO
Zero value. |
| Fields inherited from class org.basex.query.xquery.item.Item |
|---|
type |
| Constructor Summary | |
|---|---|
Itr(long v,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
double |
dbl()
Returns a double representation of the item. |
java.math.BigDecimal |
dec()
Returns a decimal representation of the item. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
float |
flt()
Returns a float representation of the item. |
static Itr |
get(long v)
Returns an instance of this class. |
int |
hash()
Returns a hash code. |
static Iter |
iter(long v)
Returns an iterator. |
long |
itr()
Returns an integer (long) representation of the item. |
java.lang.Object |
java()
Returns a Java object. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, d, i, iter, iter, n, name, node, plan, returned, s, score, score, serialize, size, toString, u, uses |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
e |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Itr ZERO
| Constructor Detail |
|---|
public Itr(long v,
Type t)
v - valuet - data type| Method Detail |
|---|
public static Itr get(long v)
v - value
public static Iter iter(long v)
v - value
public final byte[] str()
Item
str in class Itempublic final boolean bool()
Item
bool in class Itempublic final long itr()
Item
itr in class Itempublic final float flt()
Item
flt in class Itempublic final double dbl()
Item
dbl in class Itempublic java.math.BigDecimal dec()
Item
dec in class Item
public final boolean eq(Item it)
throws XQException
Item
eq in class Itemit - item to be compared.
XQException - evaluation exception
public final int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exceptionpublic int hash()
Item
hash in class Itempublic java.lang.Object java()
Item
java in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||