|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.value.type.FuncType
org.basex.query.value.type.MapType
public final class MapType
Type for maps.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.basex.query.value.type.Type |
---|
Type.ID |
Field Summary | |
---|---|
AtomType |
keyType
Key type of the map. |
Fields inherited from class org.basex.query.value.type.FuncType |
---|
ann, ANY_FUN, args, type |
Method Summary | |
---|---|
Map |
cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type. |
boolean |
eq(Type t)
Checks if this type is equal to the given one. |
static MapType |
get(AtomType key,
SeqType val)
Creates a new map type. |
boolean |
instanceOf(Type t)
Checks if the current type is an instance of the specified type. |
MapType |
intersect(Type t)
Computes the intersection between this type and the given one, i.e. |
byte[] |
string()
Returns the string representation of this type. |
java.lang.String |
toString()
|
Type |
union(Type t)
Computes the union between this type and the given one, i.e. |
Methods inherited from class org.basex.query.value.type.FuncType |
---|
args, arity, cast, castString, find, get, get, get, id, isNode, isNumber, isNumberOrUntyped, isStringOrUntyped, isUntyped, nsSensitive, seqType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final AtomType keyType
Method Detail |
---|
public byte[] string()
Type
string
in interface Type
string
in class FuncType
public Map cast(Item it, QueryContext ctx, InputInfo ii) throws QueryException
Type
cast
in interface Type
cast
in class FuncType
it
- item to be convertedctx
- query contextii
- input info
QueryException
- query exceptionpublic boolean eq(Type t)
Type
eq
in interface Type
eq
in class FuncType
t
- other type
true
if both types are equal, false
otherwisepublic boolean instanceOf(Type t)
Type
instanceOf
in interface Type
instanceOf
in class FuncType
t
- type to be checked
public Type union(Type t)
Type
union
in interface Type
union
in class FuncType
t
- other type
public MapType intersect(Type t)
Type
null
is
returned.
intersect
in interface Type
intersect
in class FuncType
t
- other type
null
public static MapType get(AtomType key, SeqType val)
key
- key typeval
- value type
public java.lang.String toString()
toString
in interface Type
toString
in class FuncType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |