|
||||||||||
| 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
public abstract class Item
Abstract item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr |
|---|
Expr.Return, Expr.Using |
| Field Summary | |
|---|---|
Type |
type
Data type. |
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
void |
castErr(java.lang.Object val)
Throws a cast error. |
Expr |
comp(XQContext ctx)
Optimizes and compiles the expression. |
boolean |
d()
Checks if this is a duration. |
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. |
abstract boolean |
eq(Item it)
Checks the items for equality. |
float |
flt()
Returns a float representation of the item. |
int |
hash()
Returns a hash code. |
boolean |
i()
Checks if this is an item. |
Iter |
iter()
Returns an item iterator. |
Iter |
iter(XQContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
long |
itr()
Returns an integer (long) representation of the item. |
java.lang.Object |
java()
Returns a Java object. |
boolean |
n()
Checks if this is a numeric item. |
byte[] |
name()
Returns the simplified class name (for debugging). |
boolean |
node()
Checks if this is a node. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Type |
returned()
Indicates if an expression returns the specified type. |
boolean |
s()
Checks if this is a string item. |
double |
score()
Returns a score value. |
void |
score(double s)
Sets a new score value. |
void |
serialize(Serializer ser)
Serializes the item. |
int |
size()
Returns the sequence size or 1. |
byte[] |
str()
Returns an atomized string. |
java.lang.String |
toString()
|
boolean |
u()
Checks if this is an untyped item. |
boolean |
uses(Expr.Using u)
Indicates if an expression uses the specified type. |
| 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 Type type
| Method Detail |
|---|
public Expr comp(XQContext ctx)
Expr
comp in class Exprctx - query context
public boolean i()
Expr
i in class Exprpublic final boolean n()
public final boolean u()
public final boolean s()
public final boolean d()
public final boolean node()
public int size()
public byte[] str()
public int hash()
public java.lang.Object java()
public boolean bool()
throws XQException
XQException - evaluation exception
public java.math.BigDecimal dec()
throws XQException
XQException - evaluation exception
public long itr()
throws XQException
XQException - evaluation exception
public float flt()
throws XQException
XQException - evaluation exception
public double dbl()
throws XQException
XQException - evaluation exceptionpublic Iter iter(XQContext ctx)
Expr
iter in class Exprctx - query context
public Iter iter()
public abstract boolean eq(Item it)
throws XQException
it - item to be compared.
XQException - evaluation exception
public int diff(Item it)
throws XQException
it - item to be compared.
XQException - evaluation exceptionpublic double score()
public void score(double s)
s - score value
public final void castErr(java.lang.Object val)
throws XQException
val - cast value
XQException - evaluation exception
public void serialize(Serializer ser)
throws java.io.IOException
ser - serializer
java.io.IOException - exceptionpublic boolean uses(Expr.Using u)
Expr
uses in class Expru - using flag
public Type returned()
Expr
returned in class Exprpublic final byte[] name()
ExprInfo
name in class ExprInfo
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exceptionpublic java.lang.String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||