Uses of Class
org.basex.query.QueryException

Packages that use QueryException
org.basex.core This package contains the core classes. 
org.basex.query Provides classes for querying the data. 
org.basex.query.expr Contains XQuery 1.0 expressions. 
org.basex.query.ft Contains XQuery Full-Text 1.0 expressions. 
org.basex.query.func Contains XQuery 1.0 functions. 
org.basex.query.item Contains XQuery 1.0 data types. 
org.basex.query.iter Contains XQuery iterators. 
org.basex.query.path Contains XQuery 1.0 path expressions. 
org.basex.query.util Contains XQuery utility classes. 
 

Uses of QueryException in org.basex.core
 

Methods in org.basex.core that throw QueryException
 void CommandParser.error(StringList comp, java.lang.String m, java.lang.Object... e)
          Throws an error.
 Process[] CommandParser.parse()
          Parses the input and returns a command list.
 

Uses of QueryException in org.basex.query
 

Methods in org.basex.query that throw QueryException
 Iter QueryContext.coll(byte[] coll)
          Adds a collection instance or returns an existing one.
 void QueryProcessor.compile()
          Compiles the query.
 void QueryContext.compile()
          Optimizes the expression.
 Data QueryContext.data()
          Returns the common database reference of all items or null.
 DBNode QueryContext.doc(byte[] db, boolean coll)
          Adds a database instance or returns an existing one.
 Item QueryProcessor.eval()
          Returns the result as an item.
 Iter QueryProcessor.iter()
          Returns a result iterator.
 Iter QueryContext.iter()
          Returns a result iterator.
 Iter QueryContext.iter(Expr e)
          Evaluates the specified expression and returns an iterator.
 void QueryContext.module(java.lang.String q)
          Parses the specified module.
 void QueryProcessor.parse()
          Parses the specified query.
 void QueryContext.parse(java.lang.String q)
          Parses the specified query.
 Expr QueryParser.parse(java.lang.String q, IO f, Uri u)
          Parses the specified query.
 Expr QueryParser.parse(Uri u, boolean end)
          Parses the specified query.
 Expr QueryParser.path()
          [ 68] Parses a PathExpr
 Result QueryProcessor.query()
          Parses the specified query and returns the result.
 Nodes QueryProcessor.queryNodes()
          Parses the specified query and returns the result nodes.
 

Uses of QueryException in org.basex.query.expr
 

Methods in org.basex.query.expr with parameters of type QueryException
 Iter Catch.iter(QueryContext ctx, QueryException e)
          Catch iterator.
 

Methods in org.basex.query.expr that throw QueryException
 void Order.add(QueryContext ctx)
          Adds the items to be sorted.
static void CText.add(TokenBuilder tb, Iter iter)
          Adds a single item to the token builder.
 Expr Expr.addText(QueryContext ctx)
          Adds a text to an expression.
 Item Unary.atomic(QueryContext ctx)
           
 Bln Satisfy.atomic(QueryContext ctx)
           
 Bln Pos.atomic(QueryContext ctx)
           
 Item Or.atomic(QueryContext ctx)
           
 Bln Instance.atomic(QueryContext ctx)
           
 Item Func.atomic(QueryContext ctx)
           
 Item Expr.atomic(QueryContext ctx)
          Evaluates the expression and returns the resulting item or a null reference.
 Item CText.atomic(QueryContext ctx)
           
 Item CPI.atomic(QueryContext ctx)
           
 Bln CmpV.atomic(QueryContext ctx)
           
 Item CmpR.atomic(QueryContext ctx)
           
 Bln CmpN.atomic(QueryContext ctx)
           
 Bln CmpG.atomic(QueryContext ctx)
           
 Item Clc.atomic(QueryContext ctx)
           
 Item CElem.atomic(QueryContext ctx)
           
 Item CDoc.atomic(QueryContext ctx)
           
 Item CComm.atomic(QueryContext ctx)
           
 Item CAttr.atomic(QueryContext ctx)
           
 Item Cast.atomic(QueryContext ctx)
           
 Bln And.atomic(QueryContext ctx)
           
 Item Expr.checkCtx(QueryContext ctx)
          Throws an exception if the context item is not set.
 double Expr.checkDbl(Expr e, QueryContext ctx)
          Checks if the specified expression yields a string.
 long Expr.checkItr(Expr e, QueryContext ctx)
          Checks if the specified expression is an integer.
 Expr VarCall.comp(QueryContext ctx)
           
 Expr Union.comp(QueryContext ctx)
           
 Expr Unary.comp(QueryContext ctx)
           
 Expr TypeSwitch.comp(QueryContext ctx)
           
 Expr Try.comp(QueryContext ctx)
           
 Expr Single.comp(QueryContext ctx)
           
 Expr Simple.comp(QueryContext ctx)
           
 Expr Satisfy.comp(QueryContext ctx)
           
 Expr Range.comp(QueryContext ctx)
           
 Expr Preds.comp(QueryContext ctx)
           
 Expr Pred.comp(QueryContext ctx)
           
 Expr Order.comp(QueryContext ctx)
           
 Expr Ord.comp(QueryContext ctx)
           
 Expr Or.comp(QueryContext ctx)
           
 Expr List.comp(QueryContext ctx)
           
 Expr Let.comp(QueryContext ctx)
           
 Expr InterSect.comp(QueryContext ctx)
           
 Expr Instance.comp(QueryContext ctx)
           
 Expr If.comp(QueryContext ctx)
           
 Expr FunCall.comp(QueryContext ctx)
           
 Expr Func.comp(QueryContext ctx)
           
 Expr For.comp(QueryContext ctx)
           
 Expr FLWR.comp(QueryContext ctx)
           
 Expr FLWOR.comp(QueryContext ctx)
           
abstract  Expr Expr.comp(QueryContext ctx)
          Optimizes and compiles the expression.
 Expr CPI.comp(QueryContext ctx)
           
 Expr CmpV.comp(QueryContext ctx)
           
 Expr CmpN.comp(QueryContext ctx)
           
 Expr CmpG.comp(QueryContext ctx)
           
 Expr Clc.comp(QueryContext ctx)
           
 Expr CElem.comp(QueryContext ctx)
           
 Expr CAttr.comp(QueryContext ctx)
           
 Expr Castable.comp(QueryContext ctx)
           
 Expr Cast.comp(QueryContext ctx)
           
 Expr Arr.comp(QueryContext ctx)
           
 Expr And.comp(QueryContext ctx)
           
abstract  boolean CmpV.Comp.e(Item a, Item b)
          Evaluates the expression.
abstract  boolean CmpN.Comp.e(Item a, Item b)
          Evaluates the expression.
 Item Expr.ebv(QueryContext ctx)
          Checks if the iterator can be dissolved into an effective boolean value.
abstract  Item Calc.ev(Item a, Item b)
          Performs the calculation.
static Expr Pos.get(Expr expr, CmpV.Comp cmp, Expr arg)
          Returns an instance of this class, if possible, and the input expression otherwise.
 void Or.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void Expr.indexAccessible(QueryContext ctx, IndexContext ic)
          Checks if an index can be used for query evaluation.
 void CmpG.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void And.indexAccessible(QueryContext ctx, IndexContext ic)
           
 Expr Or.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 Expr Expr.indexEquivalent(QueryContext ctx, IndexContext ic)
          Returns an equivalent expression which accesses an index structure.
 Expr Arr.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 Expr And.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 Iter VarCall.iter(QueryContext ctx)
           
 NodeIter Union.iter(QueryContext ctx)
           
 Iter TypeSwitch.iter(QueryContext ctx)
           
 Iter Treat.iter(QueryContext ctx)
           
 Iter Root.iter(QueryContext ctx)
           
 Iter Range.iter(QueryContext ctx)
           
 Iter Pred.iter(QueryContext ctx)
           
 Iter InterSect.iter(QueryContext ctx)
           
 Iter If.iter(QueryContext ctx)
           
 Iter FunCall.iter(QueryContext ctx)
           
 Iter FLWOR.iter(QueryContext ctx)
           
 Iter Expr.iter(QueryContext ctx)
          Evaluates the expression and returns an iterator on the resulting items.
 NodeIter Except.iter(QueryContext ctx)
           
 Iter Context.iter(QueryContext ctx)
           
 Iter Catch.iter(QueryContext ctx, QueryException e)
          Catch iterator.
static QNm CAttr.name(QueryContext ctx, Item i)
          Returns an updated name expression.
 long[] Range.range(QueryContext ctx)
          Returns the start and end value of the range operator, or null if the range could not be evaluated.
 long Range.size(QueryContext ctx)
           
 long List.size(QueryContext ctx)
           
 long Expr.size(QueryContext ctx)
          Returns the sequence size or 1.
 Item Expr.test(QueryContext ctx)
          Performs a predicate test and returns the item if test was successful.
 

Uses of QueryException in org.basex.query.ft
 

Methods in org.basex.query.ft that throw QueryException
 Bln FTContainsSIndex.atomic(QueryContext ctx)
           
 Bln FTContains.atomic(QueryContext ctx)
           
 FTExpr FTWords.comp(QueryContext ctx)
           
 FTExpr FTPos.comp(QueryContext ctx)
           
 FTExpr FTOptions.comp(QueryContext ctx)
           
 FTExpr FTExpr.comp(QueryContext ctx)
           
 Expr FTContains.comp(QueryContext ctx)
           
 void FTPos.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTOr.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTOptions.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTNot.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTMildNot.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTContains.indexAccessible(QueryContext ctx, IndexContext ic)
           
 void FTAnd.indexAccessible(QueryContext ctx, IndexContext ic)
           
 FTExpr FTPos.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTOr.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTOptions.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTNot.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTMildNot.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTExpr.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 Expr FTContains.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTExpr FTAnd.indexEquivalent(QueryContext ctx, IndexContext ic)
           
 FTNodeIter FTWords.iter(QueryContext ctx)
           
 FTNodeIter FTPos.iter(QueryContext ctx)
           
 FTNodeIter FTOr.iter(QueryContext ctx)
           
 FTNodeIter FTOptions.iter(QueryContext ctx)
           
 FTNodeIter FTNot.iter(QueryContext ctx)
           
 FTNodeIter FTMildNot.iter(QueryContext ctx)
           
abstract  FTNodeIter FTExpr.iter(QueryContext ctx)
           
 FTNodeIter FTAnd.iter(QueryContext ctx)
           
 

Constructors in org.basex.query.ft that throw QueryException
FTMildNot(FTExpr... l)
          Constructor.
 

Uses of QueryException in org.basex.query.func
 

Methods in org.basex.query.func that throw QueryException
 Item FNSimple.atomic(QueryContext ctx)
           
 Item FNAggr.atomic(QueryContext ctx)
           
 Expr Fun.c(QueryContext ctx)
          Compiles the function.
 Expr FNSimple.c(QueryContext ctx)
           
 Expr FNAggr.c(QueryContext ctx)
           
 Expr Fun.comp(QueryContext ctx)
           
 void FNIndex.error(byte[] name)
          Finds similar function names for throwing an error message.
 Fun FNIndex.get(byte[] name, byte[] uri, Expr[] args)
          Returns the specified function.
 Iter FunJava.iter(QueryContext ctx)
           
 Iter FNSimple.iter(QueryContext ctx)
           
 

Uses of QueryException in org.basex.query.item
 

Methods in org.basex.query.item that throw QueryException
 Item Seq.atomic(QueryContext ctx)
           
 Item Item.atomic(QueryContext ctx)
           
 boolean QNm.bool()
           
 boolean Item.bool()
          Returns a boolean representation of the item.
 Item SeqType.cast(Item it, Expr expr, QueryContext ctx)
          Casts the specified item.
 Item SeqType.cast(Item item, QueryContext ctx)
          Casts the specified item.
 void Item.castErr(java.lang.Object val)
          Throws a cast error.
static boolean Bln.check(byte[] str)
          Checks if the specified value is a correct boolean string.
 double Str.dbl()
           
 double Nod.dbl()
           
 double Jav.dbl()
           
 double Item.dbl()
          Returns a double representation of the item.
 java.math.BigDecimal Str.dec()
           
 java.math.BigDecimal Nod.dec()
           
 java.math.BigDecimal Jav.dec()
           
 java.math.BigDecimal Item.dec()
          Returns a decimal representation of the item.
 java.math.BigDecimal Flt.dec()
           
 java.math.BigDecimal Dbl.dec()
           
 int YMd.diff(Item it)
           
 int Str.diff(Item it)
           
 int QNm.diff(Item it)
           
 int Nod.diff(Item i)
           
 int Jav.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 DSim.diff(Item it)
           
 int Dec.diff(Item it)
           
 int Dbl.diff(Item it)
           
 int Date.diff(Item it)
           
 int Bln.diff(Item it)
           
 int Atm.diff(Item it)
           
 Item Type.e(Item it, QueryContext ctx)
          Constructs a new item from the specified item.
 Item Type.e(java.lang.Object o)
          Constructs a new item from the specified Java object.
 Item Seq.ebv(QueryContext ctx)
           
 Item Item.ebv(QueryContext ctx)
           
 boolean Str.eq(Item it)
           
 boolean Seq.eq(Item it)
           
 boolean QNm.eq(Item it)
           
 boolean Nod.eq(Item i)
           
 boolean Jav.eq(Item it)
           
 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 Nod.flt()
           
 float Jav.flt()
           
 float Item.flt()
          Returns a float representation of the item.
static Dbl Dbl.get(byte[] v)
          Returns an instance of this class.
 boolean SeqType.instance(Iter iter)
          Checks the instance of the specified iterator.
 long Str.itr()
           
 long Nod.itr()
           
 long Jav.itr()
           
 long Item.itr()
          Returns an integer (long) representation of the item.
static float Flt.parse(byte[] val)
          Converts the given token into a double value.
static java.math.BigDecimal Dec.parse(byte[] val)
          Converts the given token into a decimal value.
static double Dbl.parse(byte[] val)
          Converts the given token into a double value.
static java.math.BigDecimal Dec.parse(double val)
          Converts the given double into a decimal value.
 QNm Nod.qname(QNm nm)
          Returns a temporary node name.
 Item Seq.test(QueryContext ctx)
           
 Item Item.test(QueryContext ctx)
           
 

Constructors in org.basex.query.item that throw QueryException
B64(byte[] d)
          Constructor.
Dat(byte[] d)
          Constructor.
Dat(Date d, Dur a, boolean p)
          Constructor.
DTd(Dur it, double f, boolean m)
          Constructor.
Dtm(byte[] dt)
          Constructor.
Dtm(Date d, Dur a, boolean p)
          Constructor.
Dur(byte[] v)
          Constructor.
Dur(byte[] v, Type t)
          Constructor.
Hex(byte[] v)
          Constructor.
NCN(byte[] v)
          Constructor.
QNm(byte[] n, QueryContext ctx)
          Constructor.
Tim(byte[] tim)
          Constructor.
Tim(Tim d, DTd a, boolean p)
          Constructor.
YMd(Dur it, double f, boolean m)
          Constructor.
 

Uses of QueryException in org.basex.query.iter
 

Methods in org.basex.query.iter that throw QueryException
 void SeqIter.add(Iter iter)
          Adds the contents of an iterator.
 Item Iter.finish()
          Returns a sequence from all iterator values.
static Iter SeqIter.get(Iter iter)
          Constructor.
abstract  Nod NodeIter.next()
           
abstract  Item Iter.next()
          Returns the next item or null if no other items are found.
abstract  FTNodeItem FTNodeIter.next()
           
 

Uses of QueryException in org.basex.query.path
 

Methods in org.basex.query.path that throw QueryException
 Expr AxisPath.addText(QueryContext ctx)
           
 boolean Test.comp(QueryContext ctx)
          Optimizes and compiles the expression.
 Expr Step.comp(QueryContext ctx)
           
 Expr SimpleIterStep.comp(QueryContext ctx)
           
 Expr Path.comp(QueryContext ctx)
           
 boolean NameTest.comp(QueryContext ctx)
           
 Expr MixedPath.comp(QueryContext ctx)
           
 Expr AxisPath.comp(QueryContext ctx)
           
abstract  boolean Test.eval(Nod nod)
          Tests the specified node.
 boolean NameTest.eval(Nod node)
           
 boolean KindTest.eval(Nod n)
           
 NodeIter Step.iter(QueryContext ctx)
           
 NodeIter SimpleIterStep.iter(QueryContext ctx)
           
 Iter MixedPath.iter(QueryContext ctx)
           
 Iter AxisPath.iter(QueryContext ctx)
           
 

Uses of QueryException in org.basex.query.util
 

Methods in org.basex.query.util that throw QueryException
 int Functions.add(Func fun)
          Adds a local function.
 void NSLocal.add(QNm name)
          Adds the specified namespace.
 Var Var.bind(Expr e, QueryContext ctx)
          Binds the specified expression to the variable.
 Var Var.bind(Item it, QueryContext ctx)
          Binds the specified item to the variable.
static void Err.cast(Type t, Item it)
          Throws a numeric type exception.
 void Functions.check()
          Checks if all functions have been correctly initialized.
static void Err.cmp(Item it1, Item it2)
          Throws a comparison exception.
 void Variables.comp(QueryContext ctx)
          Compiles the variables.
 Expr Var.comp(QueryContext ctx)
           
 void Functions.comp(QueryContext ctx)
          Compiles the functions.
static void Err.date(Type t, java.lang.String ex)
          Throws a date format exception.
static void Err.empty(Expr e)
          Throws a empty sequence exception.
 void Functions.funError(QNm name)
          Finds similar function names and throws an error message.
 Expr Functions.get(QNm name, Expr[] args)
          Returns the specified function.
 boolean ItemSet.index(Item i)
          Indexes the specified item.
 Item Var.item(QueryContext ctx)
          Evaluates the variable.
 Iter Var.iter(QueryContext ctx)
           
static void Err.nodes(Expr ex)
          Throws a node exception.
static void Err.num(java.lang.String inf, Item it)
          Throws a numeric type exception.
static void Err.or(java.lang.Object[] err, java.lang.Object... x)
          Throws an exception.
static void Err.range(Type t, byte[] v)
          Throws a date range exception.
static void Err.type(java.lang.String inf, Type t, Item it)
          Throws a type exception.
static void Functions.typeErr(QNm type)
          Throws an error for the specified name.
 byte[] NSLocal.uri(byte[] pre)
          Finds the uri for the specified prefix in the local and global namespaces.
static void Err.value(Type t, java.lang.Object v)
          Throws an invalid value exception.