Revision [1590]

Last edited on 2010-11-20 06:40:40 by DavidLee
=====Function quote=====
This function is part of the core function set.
**quote** concatenates and quotes arguments
quote( arg [arg ...])
Concatenates arguments and quotes them using the standard Java quoting rules.
Double quotes surround the string. Any double quote or backslash (\\) characters in the string are escaped with a backslash (\\).
echo quote(Hi'"'There)
=====Function jnew=====
This function is part of the [[JavaObjects Java Objects]] support.
**jnew** creates a Java Object
jnew( classname [args ...] )
jnew creates an instance of a java object given its classname and optional constructor arguments.
The classname must be either in one of the packages in the global CLASSPATH or an [[CommandImport imported]] class.
If no additional arguments are provided then the default constructor for the class is used.
Otherwise a constructor matching the types of the supplied arguments is searched for and if found, invoked.
The result is the newly created java object.
Typical use would be to assign this object to a variable or to pass to a function or command.
Example: Create a java.util.Date object and print the unix time.
echo date.getTime()
[[JavaObjects Java Objects]]

Revision [1587]

Edited on 2010-11-20 06:07:38 by DavidLee
Throws an exception if the class is not found or cannot be constructed.
Returns 0 if the command executed successfully, 1 if there was an error.

Revision [1586]

The oldest known version of this page was created on 2010-11-20 06:07:04 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki