Class Main.IProxy
java.lang.Object
org.mozilla.javascript.tools.debugger.Main.IProxy
- All Implemented Interfaces:
Runnable, ScopeProvider
- Enclosing class:
Main
Class to consolidate all internal implementations of interfaces
to avoid class generation bloat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate ScriptableThe scope object to expose whentype=SCOPE_PROVIDER.static final intprivate final intThe type of interface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()Returns the scope for script evaluations.static ScopeProvidernewScopeProvider(Scriptable scope) Creates a new IProxy that acts as aScopeProvider.voidrun()Exit action.
-
Field Details
-
EXIT_ACTION
public static final int EXIT_ACTION- See Also:
-
SCOPE_PROVIDER
public static final int SCOPE_PROVIDER- See Also:
-
type
private final int typeThe type of interface. -
scope
The scope object to expose whentype=SCOPE_PROVIDER.
-
-
Constructor Details
-
IProxy
public IProxy(int type) Creates a new IProxy.
-
-
Method Details
-
newScopeProvider
Creates a new IProxy that acts as aScopeProvider. -
run
-
getScope
Returns the scope for script evaluations.- Specified by:
getScopein interfaceScopeProvider
-