Class Dim.DimIProxy
- java.lang.Object
-
- org.htmlunit.corejs.javascript.tools.debugger.Dim.DimIProxy
-
- All Implemented Interfaces:
ContextAction,ContextFactory.Listener,Debugger
- Enclosing class:
- Dim
private static class Dim.DimIProxy extends java.lang.Object implements ContextAction, ContextFactory.Listener, Debugger
Proxy class to implement debug interfaces without bloat of class files.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbooleanResultThe boolean result of the action.private DimdimThe debugger.private java.lang.ObjectidThe property to look up inobject.private java.lang.ObjectobjectThe object to convert, get a property from or enumerate.private java.lang.Object[]objectArrayResultThe Object[] result of the action.private java.lang.ObjectobjectResultThe Object result of the action.private java.lang.StringstringResultThe String result of the action.private java.lang.StringtextThe text of the script to compile, evaluate or test for compilation.private inttypeThe interface implementation type.private java.lang.StringurlThe URL origin of the script to compile or evaluate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextCreated(Context cx)Called when a Context is created.voidcontextReleased(Context cx)Called when a Context is destroyed.DebugFramegetFrame(Context cx, DebuggableScript fnOrScript)Returns a StackFrame for the given function or script.voidhandleCompilationDone(Context cx, DebuggableScript fnOrScript, java.lang.String source)Called when compilation is finished.java.lang.Objectrun(Context cx)Performs the action given bytype.private voidwithContext()Performs the action given bytypewith the attachedContextFactory.
-
-
-
Field Detail
-
dim
private Dim dim
The debugger.
-
type
private int type
The interface implementation type. One of the IPROXY_* constants defined inDim.
-
url
private java.lang.String url
The URL origin of the script to compile or evaluate.
-
text
private java.lang.String text
The text of the script to compile, evaluate or test for compilation.
-
object
private java.lang.Object object
The object to convert, get a property from or enumerate.
-
id
private java.lang.Object id
The property to look up inobject.
-
booleanResult
private boolean booleanResult
The boolean result of the action.
-
stringResult
private java.lang.String stringResult
The String result of the action.
-
objectResult
private java.lang.Object objectResult
The Object result of the action.
-
objectArrayResult
private java.lang.Object[] objectArrayResult
The Object[] result of the action.
-
-
Constructor Detail
-
DimIProxy
private DimIProxy(Dim dim, int type)
Creates a new DimIProxy.
-
-
Method Detail
-
run
public java.lang.Object run(Context cx)
Performs the action given bytype.- Specified by:
runin interfaceContextAction- See Also:
ContextFactory.call(ContextAction)
-
withContext
private void withContext()
Performs the action given bytypewith the attachedContextFactory.
-
contextCreated
public void contextCreated(Context cx)
Called when a Context is created.- Specified by:
contextCreatedin interfaceContextFactory.Listener
-
contextReleased
public void contextReleased(Context cx)
Called when a Context is destroyed.- Specified by:
contextReleasedin interfaceContextFactory.Listener
-
getFrame
public DebugFrame getFrame(Context cx, DebuggableScript fnOrScript)
Returns a StackFrame for the given function or script.
-
handleCompilationDone
public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, java.lang.String source)
Called when compilation is finished.- Specified by:
handleCompilationDonein interfaceDebugger- Parameters:
cx- current Context for this threadfnOrScript- object describing the function or scriptsource- the function or script source
-
-