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 Object
implements ContextAction, ContextFactory.Listener, Debugger
Proxy class to implement debug interfaces without bloat of class
files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
The boolean result of the action.private Dim
The debugger.private Object
The property to look up inobject
.private Object
The object to convert, get a property from or enumerate.private Object[]
The Object[] result of the action.private Object
The Object result of the action.private String
The String result of the action.private String
The text of the script to compile, evaluate or test for compilation.private int
The interface implementation type.private String
The URL origin of the script to compile or evaluate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a Context is created.void
Called when a Context is destroyed.getFrame
(Context cx, DebuggableScript fnOrScript) Returns a StackFrame for the given function or script.void
handleCompilationDone
(Context cx, DebuggableScript fnOrScript, String source) Called when compilation is finished.Performs the action given bytype
.private void
Performs the action given bytype
with the attachedContextFactory
.
-
Field Details
-
dim
The debugger. -
type
private int typeThe interface implementation type. One of the IPROXY_* constants defined inDim
. -
url
The URL origin of the script to compile or evaluate. -
text
The text of the script to compile, evaluate or test for compilation. -
object
The object to convert, get a property from or enumerate. -
id
-
booleanResult
private boolean booleanResultThe boolean result of the action. -
stringResult
The String result of the action. -
objectResult
The Object result of the action. -
objectArrayResult
The Object[] result of the action.
-
-
Constructor Details
-
DimIProxy
Creates a new DimIProxy.
-
-
Method Details
-
run
Performs the action given bytype
.- Specified by:
run
in interfaceContextAction
- See Also:
-
withContext
private void withContext()Performs the action given bytype
with the attachedContextFactory
. -
contextCreated
Called when a Context is created.- Specified by:
contextCreated
in interfaceContextFactory.Listener
-
contextReleased
Called when a Context is destroyed.- Specified by:
contextReleased
in interfaceContextFactory.Listener
-
getFrame
Returns a StackFrame for the given function or script. -
handleCompilationDone
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
-