Changes

Jump to navigation Jump to search
42 bytes added ,  13:44, 9 July 2021
===Conversion to XQuery===
By default, Java values with the most common types (as shown in the second and third column of the table) are converted to XQuery values. All other values are returned as ''Java items'', which are function items with the an embedded Java value.
The conversion of an the embedded value to XQuery is enforced by invoking the function item: Values in {{Code|Iterator}} and {{Code|Iterable}} instances (Lists, Sets and Collections) are converted to items, and maps are converted to XQuery maps:
<syntaxhighlight lang="xquery">
<syntaxhighlight lang="xquery">
(: returns the string representation of the Java object :)
'Map: ' || Q{java.util.HashMap}new(),
string(Q{java:java.util.ArrayList}new())
</syntaxhighlight>
The implicit conversion can also be controlled with the {{Option|WRAPJAVA}} option. The following values exist:
{| class="wikitable"
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu