Top Description Constructors Methods
org.apache.commons.jexl2.scripting

public Class Main

extends Object
Class Inheritance
Imports
java.io.BufferedReader, .FileReader, .InputStreamReader, javax.script.ScriptEngine, .ScriptException

Test application for JexlScriptEngine (JSR-223 implementation).
Since
2.0

Constructor Summary

AccessConstructor and Description
public
Main()

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[]
(optional) filename to evaluate. Stored in the args variable.
args
)

Test application for JexlScriptEngine (JSR-223 implementation).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mainback to summary
public Main()

Method Detail

mainback to summary
public static void main(String[] args) throws Exception

Test application for JexlScriptEngine (JSR-223 implementation). If a single argument is present, it is treated as a filename of a JEXL script to be evaluated. Any exceptions terminate the application. Otherwise, lines are read from standard input and evaluated. ScriptExceptions are logged, and do not cause the application to exit. This is done so that interactive testing is easier.

Parameters
args:String[]

(optional) filename to evaluate. Stored in the args variable.

Exceptions
Exception:
if parsing or IO fail