Modifier and Type | Method and Description |
---|---|
void |
AdaptiveSerializer.serialize(Value value)
Serializes a value.
|
Modifier and Type | Field and Description |
---|---|
Value |
QueryContext.value
Current context value.
|
Modifier and Type | Method and Description |
---|---|
Value |
QueryResources.collection(InputInfo info)
Returns the default collection.
|
Value |
QueryResources.collection(QueryInput qi,
IO baseIO,
InputInfo info)
Evaluates
fn:collection() : opens an existing database collection, or creates
a new data reference. |
Value |
QueryContext.get(Var var)
Gets the value currently bound to the given variable.
|
Value[] |
QueryContext.pollTailArgs()
Returns and clears registered arguments of a tail-called function.
|
Value |
QueryProcessor.value()
Returns a result value.
|
Value |
QueryException.value()
Returns the error value.
|
Value |
QueryContext.value(Expr expr)
Evaluates the specified expression and returns a value.
|
Modifier and Type | Method and Description |
---|---|
QueryProcessor |
QueryProcessor.bind(String name,
Value value)
Binds an XQuery value to a global variable.
|
void |
QueryContext.bind(String name,
Value val,
StaticContext sc)
Binds a value to a global variable.
|
static QueryException |
QueryError.castError(InputInfo ii,
Value value,
Type type)
Throws a type cast exception.
|
QueryProcessor |
QueryProcessor.context(Value value)
Binds the context value.
|
void |
QueryContext.context(Value val,
StaticContext sc)
Binds the context value.
|
void |
QueryContext.registerTailCall(XQFunction fn,
Value[] arg)
Registers a tail-called function and its arguments to this query context.
|
void |
QueryContext.set(Var vr,
Value vl,
InputInfo ii)
Binds an expression to a local variable.
|
static QueryException |
QueryError.treatError(InputInfo ii,
Value value,
SeqType seqType)
Throws a type promoting exception.
|
QueryException |
QueryException.value(Value val)
Sets the error value.
|
Modifier and Type | Method and Description |
---|---|
Value |
ParseExpr.atomValue(QueryContext qc,
InputInfo ii) |
abstract Value |
Expr.atomValue(QueryContext qc,
InputInfo ii)
Evaluates the expression and returns the atomized items.
|
protected Value |
ParseExpr.ctxValue(QueryContext qc)
Returns the current context value or throws an exception if the context value is not set.
|
Value |
XQFunction.invokeValue(QueryContext qc,
InputInfo ii,
Value... args)
Invokes this function with the given arguments.
|
Value |
XQFunction.invValue(QueryContext qc,
InputInfo ii,
Value... args)
Internally invokes this function with the given arguments.
|
Value |
TypeCheck.value(QueryContext qc) |
Value |
Try.value(QueryContext qc) |
Value |
Treat.value(QueryContext qc) |
Value |
Switch.value(QueryContext qc) |
Value |
Range.value(QueryContext qc) |
Value |
ParseExpr.value(QueryContext qc) |
Value |
List.value(QueryContext qc) |
Value |
If.value(QueryContext qc) |
Value |
Extension.value(QueryContext qc) |
abstract Value |
Expr.value(QueryContext qc)
Evaluates the expression and returns the resulting value.
|
Value |
Context.value(QueryContext qc) |
Value |
Cast.value(QueryContext qc) |
static Value[] |
Catch.values(QueryException ex)
Returns all error values.
|
Modifier and Type | Method and Description |
---|---|
Item |
XQFunction.invItem(QueryContext qc,
InputInfo ii,
Value... args)
Internally invokes this function with the given arguments.
|
Item |
XQFunction.invokeItem(QueryContext qc,
InputInfo ii,
Value... args)
Invokes this function with the given arguments.
|
Value |
XQFunction.invokeValue(QueryContext qc,
InputInfo ii,
Value... args)
Invokes this function with the given arguments.
|
Value |
XQFunction.invValue(QueryContext qc,
InputInfo ii,
Value... args)
Internally invokes this function with the given arguments.
|
static ANode |
Root.root(Value v)
Returns the root node of the specified item.
|
Constructor and Description |
---|
FTWords(InputInfo info,
Data data,
Value query,
FTMode mode)
Constructor for index-based evaluation.
|
Modifier and Type | Method and Description |
---|---|
Value |
GFLWOR.Clause.value(QueryContext qc)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Value |
Path.initial(QueryContext qc,
Expr root)
Returns a context value for the given root, or
null . |
Modifier and Type | Method and Description |
---|---|
Expr |
Path.index(QueryContext qc,
Value rt)
Returns an equivalent expression which accesses an index.
|
Modifier and Type | Method and Description |
---|---|
Value |
StaticFunc.invokeValue(QueryContext qc,
InputInfo ii,
Value... arg) |
Value |
StaticFunc.invValue(QueryContext qc,
InputInfo ii,
Value... arg) |
static Value |
JavaMapping.toValue(Object obj,
QueryContext qc,
StaticContext sc)
Converts the specified result to an XQuery value.
|
Value |
PartFunc.value(QueryContext qc) |
Value |
JavaMapping.value(QueryContext qc) |
Value |
FuncCall.value(QueryContext qc) |
Value |
Closure.value(QueryContext qc) |
static Value |
FuncCall.value(XQFunction fun,
Value[] arg,
QueryContext qc,
InputInfo ii)
Calls the given function with the given arguments, returning zero or more items.
|
Modifier and Type | Method and Description |
---|---|
protected HashMap<String,Value> |
StandardFunc.toBindings(int i,
QueryContext qc)
Returns all keys and values of the specified binding argument.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
JavaMapping.eval(Value[] args,
QueryContext qc)
Returns the result of the evaluated Java function.
|
Item |
StaticFunc.invItem(QueryContext qc,
InputInfo ii,
Value... arg) |
Item |
StaticFunc.invokeItem(QueryContext qc,
InputInfo ii,
Value... arg) |
Value |
StaticFunc.invokeValue(QueryContext qc,
InputInfo ii,
Value... arg) |
Value |
StaticFunc.invValue(QueryContext qc,
InputInfo ii,
Value... arg) |
static Item |
FuncCall.item(XQFunction fun,
Value[] arg,
QueryContext qc,
InputInfo ii)
Calls the given function with the given arguments, returning zero or one item.
|
static Value |
FuncCall.value(XQFunction fun,
Value[] arg,
QueryContext qc,
InputInfo ii)
Calls the given function with the given arguments, returning zero or more items.
|
Modifier and Type | Method and Description |
---|---|
Value |
ArrayHead.value(QueryContext qc) |
Value |
ArrayGet.value(QueryContext qc) |
Value |
ArrayFoldRight.value(QueryContext qc) |
Value |
ArrayFoldLeft.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
BinToOctets.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
ClientQuery.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
ConvertBinaryToBytes.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
DbOpen.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
FnUriCollection.value(QueryContext qc) |
Value |
FnUnparsedTextLines.value(QueryContext qc) |
Value |
FnTokenize.value(QueryContext qc) |
Value |
FnTail.value(QueryContext qc) |
Value |
FnSubsequence.value(QueryContext qc) |
Value |
FnStringToCodepoints.value(QueryContext qc) |
Value |
FnSort.value(QueryContext qc) |
Value |
FnReverse.value(QueryContext qc) |
Value |
FnRemove.value(QueryContext qc) |
Value |
FnOneOrMore.value(QueryContext qc) |
Value |
FnDistinctValues.value(QueryContext qc) |
Value |
FnData.value(QueryContext qc) |
Value |
FnCollection.value(QueryContext qc) |
Value |
FnApply.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
boolean |
Compare.equal(Value value1,
Value value2)
Checks values for deep equality.
|
Modifier and Type | Method and Description |
---|---|
Value |
FtTokenize.value(QueryContext qc) |
Value |
FtScore.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
HofUntil.value(QueryContext qc) |
Value |
HofTopKWith.value(QueryContext qc) |
Value |
HofTopKBy.value(QueryContext qc) |
Value |
HofSortWith.value(QueryContext qc) |
Value |
HofId.value(QueryContext qc) |
Value |
HofFoldLeft1.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
static Value |
HttpPayload.value(IO in,
MainOptions opts,
String ctype,
String ext)
Returns an XQuery value for the specified content type.
|
Modifier and Type | Method and Description |
---|---|
HashMap<String,Value> |
HttpPayload.multiForm(String ext)
Returns a map with multipart form data.
|
Modifier and Type | Method and Description |
---|---|
Value |
MapKeys.value(QueryContext qc) |
Value |
MapGet.value(QueryContext qc) |
Value |
MapForEach.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
StreamMaterialize.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
UserListDetails.value(QueryContext qc) |
Value |
UserList.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
ValidateXsdInfo.value(QueryContext qc) |
Value |
ValidateXsd.value(QueryContext qc) |
Value |
ValidateDtdInfo.value(QueryContext qc) |
Value |
ValidateDtd.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
XQueryType.value(QueryContext qc) |
Value |
XQueryEval.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
abstract Value |
ValueIter.value() |
Value |
ValueBuilder.value()
Returns the cached items as value.
|
Value |
NodeSeqBuilder.value() |
Value |
Iter.value()
Returns a value with all iterated items.
|
Modifier and Type | Method and Description |
---|---|
ValueBuilder |
ValueBuilder.add(Value value)
Adds the contents of a value.
|
Modifier and Type | Method and Description |
---|---|
Value |
Transform.value(QueryContext qc) |
Value |
Modify.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
ItemValueMap.get(Item key,
InputInfo ii)
Returns the value for the specified key.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Value> |
ItemValueMap.values()
Returns a value iterator.
|
Modifier and Type | Method and Description |
---|---|
void |
ItemValueMap.add(Item key,
Value value,
InputInfo ii)
Indexes the specified key and stores the associated value.
|
Modifier and Type | Method and Description |
---|---|
Value[] |
ValueList.finish()
Returns an array with all elements and invalidates the internal array.
|
Value |
ValueList.get(int p)
Returns the specified element.
|
Value |
ANodeList.value()
Returns an array with all elements.
|
Modifier and Type | Method and Description |
---|---|
ValueList |
ValueList.add(Value element)
Adds an element to the array.
|
Constructor and Description |
---|
ValueList(Value element)
Constructor, specifying an initial entry.
|
Modifier and Type | Method and Description |
---|---|
abstract Value |
Value.atomValue(InputInfo ii)
Evaluates the expression and returns the atomized items.
|
Value |
Value.atomValue(QueryContext qc,
InputInfo ii) |
Value |
Value.compile(QueryContext qc,
VarScope scp) |
Value |
Value.copy(QueryContext qc,
VarScope scp,
IntObjMap<Var> vs) |
abstract Value |
Value.materialize(InputInfo ii)
Materializes streamable values, or returns a self reference.
|
Value |
Value.value(QueryContext qc) |
Modifier and Type | Class and Description |
---|---|
class |
Array
Array item.
|
Modifier and Type | Method and Description |
---|---|
Value |
Array.atomValue(InputInfo ii) |
Value |
Array.get(int index)
Returns the member at the specified index.
|
Value |
Array.get(Item key,
InputInfo ii)
Gets the value from this array.
|
Value |
Array.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Modifier and Type | Method and Description |
---|---|
ArrayIterator<Value> |
Array.members()
Returns a member iterator.
|
Modifier and Type | Method and Description |
---|---|
static Array |
Array.get(Value... members)
Returns an instance of this class.
|
Item |
Array.invItem(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
Array.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Modifier and Type | Class and Description |
---|---|
class |
ADate
Abstract super class for date items.
|
class |
ADateDur
Abstract super class for dates and durations.
|
class |
ANum
Abstract super class for all numeric items.
|
class |
AStr
Abstract string item.
|
class |
Atm
Untyped atomic item (
xs:untypedAtomic ). |
class |
B64
Base64 item (
xs:base64Binary ). |
class |
B64Stream
Streamable base64 item (
xs:base64Binary ). |
class |
Bin
Abstract class for binary items.
|
class |
Bln
Boolean item (
xs:boolean ). |
class |
Dat
Date item (
xs:date ). |
class |
Dbl
Double item (
xs:double ). |
class |
Dec
Decimal item (
xs:decimal ). |
class |
DTDur
DayTime Duration item (
xs:dayTimeDuration ). |
class |
Dtm
DateTime item (
xs:dateTime ). |
class |
Dur
Duration item (
xs:duration ). |
class |
FItem
Abstract super class for function items.
|
class |
Flt
Float item (
xs:float ). |
class |
FuncItem
Function item.
|
class |
GDt
Simple date item, used for
xs:gYearMonth , xs:gYear ,
xs:gMonthDay , xs:gDay and xs:gMonth . |
class |
Hex
HexBinary item (
xs:hexBinary ). |
class |
Int
Integer item (
xs:int , xs:integer , xs:short , etc.). |
class |
Item
Abstract super class for all items.
|
class |
Jav
Java item.
|
class |
QNm
QName item (
xs:QName ). |
class |
Str
String item (
xs:string , xs:normalizedString , xs:language , etc.). |
class |
StrStream
Streamable string item (
xs:string ). |
class |
Tim
Time item (
xs:time ). |
class |
Uln
Unsigned long (
xs:unsignedLong ). |
class |
Uri
URI item (
xs:anyURI ). |
class |
YMDur
YearMonth duration (
xs:yearMonthDuration ). |
Modifier and Type | Method and Description |
---|---|
Value |
Item.atomValue(InputInfo ii) |
Value |
FItem.invokeValue(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
FuncItem.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Item |
FuncItem.invItem(QueryContext qc,
InputInfo ii,
Value... args) |
Item |
FItem.invokeItem(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
FItem.invokeValue(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
FuncItem.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Constructor and Description |
---|
FuncItem(StaticContext sc,
AnnList anns,
QNm name,
Var[] params,
FuncType type,
Expr expr,
Value ctxValue,
long pos,
long size,
int stackSize)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
Map
The map item.
|
Modifier and Type | Method and Description |
---|---|
Value |
Map.get(Item key,
InputInfo ii)
Gets the value from this map.
|
Value |
Map.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
Map.keys()
All keys defined in this map.
|
Modifier and Type | Method and Description |
---|---|
Item |
Map.invItem(QueryContext qc,
InputInfo ii,
Value... args) |
Value |
Map.invValue(QueryContext qc,
InputInfo ii,
Value... args) |
Map |
Map.put(Item key,
Value value,
InputInfo ii)
Puts the given value into this map and replaces existing keys.
|
Modifier and Type | Class and Description |
---|---|
class |
ANode
Abstract node type.
|
class |
DBNode
Database node.
|
class |
FAttr
Attribute node fragment.
|
class |
FComm
Comment node fragment.
|
class |
FDoc
Document node fragment.
|
class |
FElem
Element node fragment.
|
class |
FNames
Namespace node.
|
class |
FNode
Main-memory node fragment.
|
class |
FPI
PI node fragment.
|
class |
FTNode
Disk-based full-text Node item.
|
class |
FTPosNode
Database node with full-text positions.
|
class |
FTxt
Text node fragment.
|
Modifier and Type | Method and Description |
---|---|
Value |
DBNode.copy(QueryContext qc,
VarScope scp,
IntObjMap<Var> vs) |
Modifier and Type | Class and Description |
---|---|
class |
BlnSeq
Sequence of items of type
xs:boolean , containing at least two of them. |
class |
BytSeq
Sequence of items of type
xs:byte , containing at least two of them. |
class |
DblSeq
Sequence of items of type
xs:double , containing at least two of them. |
class |
DBNodeSeq
Sequence, containing at least two ordered database nodes.
|
class |
DecSeq
Sequence of items of type
xs:decimal , containing at least two of them. |
class |
Empty
Empty sequence.
|
class |
FltSeq
Sequence of items of type
xs:float , containing at least two of them. |
class |
IntSeq
Sequence of items of type
xs:integer , containing at least two of them. |
class |
RangeSeq
Range sequence, containing at least two integers.
|
class |
Seq
Sequence, containing at least two items.
|
class |
StrSeq
Sequence of items of type
xs:string , containing at least two of them. |
class |
SubSeq
A sequence that defines a sub-range of another sequence.
|
Modifier and Type | Method and Description |
---|---|
Value |
SubSeq.atomValue(InputInfo ii) |
Value |
RangeSeq.atomValue(InputInfo ii) |
Value |
Empty.atomValue(InputInfo ii) |
Value |
DBNodeSeq.atomValue(InputInfo ii) |
static Value |
BlnSeq.get(boolean[] items)
Creates a sequence with the specified items.
|
static Value |
BytSeq.get(byte[] items)
Creates a sequence with the specified items.
|
static Value |
StrSeq.get(byte[][] items)
Creates a sequence with the specified items.
|
static Value |
DblSeq.get(double[] items)
Creates a sequence with the specified items.
|
static Value |
FltSeq.get(float[] items)
Creates a sequence with the specified items.
|
static Value |
DBNodeSeq.get(IntList pres,
Data data,
boolean docs,
boolean all)
Creates a node sequence with the given data reference and pre values.
|
static Value |
Seq.get(Item[] value)
Returns a value representation of the specified items.
|
static Value |
Seq.get(Item[] value,
int size)
Returns a value representation of the specified items.
|
static Value |
Seq.get(Item[] value,
int size,
Type type)
Returns a value representation of the specified items.
|
static Value |
IntSeq.get(long[] items,
Type type)
Creates a sequence with the specified items.
|
static Value |
RangeSeq.get(long min,
long size,
boolean asc)
Returns a value representation of the specified items.
|
static Value |
StrSeq.get(TokenList items)
Creates a sequence with the specified items.
|
static Value |
StrSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
FltSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
DecSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
DblSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
BytSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
BlnSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
IntSeq.get(Value[] values,
int size,
Type type)
Creates a sequence with the items in the specified expressions.
|
static Value |
SubSeq.get(Value val,
long from,
long len)
Factory method for subsequences.
|
Value |
SubSeq.materialize(InputInfo ii) |
Value |
RangeSeq.materialize(InputInfo ii) |
Value |
Empty.materialize(InputInfo ii) |
Value |
SubSeq.reverse() |
Value |
StrSeq.reverse() |
abstract Value |
Seq.reverse()
Returns a sequence in reverse order.
|
Value |
RangeSeq.reverse() |
Value |
IntSeq.reverse() |
Value |
FltSeq.reverse() |
Value |
DecSeq.reverse() |
Value |
DBNodeSeq.reverse() |
Value |
DblSeq.reverse() |
Value |
BytSeq.reverse() |
Value |
BlnSeq.reverse() |
Modifier and Type | Method and Description |
---|---|
static Value |
StrSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
FltSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
DecSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
DblSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
BytSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
BlnSeq.get(Value[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
static Value |
IntSeq.get(Value[] values,
int size,
Type type)
Creates a sequence with the items in the specified expressions.
|
static Value |
SubSeq.get(Value val,
long from,
long len)
Factory method for subsequences.
|
Modifier and Type | Method and Description |
---|---|
Value |
Type.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified item to this item type.
|
Value |
ListType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
SeqType.cast(Item it,
QueryContext qc,
StaticContext sc,
InputInfo info,
boolean error)
Tries to cast the given item to this sequence type.
|
Value |
Type.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified Java value to this item type.
|
Value |
ListType.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
SeqType.cast(Value val,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts a sequence to this type.
|
Value |
Type.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified string to this item type.
|
Value |
ListType.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
SeqType.promote(QueryContext qc,
StaticContext sc,
InputInfo ii,
Value value,
boolean opt)
Promotes a value to the type of this sequence type.
|
Modifier and Type | Method and Description |
---|---|
Value |
SeqType.cast(Value val,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts a sequence to this type.
|
boolean |
SeqType.instance(Value val)
Matches a value against this sequence type.
|
Value |
SeqType.promote(QueryContext qc,
StaticContext sc,
InputInfo ii,
Value value,
boolean opt)
Promotes a value to the type of this sequence type.
|
void |
SeqType.treat(Value val,
InputInfo ii)
Checks the specified value for this sequence type.
|
Modifier and Type | Method and Description |
---|---|
Value |
Var.checkType(Value val,
QueryContext qc,
InputInfo ii,
boolean opt)
Checks the type of this value and casts/promotes it when necessary.
|
Value |
QueryStack.get(Var var)
Gets the value bound to the given variable in the current stack frame.
|
Value |
VarRef.value(QueryContext qc) |
Modifier and Type | Method and Description |
---|---|
Value |
Var.checkType(Value val,
QueryContext qc,
InputInfo ii,
boolean opt)
Checks the type of this value and casts/promotes it when necessary.
|
void |
QueryStack.set(Var var,
Value val,
QueryContext qc,
InputInfo ii)
Sets the value of the given variable in the current stack frame.
|
Modifier and Type | Method and Description |
---|---|
void |
Variables.bindExternal(QueryContext qc,
HashMap<QNm,Value> bindings)
Binds all external variables.
|
Copyright © 2005–2015 BaseX Team. All rights reserved.