Procedures and Compiled Scripts
In this chapter, you will learn:
Invoking Procedures in Scripts
In previous chapters, you have seen how to invoke scripts using the eval() method of the ScriptEngine. It is also possible to invoke procedures written in a scripting language directly from the Java program, provided the ScriptEngine supports procedure invocation.
A scripting language may allow creating procedures, functions, and methods. The Java Scripting API lets ...