Uses of Class
org.basex.query.xquery.XQException

Packages that use XQException
org.basex.query.xquery Includes an implementation of XQuery 1.0. 
org.basex.query.xquery.expr Contains XQuery 1.0 expressions. 
org.basex.query.xquery.func Contains XQuery 1.0 functions. 
org.basex.query.xquery.item Contains XQuery 1.0 data types. 
org.basex.query.xquery.path Contains XQuery 1.0 path expressions. 
org.basex.query.xquery.util Contains XQuery utility classes. 
 

Uses of XQException in org.basex.query.xquery
 

Methods in org.basex.query.xquery that throw XQException
 void XQContext.addColl(FDoc coll)
          Adds a collection.
 NodeBuilder XQContext.coll(byte[] coll)
          Returns the specified collection.
 void XQContext.compile(Nodes nodes)
           
 DNode XQContext.doc(byte[] db)
          Adds a database instance or returns an existing one.
 Item XQContext.eval(Expr expr)
          Evaluates the specified expression.
 Result XQContext.eval(Nodes nodes)
           
 Iter XQContext.iter(Expr expr)
          Evaluates the specified expression and returns an iterator.
 void XQParser.parse(byte[] q)
          Parses the specified query.
 

Uses of XQException in org.basex.query.xquery.expr
 

Methods in org.basex.query.xquery.expr that throw XQException
 Item Cast.cast(Item it, XQContext ctx)
          Casts the specified item.
 Expr Unary.comp(XQContext ctx)
           
 Expr TypeSwitch.comp(XQContext ctx)
           
 Expr Treat.comp(XQContext ctx)
           
 Expr Satisfy.comp(XQContext ctx)
           
 Expr Pred.comp(XQContext ctx)
           
 Expr Order.comp(XQContext ctx)
           
 Ord Ord.comp(XQContext ctx)
           
 Expr List.comp(XQContext ctx)
           
 Expr Let.comp(XQContext ctx)
           
 Expr Instance.comp(XQContext ctx)
           
 Expr If.comp(XQContext ctx)
           
 void Func.comp(XQContext ctx)
          Compiles the function.
 Expr FTWords.comp(XQContext ctx)
           
 Expr FTSelect.comp(XQContext ctx)
           
 Expr FTOptions.comp(XQContext ctx)
           
 Expr FTNot.comp(XQContext ctx)
           
 Expr For.comp(XQContext ctx)
           
 Expr FLWOR.comp(XQContext ctx)
           
abstract  Expr Expr.comp(XQContext ctx)
          Optimizes and compiles the expression tree.
 Expr CText.comp(XQContext ctx)
           
 Expr CPI.comp(XQContext ctx)
           
 Expr CmpV.comp(XQContext ctx)
           
 Expr CmpG.comp(XQContext ctx)
           
 Expr Clc.comp(XQContext ctx)
           
 Expr CElem.comp(XQContext ctx)
           
 Expr CDoc.comp(XQContext ctx)
           
 Expr CComm.comp(XQContext ctx)
           
 Expr CAttr.comp(XQContext ctx)
           
 Expr Castable.comp(XQContext ctx)
           
 Expr Cast.comp(XQContext ctx)
           
 Expr Arr.comp(XQContext ctx)
           
abstract  boolean Cmp.e(Item a, Item b)
          Evaluates the expression.
 Item Case.e(XQContext ctx, Item item)
          Evaluates the given item.
abstract  Item Calc.eval(Item a, Item b)
          Performs the calculation.
 Item VarCall.eval(XQContext ctx)
           
 Item Union.eval(XQContext ctx)
           
 Item Unary.eval(XQContext ctx)
           
 Item TypeSwitch.eval(XQContext ctx)
           
 Item Treat.eval(XQContext ctx)
           
 Bln Satisfy.eval(XQContext ctx)
           
 Item Range.eval(XQContext ctx)
           
 Item Pred.eval(XQContext ctx)
           
 Item Order.eval(XQContext ctx)
           
 Item Ord.eval(XQContext ctx)
           
 Bln Or.eval(XQContext ctx)
           
 Item List.eval(XQContext ctx)
           
 Item InterSect.eval(XQContext ctx)
           
 Item Instance.eval(XQContext ctx)
           
 Item If.eval(XQContext ctx)
           
 Item FunCall.eval(XQContext ctx)
           
 Item FTWords.eval(XQContext ctx)
           
 Item FTSelect.eval(XQContext ctx)
           
 Dbl FTOr.eval(XQContext ctx)
           
 Item FTOptions.eval(XQContext ctx)
           
 Dbl FTNot.eval(XQContext ctx)
           
 Dbl FTMildNot.eval(XQContext ctx)
           
 Bln FTCont.eval(XQContext ctx)
           
 Dbl FTAnd.eval(XQContext ctx)
           
 Item FLWOR.eval(XQContext ctx)
           
abstract  Item Expr.eval(XQContext ctx)
          Evaluates the expression and returns the resulting item.
 Item Except.eval(XQContext ctx)
           
 Item CText.eval(XQContext ctx)
           
 Node CPI.eval(XQContext ctx)
           
 Item Context.eval(XQContext ctx)
           
 Item CmpV.eval(XQContext ctx)
           
 Item CmpN.eval(XQContext ctx)
           
 Bln CmpG.eval(XQContext ctx)
           
 Item Clc.eval(XQContext ctx)
           
 FElem CElem.eval(XQContext ctx)
           
 Node CDoc.eval(XQContext ctx)
           
 FComm CComm.eval(XQContext ctx)
           
 Item CAttr.eval(XQContext ctx)
           
 Item Cast.eval(XQContext ctx)
           
 Bln And.eval(XQContext ctx)
           
 Item Order.finish(SeqBuilder seq)
          Returns an array with the item order.
 

Constructors in org.basex.query.xquery.expr that throw XQException
For(Expr e, Var v, Var p, Var s)
          Constructor.
Let(Expr e, Var v)
          Constructor.
 

Uses of XQException in org.basex.query.xquery.func
 

Methods in org.basex.query.xquery.func that throw XQException
 Expr Fun.comp(XQContext ctx)
           
 Expr Fun.comp(XQContext ctx, Expr[] arg)
          Compiles the function.
 void FNIndex.error(byte[] name)
          Finds similar function names for throwing an error message.
 Item Fun.eval(XQContext ctx)
           
abstract  Item Fun.eval(XQContext ctx, Item[] arg)
          Evaluates the function.
 Item FNSimple.eval(XQContext ctx, Item[] arg)
           
 Fun FNIndex.get(byte[] name, Expr[] args)
          Returns the specified function.
 

Uses of XQException in org.basex.query.xquery.item
 

Methods in org.basex.query.xquery.item that throw XQException
 boolean SeqRange.bool()
           
 boolean Seq.bool()
           
 boolean QNm.bool()
           
 boolean Item.bool()
          Returns a boolean representation of the item.
 Item SeqType.cast(Item item, XQContext ctx)
          Cast the specified item.
 Item Item.castErr(java.lang.Object val)
          Throws a cast error.
static void NMT.check(byte[] name)
          Checks the validity of the specified name.
static void NCN.check(byte[] name)
          Checks the validity of the specified name.
static void Nam.check(byte[] name)
          Checks the validity of the specified name.
static boolean Bln.check(byte[] str)
          Checks if the specified value is a correct boolean string.
 void QNm.check(XQContext ctx, boolean ns)
          Checks the validity of the qname.
abstract  Node Node.copy()
          Creates a new copy (clone) of the node.
 FElem FElem.copy()
           
 double Str.dbl()
           
 double Node.dbl()
           
 double Item.dbl()
          Returns a double representation of the item.
 int YMo.diff(Item it)
           
 int YMd.diff(Item it)
           
 int Yea.diff(Item it)
           
 int Str.diff(Item it)
           
 int QNm.diff(Item it)
           
 int Node.diff(Item i)
           
 int Mon.diff(Item it)
           
 int MDa.diff(Item it)
           
 int Itr.diff(Item it)
           
 int Item.diff(Item it)
          Returns the difference between the current and the specified item.
 int Flt.diff(Item it)
           
 int Dur.diff(Item it)
           
 int DTd.diff(Item it)
           
 int Dec.diff(Item it)
           
 int Dbl.diff(Item it)
           
 int Day.diff(Item it)
           
 int Date.diff(Item it)
           
 int Bln.diff(Item it)
           
 int Atm.diff(Item it)
           
abstract  Item Type.e(Item it, XQContext ctx)
          Evaluates the specified item and constructs a new item.
 boolean Str.eq(Item it)
           
 boolean Seq.eq(Item it)
           
 boolean QNm.eq(Item it)
           
 boolean Node.eq(Item i)
           
 boolean Itr.eq(Item it)
           
abstract  boolean Item.eq(Item it)
          Checks the items for equality.
 boolean Hex.eq(Item it)
           
 boolean Flt.eq(Item it)
           
 boolean Dec.eq(Item it)
           
 boolean Dbl.eq(Item it)
           
 boolean Bln.eq(Item it)
           
 boolean B64.eq(Item it)
           
 boolean Atm.eq(Item it)
           
 float Str.flt()
           
 float Node.flt()
           
 float Item.flt()
          Returns a float representation of the item.
static Dbl Dbl.get(byte[] v)
          Returns an instance of this class.
 long Str.itr()
           
 long Node.itr()
           
 long Item.itr()
          Returns a numeric (long) representation of the item.
static float Flt.parse(byte[] val)
          Converts the given token into a double value.
static double Dbl.parse(byte[] val)
          Converts the given token into a double value.
 void DNode.serElem(PrintOutput out, XQContext ctx, int pos, int level)
          Serializes the specified node, starting from the specified pre value.
 void Item.serialize(PrintOutput out, XQContext ctx, int level)
          Serializes the item.
 void FElem.serialize(PrintOutput out, XQContext ctx, int level)
           
 void FDoc.serialize(PrintOutput out, XQContext ctx, int level)
           
 void DNode.serialize(PrintOutput out, XQContext ctx, int level)
           
 

Constructors in org.basex.query.xquery.item that throw XQException
B64(byte[] d)
          Constructor.
Byt(long v)
          Constructor.
Dat(byte[] dt)
          Constructor.
Day(byte[] dt)
          Constructor.
Dec(double d)
          Constructor.
Dec(double v, long l)
          Constructor.
DTd(byte[] v)
          Constructor.
DTd(Dur it, double f, boolean m)
          Constructor.
Dtm(byte[] dt)
          Constructor.
Dtm(Lng tm)
          Constructor.
Dur(byte[] v)
          Constructor.
Dur(byte[] v, Type t)
          Constructor.
Ent(byte[] v)
          Constructor.
Hex(byte[] v)
          Constructor.
ID(byte[] v)
          Constructor.
IDR(byte[] v)
          Constructor.
Int(long v)
          Constructor.
Lan(byte[] v)
          Constructor.
MDa(byte[] dt)
          Constructor.
Mon(byte[] dt)
          Constructor.
Nam(byte[] v)
          Constructor.
NCN(byte[] v)
          Constructor.
NCN(byte[] v, Type t)
          Constructor.
NIn(long v)
          Constructor.
NMT(byte[] v)
          Constructor.
NNI(long v)
          Constructor.
NPI(long v)
          Constructor.
PIn(long v)
          Constructor.
QNm(byte[] n, XQContext ctx)
          Constructor.
Shr(long v)
          Constructor.
Tim(byte[] tim)
          Constructor.
UBy(long v)
          Constructor.
UIn(long v)
          Constructor.
ULn(long v)
          Constructor.
URI(byte[] v)
          Constructor.
USh(long v)
          Constructor.
Yea(byte[] dt)
          Constructor.
YMd(byte[] v)
          Constructor.
YMd(Dur it, double f, boolean m)
          Constructor.
YMo(byte[] dt)
          Constructor.
 

Uses of XQException in org.basex.query.xquery.path
 

Methods in org.basex.query.xquery.path that throw XQException
 Expr PathRel.comp(XQContext ctx)
           
 Expr Path.comp(XQContext ctx)
           
 Item Step.eval(XQContext ctx)
           
 Item PathRel.eval(XQContext ctx)
           
 Item PathAbs.eval(XQContext ctx)
           
 

Constructors in org.basex.query.xquery.path that throw XQException
Test(QNm n, boolean w, XQContext ctx)
          Constructor.
Test(Type t, byte[] ext, XQContext ctx)
          Constructor.
 

Uses of XQException in org.basex.query.xquery.util
 

Methods in org.basex.query.xquery.util that throw XQException
 int Functions.add(XQContext ctx, Func func)
          Adds a local function.
static Item Err.cast(Type t, Item it)
          Throws a numeric type exception.
 void Functions.check()
          Checks if all functions have been correctly initialized.
static int Err.cmp(Item it1, Item it2)
          Throws a comparison exception.
 void Variables.comp(XQContext ctx)
          Compiles the functions.
 void Var.comp(XQContext ctx)
          Compiles the variable.
 void Functions.comp(XQContext ctx)
          Compiles the functions.
static Item Err.date(Type t, java.lang.String ex)
          Throws a date format exception.
static Item Err.dur(java.lang.String inf, Item it)
          Throws a duration type exception.
static Item Err.empty(Expr ex)
          Throws a empty sequence exception.
 void Functions.error(QNm name)
          Finds similar function names for throwing an error message.
 Var Var.expr(Expr e, XQContext ctx)
          Sets the specified expression.
 Var Var.fun(Item it, XQContext ctx)
          Sets the specified expression.
 Item Variables.get(Var var, XQContext ctx)
          Returns a variable expression.
 Expr Functions.get(XQContext ctx, QNm name, Expr[] args)
          Returns the specified function.
 boolean Namespaces.index(QNm name)
          Indexes the specified namespace.
 Var Var.item(Item it, XQContext ctx)
          Sets the specified expression.
static Item Err.nodes(Expr ex)
          Throws a node exception.
static Item Err.num(java.lang.String inf, Item it)
          Throws a numeric type exception.
static Item Err.or(java.lang.Object[] err, java.lang.Object... x)
          Throws an exception.
static Item Err.or(java.lang.String err, java.lang.Object... x)
          Throws an exception.
static Item Err.range(Type t, byte[] v)
          Throws a date range exception.
static Item Err.seq(Expr e, Expr ex)
          Throws a sequence exception.
static Item Err.type(java.lang.String inf, Type t, Item it)
          Throws a type exception.
 URI Namespaces.uri(byte[] pre)
          Finds the specified namespace uri.
static Item Err.value(Type t, java.lang.Object v)
          Throws an invalid value exception.