With the ability to Embed JudoScript Engine in Java, JudoScript can be used in your applications. Here are a few hints for embedding JudoScript.
The recommended way to build library for JudoScript is actually to write Java, not only for performance but also for reusability across Java and JudoScript code. This does not exclude building JudoScript libraries of functions and classes; in fact, such libraries (JudoScript source files) can be put anywhere in the CLASSPATH.
JudoScript has a few mechanisms to make using your Java code even easier. One is the
Using Java Static Members to make Java static methods look like regular functions, the other
is
A large portion of JudoScript system functions are actually implemented by static Java
methods; they are listed in com/judoscript/jsysfxns.properties
. You can
extend this system function list by creating a similar properties file and name it as
com/judoscript/myjsysfxns.properties
. Since this properties file does not
exist in the standard JudoScript distribution, your changes will not be overwritten by JudoScript
version upgrades. Another properties file, com/judoscript/javapkgs.properties
,
holds the predefined Java package shortcuts. You can create your predefined Java package
shortcuts in com/judoscript/myjavapkgs.properties
.