Package | Description |
---|---|
org.basex.api.client |
Client sessions.
|
org.basex.query |
XQuery implementation.
|
org.basex.query.expr |
XQuery expressions.
|
org.basex.query.expr.path |
XQuery path expressions.
|
org.basex.query.value |
XQuery values.
|
org.basex.query.value.item | |
org.basex.query.value.seq | |
org.basex.query.value.type |
Modifier and Type | Method and Description |
---|---|
Type |
Query.type()
Returns the XQuery type of the current item (must be called after
Query.next() . |
Modifier and Type | Method and Description |
---|---|
static QueryException |
QueryError.castError(InputInfo ii,
Value value,
Type type)
Throws a type cast exception.
|
static QueryException |
QueryError.funCastError(InputInfo ii,
Type type,
Object value)
Throws a type cast exception.
|
static QueryException |
QueryError.valueError(InputInfo ii,
Type type,
byte[] value)
Throws an invalid value exception.
|
Modifier and Type | Method and Description |
---|---|
static Type |
Calc.type(Type t1,
Type t2)
Returns the numeric type with the highest precedence.
|
Modifier and Type | Method and Description |
---|---|
protected Item |
ParseExpr.checkAtomic(Expr ex,
QueryContext qc,
Type type)
Checks if the specified expression yields an item of the specified atomic type.
|
protected Item |
ParseExpr.checkNoEmpty(Item it,
Type type)
Checks if the specified item is no empty sequence.
|
protected Item |
ParseExpr.checkType(Item it,
Type type)
Checks if the specified expression is an empty sequence; if yes, throws
an exception.
|
static Type |
Calc.type(Type t1,
Type t2)
Returns the numeric type with the highest precedence.
|
Constructor and Description |
---|
NodeTest(NodeType type,
QNm name,
Type ext,
boolean strip)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
Type |
Value.type
Item type.
|
Constructor and Description |
---|
Value(Type type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Int |
Int.get(long value,
Type type)
Returns an instance of this class.
|
Constructor and Description |
---|
GDt(ADate date,
Type type)
Constructor.
|
GDt(byte[] date,
Type type,
InputInfo ii)
Constructor.
|
Int(long value,
Type type)
Constructor.
|
Item(Type type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 |
IntSeq.get(Value[] values,
int size,
Type type)
Creates a sequence with the items in the specified expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayType
Type for arrays.
|
class |
AtomType
XQuery atomic types.
|
class |
FuncType
XQuery 3.0 function types.
|
class |
ListType
XQuery list types.
|
class |
MapType
Type for maps.
|
class |
NodeType
XQuery node types.
|
Modifier and Type | Field and Description |
---|---|
Type |
SeqType.type
Item type.
|
Modifier and Type | Method and Description |
---|---|
static Type |
FuncType.find(QNm type)
Finds and returns the specified function type.
|
static Type |
Type.ID.getType(byte b)
Gets the type instance for the given ID.
|
Type |
Type.intersect(Type type)
Computes the intersection between this type and the given one, i.e. the least
specific type that is sub-type of both types.
|
Type |
ListType.intersect(Type t) |
Type |
FuncType.intersect(Type t) |
Type |
AtomType.intersect(Type t) |
Type |
Type.union(Type type)
Computes the union between this type and the given one, i.e. the least common
ancestor of both types in the type hierarchy.
|
Type |
NodeType.union(Type t) |
Type |
MapType.union(Type t) |
Type |
ListType.union(Type t) |
Type |
FuncType.union(Type t) |
Type |
AtomType.union(Type t) |
Type |
ArrayType.union(Type t) |
Modifier and Type | Method and Description |
---|---|
boolean |
Type.eq(Type type)
Checks if this type is equal to the given one.
|
boolean |
NodeType.eq(Type t) |
boolean |
MapType.eq(Type t) |
boolean |
ListType.eq(Type t) |
boolean |
FuncType.eq(Type t) |
boolean |
AtomType.eq(Type t) |
boolean |
ArrayType.eq(Type t) |
static SeqType |
SeqType.get(Type type,
long occ)
Returns a sequence type.
|
static SeqType |
SeqType.get(Type type,
SeqType.Occ occ)
Returns a sequence type.
|
static SeqType |
SeqType.get(Type type,
SeqType.Occ occ,
Test kind)
Returns a sequence type.
|
boolean |
Type.instanceOf(Type type)
Checks if the current type is an instance of the specified type.
|
boolean |
NodeType.instanceOf(Type t) |
boolean |
MapType.instanceOf(Type t) |
boolean |
ListType.instanceOf(Type t) |
boolean |
FuncType.instanceOf(Type t) |
boolean |
AtomType.instanceOf(Type t) |
boolean |
ArrayType.instanceOf(Type t) |
Type |
Type.intersect(Type type)
Computes the intersection between this type and the given one, i.e. the least
specific type that is sub-type of both types.
|
NodeType |
NodeType.intersect(Type t) |
MapType |
MapType.intersect(Type t) |
Type |
ListType.intersect(Type t) |
Type |
FuncType.intersect(Type t) |
Type |
AtomType.intersect(Type t) |
ArrayType |
ArrayType.intersect(Type t) |
Type |
Type.union(Type type)
Computes the union between this type and the given one, i.e. the least common
ancestor of both types in the type hierarchy.
|
Type |
NodeType.union(Type t) |
Type |
MapType.union(Type t) |
Type |
ListType.union(Type t) |
Type |
FuncType.union(Type t) |
Type |
AtomType.union(Type t) |
Type |
ArrayType.union(Type t) |
Copyright © 2005–2015 BaseX Team. All rights reserved.