Class Main.IProxy
- java.lang.Object
-
- org.mozilla.javascript.tools.shell.Main.IProxy
-
- All Implemented Interfaces:
ContextAction<java.lang.Object>
,QuitAction
- Enclosing class:
- Main
private static class Main.IProxy extends java.lang.Object implements ContextAction<java.lang.Object>, QuitAction
Proxy class to avoid proliferation of anonymous classes.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String[]
args
private static int
EVAL_INLINE_SCRIPT
private static int
PROCESS_FILES
(package private) java.lang.String
scriptText
private static int
SYSTEM_EXIT
private int
type
-
Constructor Summary
Constructors Constructor Description IProxy(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
quit(Context cx, int exitCode)
java.lang.Object
run(Context cx)
Execute action using the supplied Context instance.
-
-
-
Field Detail
-
PROCESS_FILES
private static final int PROCESS_FILES
- See Also:
- Constant Field Values
-
EVAL_INLINE_SCRIPT
private static final int EVAL_INLINE_SCRIPT
- See Also:
- Constant Field Values
-
SYSTEM_EXIT
private static final int SYSTEM_EXIT
- See Also:
- Constant Field Values
-
type
private int type
-
args
java.lang.String[] args
-
scriptText
java.lang.String scriptText
-
-
Method Detail
-
run
public java.lang.Object run(Context cx)
Description copied from interface:ContextAction
Execute action using the supplied Context instance. When Rhino runtime calls the method,cx
will be associated with the current thread as active context.- Specified by:
run
in interfaceContextAction<java.lang.Object>
- See Also:
ContextFactory.call(ContextAction)
-
quit
public void quit(Context cx, int exitCode)
- Specified by:
quit
in interfaceQuitAction
-
-