Changes

Jump to navigation Jump to search
7 bytes added ,  20:13, 20 January 2016
==Functions and Variables==
Both Java functions and variables and Java function are can be referenced and evaluated by usual the existing XQuery function callssyntax:
* The namespace of the function name identifies the Java class.
* The local part of the name, which is rewritten to camel case, identifies a variable or function of that class.
* The middle dot character (<code>[http://www.fileformat.info/info/unicode/char/b7/index.htm ·/&amp;#xB7;]</code>) is a valid character in XQuery names, but not in Java. It can be used to append exact Java parameter types to the function name:
|- valign="top"
| Variable
| <code>Q{java.lang.Integer}MIN_VALUE#0</code>
| <code>[https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html#MAX_VALUE Integer.MIN_VALUE]</code>
|- valign="top"
| Function
| <code>Q{java.lang.Object}hash-code#0()</code>| <code>[https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode() Object#object.hashCode()]</code>
|- valign="top"
| Function with types
| <code>Q{java.lang.String}split·java.lang.String·int#2(';', 3)</code>| <code>[https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-int- String#string.split(";", 3)]</code>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu