|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
public abstract class Expr
Abstract Expression.
| Field Summary | |
|---|---|
Type |
type
Data type. |
| Constructor Summary | |
|---|---|
Expr()
|
|
| Method Summary | |
|---|---|
java.lang.String |
cls()
Returns the simplified class name (for debugging). |
abstract Expr |
comp(XQContext ctx)
Optimizes and compiles the expression tree. |
boolean |
d()
Checks if this is a duration. |
boolean |
e()
Returns if this is an empty sequence. |
abstract Item |
eval(XQContext ctx)
Evaluates the expression and returns the resulting item. |
boolean |
i()
Checks if this is an item. |
abstract java.lang.String |
info()
Returns a string description of the expression. |
boolean |
n()
Checks if this is a numeric item. |
boolean |
node()
Checks if this is a node. |
boolean |
s()
Checks if this is a string item. |
int |
size()
Returns the sequence size or 0. |
byte[] |
str()
Returns an atomized string. |
abstract java.lang.String |
toString()
|
boolean |
u()
Checks if this is an untyped item. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Type type
| Constructor Detail |
|---|
public Expr()
| Method Detail |
|---|
public final java.lang.String cls()
public abstract Expr comp(XQContext ctx)
throws XQException
ctx - query context
XQException - evaluation exceptionpublic boolean d()
public boolean e()
public abstract Item eval(XQContext ctx)
throws XQException
ctx - query context
XQException - evaluation exceptionpublic boolean i()
public abstract java.lang.String info()
toString() method, the current expressions aren't included
in the output.
public boolean n()
public boolean node()
public boolean s()
public int size()
public byte[] str()
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic boolean u()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||