| Package | Description |
|---|---|
| org.basex.query |
XQuery implementation.
|
| org.basex.query.expr |
XQuery expressions.
|
| org.basex.query.func |
XQuery functions.
|
| org.basex.query.item |
XQuery data types.
|
| org.basex.query.util |
XQuery utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
SeqType |
StaticContext.initType
Context item static type.
|
| Modifier and Type | Method and Description |
|---|---|
Var |
QueryContext.uniqueVar(InputInfo ii,
SeqType type)
Creates a variable with a unique, non-clashing variable name.
|
| Modifier and Type | Field and Description |
|---|---|
SeqType |
ParseExpr.type
Static type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SeqType |
Expr.type()
Returns the sequence type of the evaluated value.
|
SeqType |
ParseExpr.type() |
| Constructor and Description |
|---|
Cast(InputInfo ii,
Expr e,
SeqType t)
Function constructor.
|
Castable(InputInfo ii,
Expr e,
SeqType s)
Constructor.
|
Instance(InputInfo ii,
Expr e,
SeqType s)
Constructor.
|
Treat(InputInfo ii,
Expr e,
SeqType s)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
SeqType[] |
Function.args
Argument types.
|
SeqType |
UserFunc.ret
Return type.
|
| Constructor and Description |
|---|
InlineFunc(InputInfo ii,
SeqType r,
Var[] v,
Expr e,
Ann a)
Constructor.
|
UserFunc(InputInfo ii,
QNm n,
Var[] v,
SeqType r,
Ann a)
Function constructor.
|
UserFunc(InputInfo ii,
QNm n,
Var[] v,
SeqType r,
Ann a,
boolean d)
Function constructor.
|
| Modifier and Type | Field and Description |
|---|---|
static SeqType |
SeqType.AAT
Zero or one xs:anyAtomicType.
|
static SeqType |
SeqType.AAT_ZM
Zero or more xs:anyAtomicType.
|
static SeqType |
SeqType.AAT_ZO
Zero or one xs:anyAtomicType.
|
SeqType[] |
FuncType.args
Argument types.
|
static SeqType |
SeqType.B64
Single xs:base64Binary.
|
static SeqType |
SeqType.BLN
Single xs:boolean.
|
static SeqType |
SeqType.BLN_ZO
Zero or one xs:boolean.
|
static SeqType |
SeqType.BYT_ZM
Zero or more bytes.
|
static SeqType |
SeqType.DAT
Single date.
|
static SeqType |
SeqType.DAT_ZO
Zero or one date.
|
static SeqType |
SeqType.DBL
Double number.
|
static SeqType |
SeqType.DBL_ZM
Double number.
|
static SeqType |
SeqType.DBL_ZO
Zero or one double.
|
static SeqType |
SeqType.DEC_ZO
Zero or one decimal number.
|
static SeqType |
SeqType.DOC_O
One document node.
|
static SeqType |
SeqType.DOC_ZM
Zero or more document node.
|
static SeqType |
SeqType.DOC_ZO
Zero or one document node.
|
static SeqType |
SeqType.DTD
One day-time-duration.
|
static SeqType |
SeqType.DTD_ZO
Zero or one day-time-duration.
|
static SeqType |
SeqType.DTM
One date-time.
|
static SeqType |
SeqType.DTM_ZO
Zero or one date-time.
|
static SeqType |
SeqType.DUR_ZO
Zero or one duration.
|
static SeqType |
SeqType.ELM
One element node.
|
static SeqType |
SeqType.ELM_ZM
Zero or more element nodes.
|
static SeqType |
SeqType.EMP
Zero items.
|
static SeqType |
SeqType.FUN_O
Single function.
|
static SeqType |
SeqType.HEX
One xs:hexBinary.
|
static SeqType |
SeqType.ITEM
Single item.
|
static SeqType |
SeqType.ITEM_OM
One or more items.
|
static SeqType |
SeqType.ITEM_ZM
Zero or more items.
|
static SeqType |
SeqType.ITEM_ZO
Zero or one item.
|
static SeqType |
SeqType.ITR
Single number; for simplicity, numbers are summarized by this type.
|
static SeqType |
SeqType.ITR_OM
One or more numbers.
|
static SeqType |
SeqType.ITR_ZM
Zero or more numbers.
|
static SeqType |
SeqType.ITR_ZO
Zero or one number.
|
static SeqType |
SeqType.MAP_O
Single function.
|
static SeqType |
SeqType.MAP_ZM
Single function.
|
static SeqType |
SeqType.NCN_ZO
Zero or one NCName.
|
static SeqType |
SeqType.NOD
Single node.
|
static SeqType |
SeqType.NOD_OM
One or more nodes.
|
static SeqType |
SeqType.NOD_ZM
Zero or more nodes.
|
static SeqType |
SeqType.NOD_ZO
Zero or one nodes.
|
static SeqType |
SeqType.QNM
Single QName.
|
static SeqType |
SeqType.QNM_ZO
Zero or one QNames.
|
SeqType |
FuncType.ret
Return type.
|
static SeqType |
SeqType.STR
Single string.
|
static SeqType |
SeqType.STR_ZM
Zero or more strings.
|
static SeqType |
SeqType.STR_ZO
Zero or one strings.
|
static SeqType |
SeqType.TIM
One time.
|
static SeqType |
SeqType.TIM_ZO
Zero or one time.
|
static SeqType |
SeqType.URI
Single URI.
|
static SeqType |
SeqType.URI_ZM
Zero or more URIs.
|
static SeqType |
SeqType.URI_ZO
Zero or one URIs.
|
| Modifier and Type | Method and Description |
|---|---|
static SeqType |
SeqType.get(Type t,
long o)
Returns a sequence type.
|
static SeqType |
SeqType.get(Type t,
SeqType.Occ o)
Returns a sequence type.
|
static SeqType |
SeqType.get(Type t,
SeqType.Occ o,
Test k)
Returns a sequence type.
|
SeqType |
SeqType.intersect(SeqType t)
Combine two sequence types.
|
SeqType |
NodeType.seqType() |
SeqType |
Type.seqType()
Returns the sequence type of this data type.
|
SeqType |
AtomType.seqType() |
SeqType |
FuncType.seqType() |
SeqType |
Empty.type() |
SeqType |
IntSeq.type() |
SeqType |
ItemSeq.type() |
SeqType |
RangeSeq.type() |
SeqType |
DBNodeSeq.type() |
SeqType |
Item.type() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SeqType.eq(SeqType t)
Checks the types for equality.
|
static MapType |
MapType.get(AtomType key,
SeqType val)
Creates a new map type.
|
static FuncType |
FuncType.get(SeqType ret,
SeqType... args)
Getter for function types.
|
static FuncType |
FuncType.get(SeqType ret,
SeqType... args)
Getter for function types.
|
boolean |
SeqType.instance(SeqType t)
Checks if the specified SeqType is an instance of the current SeqType.
|
SeqType |
SeqType.intersect(SeqType t)
Combine two sequence types.
|
| Modifier and Type | Field and Description |
|---|---|
SeqType |
Var.ret
Expected return type.
|
| Modifier and Type | Method and Description |
|---|---|
SeqType |
TypedFunc.ret()
Gets the function's return type.
|
SeqType |
Var.type() |
| Modifier and Type | Method and Description |
|---|---|
static TypedFunc |
TypedFunc.constr(Cast cast,
SeqType to)
Creates a type constructor function.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
SeqType t,
Ann a)
Creates a new variable.
|
static QueryException |
Err.promote(InputInfo ii,
SeqType t,
Value v)
Throws a type promoting exception.
|
void |
Var.reset(SeqType t,
QueryContext ctx)
Sets the specified variable type.
|