Package org.basex.query.value.type
Class ArrayType
java.lang.Object
org.basex.query.value.type.FuncType
org.basex.query.value.type.ArrayType
- All Implemented Interfaces:
Type
Type for arrays.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncast(Item item, QueryContext qc, StaticContext sc, InputInfo ii) Casts the specified item to this type.booleanChecks if this type is equal to the given one.static ArrayTypeCreates a new array type.booleaninstanceOf(Type type) Checks if the current type is an instance of the specified type.Computes the intersection between this type and the given one, i.e.toString()Computes the union between this type and the given one, i.e.Methods inherited from class org.basex.query.value.type.FuncType
atomic, cast, castString, find, get, get, get, id, isNumber, isNumberOrUntyped, isSortable, isStringOrUntyped, isUntyped, nsSensitive, seqType, similar
-
Field Details
-
ARRAY
public static final byte[] ARRAYName.
-
-
Method Details
-
cast
public XQArray cast(Item item, QueryContext qc, StaticContext sc, InputInfo ii) throws QueryException Description copied from interface:TypeCasts the specified item to this type.- Specified by:
castin interfaceType- Overrides:
castin classFuncType- Parameters:
item- item to be convertedqc- query contextsc- static contextii- input info- Returns:
- cast value
- Throws:
QueryException- query exception
-
eq
Description copied from interface:TypeChecks if this type is equal to the given one. -
instanceOf
Description copied from interface:TypeChecks if the current type is an instance of the specified type.- Specified by:
instanceOfin interfaceType- Overrides:
instanceOfin classFuncType- Parameters:
type- type to be checked- Returns:
- result of check
-
union
Description copied from interface:TypeComputes the union between this type and the given one, i.e. the least common ancestor of both types in the type hierarchy. -
intersect
Description copied from interface:TypeComputes the intersection between this type and the given one, i.e. the least specific type that is sub-type of both types. If no such type exists,nullis returned. -
get
Creates a new array type.- Parameters:
declType- declared return type- Returns:
- array type
-
toString
-