Class Main.IProxy
- java.lang.Object
-
- org.mozilla.javascript.tools.debugger.Main.IProxy
-
- All Implemented Interfaces:
java.lang.Runnable
,ScopeProvider
- Enclosing class:
- Main
private static class Main.IProxy extends java.lang.Object implements java.lang.Runnable, ScopeProvider
Class to consolidate all internal implementations of interfaces to avoid class generation bloat.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXIT_ACTION
private Scriptable
scope
The scope object to expose whentype
=SCOPE_PROVIDER
.static int
SCOPE_PROVIDER
private int
type
The type of interface.
-
Constructor Summary
Constructors Constructor Description IProxy(int type)
Creates a new IProxy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Scriptable
getScope()
Returns the scope for script evaluations.static ScopeProvider
newScopeProvider(Scriptable scope)
Creates a new IProxy that acts as aScopeProvider
.void
run()
Exit action.
-
-
-
Field Detail
-
EXIT_ACTION
public static final int EXIT_ACTION
- See Also:
- Constant Field Values
-
SCOPE_PROVIDER
public static final int SCOPE_PROVIDER
- See Also:
- Constant Field Values
-
type
private final int type
The type of interface.
-
scope
private Scriptable scope
The scope object to expose whentype
=SCOPE_PROVIDER
.
-
-
Method Detail
-
newScopeProvider
public static ScopeProvider newScopeProvider(Scriptable scope)
Creates a new IProxy that acts as aScopeProvider
.
-
run
public void run()
Exit action.- Specified by:
run
in interfacejava.lang.Runnable
-
getScope
public Scriptable getScope()
Returns the scope for script evaluations.- Specified by:
getScope
in interfaceScopeProvider
-
-