Crossfire JXClient, Trunk
com.sun.sample.scriptpad.Main Class Reference
+ Collaboration diagram for com.sun.sample.scriptpad.Main:

Static Public Member Functions

static void main (String[] args) throws Exception
 

Static Private Member Functions

static void eval (ScriptEngine engine, String name) throws Exception
 

Detailed Description

This is the entry point of "Scriptpad" sample. This class creates ScriptEngine and evaluates few JavaScript "files" – which are stored as resources (please refer to src/resources/*.js). Actual code for the scriptpad's main functionality lives in these JavaScript files.

Definition at line 52 of file Main.java.

Member Function Documentation

◆ eval()

static void com.sun.sample.scriptpad.Main.eval ( ScriptEngine  engine,
String  name 
) throws Exception
staticprivate

Definition at line 70 of file Main.java.

References com.sun.sample.scriptpad.Main.eval().

Referenced by com.sun.sample.scriptpad.Main.eval(), and com.sun.sample.scriptpad.Main.main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

static void com.sun.sample.scriptpad.Main.main ( String[]  args) throws Exception
static

Definition at line 53 of file Main.java.

References com.sun.sample.scriptpad.Main.eval().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: