Class Main.IProxy
java.lang.Object
org.htmlunit.corejs.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 int
private Scriptable
The scope object to expose whentype
=SCOPE_PROVIDER
.static final int
private final int
The type of interface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()
Returns the scope for script evaluations.static ScopeProvider
newScopeProvider
(Scriptable scope) Creates a new IProxy that acts as aScopeProvider
.void
run()
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
public void run()Exit action. -
getScope
Returns the scope for script evaluations.- Specified by:
getScope
in interfaceScopeProvider
-