Class Main.IProxy
- java.lang.Object
-
- org.htmlunit.corejs.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 intEXIT_ACTIONprivate ScriptablescopeThe scope object to expose whentype=SCOPE_PROVIDER.static intSCOPE_PROVIDERprivate inttypeThe 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 ScriptablegetScope()Returns the scope for script evaluations.static ScopeProvidernewScopeProvider(Scriptable scope)Creates a new IProxy that acts as aScopeProvider.voidrun()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:
runin interfacejava.lang.Runnable
-
getScope
public Scriptable getScope()
Returns the scope for script evaluations.- Specified by:
getScopein interfaceScopeProvider
-
-