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 booleanThe boolean result of the action.private DimThe debugger.private ObjectThe property to look up inobject.private ObjectThe object to convert, get a property from or enumerate.private Object[]The Object[] result of the action.private ObjectThe Object result of the action.private StringThe String result of the action.private StringThe text of the script to compile, evaluate or test for compilation.private intThe interface implementation type.private StringThe URL origin of the script to compile or evaluate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a Context is created.voidCalled when a Context is destroyed.getFrame(Context cx, DebuggableScript fnOrScript) Returns a StackFrame for the given function or script.voidhandleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) Called when compilation is finished.Performs the action given bytype.private voidPerforms the action given bytypewith 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:
runin interfaceContextAction- See Also:
-
withContext
private void withContext()Performs the action given bytypewith the attachedContextFactory. -
contextCreated
Called when a Context is created.- Specified by:
contextCreatedin interfaceContextFactory.Listener
-
contextReleased
Called when a Context is destroyed.- Specified by:
contextReleasedin interfaceContextFactory.Listener
-
getFrame
Returns a StackFrame for the given function or script. -
handleCompilationDone
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
-