| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
| +--ru.biosoft.plugins.javascript.Global
| Field Summary | |
final static String | QUIT |
| Constructor Summary | |
Global() | |
| Method Summary | |
static void | defineClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass. |
static Object | deserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)Restore from the specified file an object previously written by a call to serialize. |
static Object | help(Context cx, Scriptable thisObj, Object[] args, Function funObj)Returns description for the specified JavaScript function or host object. |
static void | load(Context cx, Scriptable thisObj, Object[] args, Function funObj)Load and execute a set of JavaScript source files. |
static void | loadClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)Load and execute a script compiled to a class file. |
static void | print(Context cx, Scriptable thisObj, Object[] args, Function funObj)Print the string values of its arguments. |
static String | quit()Quit the shell. |
static void | serialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)Serialize the given object to the specified file. |
static double | version(Context cx, Scriptable thisObj, Object[] args, Function funObj)Get and set the language version. |
| Field Detail |
public final static String QUIT
| Constructor Detail |
public Global()
| Method Detail |
public static void defineClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException,
ClassDefinitionException,
PropertyException
public static Object deserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)
throws java.io.IOException,
java.lang.ClassNotFoundException
public static Object help(Context cx, Scriptable thisObj, Object[] args, Function funObj)
public static void load(Context cx, Scriptable thisObj, Object[] args, Function funObj)
public static void loadClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException,
JavaScriptException
When called as a JavaScript function, a single argument is expected. This argument should be the name of a class that implements the Script interface, as will any script compiled by jsc.
public static void print(Context cx, Scriptable thisObj, Object[] args, Function funObj)
public static String quit()
public static void serialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)
throws java.io.IOException
public static double version(Context cx, Scriptable thisObj, Object[] args, Function funObj)
| Association Links |
to Class org.apache.log4j.Category
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||