Class Dim.DimIProxy
- java.lang.Object
-
- org.mozilla.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 boolean
booleanResult
The boolean result of the action.private Dim
dim
The debugger.private java.lang.Object
id
The property to look up inobject
.private java.lang.Object
object
The object to convert, get a property from or enumerate.private java.lang.Object[]
objectArrayResult
The Object[] result of the action.private java.lang.Object
objectResult
The Object result of the action.private java.lang.String
stringResult
The String result of the action.private java.lang.String
text
The text of the script to compile, evaluate or test for compilation.private int
type
The interface implementation type.private java.lang.String
url
The URL origin of the script to compile or evaluate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextCreated(Context cx)
Called when a Context is created.void
contextReleased(Context cx)
Called when a Context is destroyed.DebugFrame
getFrame(Context cx, DebuggableScript fnOrScript)
Returns a StackFrame for the given function or script.void
handleCompilationDone(Context cx, DebuggableScript fnOrScript, java.lang.String source)
Called when compilation is finished.java.lang.Object
run(Context cx)
Performs the action given bytype
.private void
withContext()
Performs the action given bytype
with 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:
run
in interfaceContextAction
- See Also:
ContextFactory.call(ContextAction)
-
withContext
private void withContext()
Performs the action given bytype
with the attachedContextFactory
.
-
contextCreated
public void contextCreated(Context cx)
Called when a Context is created.- Specified by:
contextCreated
in interfaceContextFactory.Listener
-
contextReleased
public void contextReleased(Context cx)
Called when a Context is destroyed.- Specified by:
contextReleased
in 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:
handleCompilationDone
in interfaceDebugger
- Parameters:
cx
- current Context for this threadfnOrScript
- object describing the function or scriptsource
- the function or script source
-
-