public class Dim
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Dim.ContextData
Class to store information about a stack.
|
static class |
Dim.FunctionSource
Class to store information about a function.
|
static class |
Dim.SourceInfo
Class to store information about a script source.
|
static class |
Dim.StackFrame
Object to represent one stack frame.
|
Modifier and Type | Field and Description |
---|---|
static int |
BREAK |
static int |
EXIT |
static int |
GO |
static int |
STEP_INTO |
static int |
STEP_OUT |
static int |
STEP_OVER |
Constructor and Description |
---|
Dim() |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(ContextFactory factory)
Attaches the debugger to the given ContextFactory.
|
void |
clearAllBreakpoints()
Clears all breakpoints.
|
void |
compileScript(java.lang.String url,
java.lang.String text)
Compiles the given script.
|
void |
contextSwitch(int frameIndex)
Switches context to the stack frame with the given index.
|
Dim.ContextData |
currentContextData()
Returns the current ContextData object.
|
void |
detach()
Detaches the debugger from the current ContextFactory.
|
void |
dispose()
Releases resources associated with this debugger.
|
java.lang.String |
eval(java.lang.String expr)
Evaluates the given script.
|
void |
evalScript(java.lang.String url,
java.lang.String text)
Evaluates the given script.
|
java.lang.String[] |
functionNames()
Returns an array of all function names.
|
Dim.FunctionSource |
functionSourceByName(java.lang.String functionName)
Returns the FunctionSource object for the function with the given name.
|
java.lang.Object[] |
getObjectIds(java.lang.Object object)
Returns an array of the property names on the given script object.
|
java.lang.Object |
getObjectProperty(java.lang.Object object,
java.lang.Object id)
Returns the value of a property on the given script object.
|
void |
go()
Resumes execution of script.
|
java.lang.String |
objectToString(java.lang.Object object)
Converts the given script object to a string.
|
void |
setBreak()
Tells the debugger to break at the next opportunity.
|
void |
setBreakOnEnter(boolean breakOnEnter)
Sets whether the debugger should break on function entering.
|
void |
setBreakOnExceptions(boolean breakOnExceptions)
Sets whether the debugger should break on exceptions.
|
void |
setBreakOnReturn(boolean breakOnReturn)
Sets whether the debugger should break on function return.
|
void |
setGuiCallback(GuiCallback callback)
Sets the GuiCallback object to use.
|
void |
setReturnValue(int returnValue)
Sets the action to perform to end interruption.
|
void |
setScopeProvider(ScopeProvider scopeProvider)
Sets the ScopeProvider to be used.
|
void |
setSourceProvider(SourceProvider sourceProvider)
Sets the ScopeProvider to be used.
|
Dim.SourceInfo |
sourceInfo(java.lang.String url)
Returns the SourceInfo object for the given URL.
|
boolean |
stringIsCompilableUnit(java.lang.String str)
Returns whether the given string is syntactically valid script.
|
public static final int STEP_OVER
public static final int STEP_INTO
public static final int STEP_OUT
public static final int GO
public static final int BREAK
public static final int EXIT
public void setGuiCallback(GuiCallback callback)
public void setBreak()
public void setScopeProvider(ScopeProvider scopeProvider)
public void setSourceProvider(SourceProvider sourceProvider)
public void contextSwitch(int frameIndex)
public void setBreakOnExceptions(boolean breakOnExceptions)
public void setBreakOnEnter(boolean breakOnEnter)
public void setBreakOnReturn(boolean breakOnReturn)
public void attachTo(ContextFactory factory)
public void detach()
public void dispose()
public java.lang.String[] functionNames()
public Dim.FunctionSource functionSourceByName(java.lang.String functionName)
public Dim.SourceInfo sourceInfo(java.lang.String url)
public void clearAllBreakpoints()
public Dim.ContextData currentContextData()
public void setReturnValue(int returnValue)
public void go()
public java.lang.String eval(java.lang.String expr)
public void compileScript(java.lang.String url, java.lang.String text)
public void evalScript(java.lang.String url, java.lang.String text)
public java.lang.String objectToString(java.lang.Object object)
public boolean stringIsCompilableUnit(java.lang.String str)
public java.lang.Object getObjectProperty(java.lang.Object object, java.lang.Object id)
public java.lang.Object[] getObjectIds(java.lang.Object object)
Copyright © 2010 - 2020 Adobe. All Rights Reserved