|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJavaScriptBreakpoint
General JavaScript breakpoint
Field Summary | |
---|---|
static String |
ELEMENT_HANDLE
JSDT member handle |
static String |
HIT_COUNT
The hit count set in the breakpoint |
static String |
SCRIPT_PATH
Breakpoint attribute for the path of the script |
static String |
SUSPEND_POLICY
The suspend policy for the breakpoint |
static int |
SUSPEND_TARGET
Suspend policy for suspending the current target |
static int |
SUSPEND_THREAD
Suspend policy for suspending the current thread of execution |
static String |
TYPE_NAME
The type name within the script |
Method Summary | |
---|---|
int |
getHitCount()
Returns the hit count set for this breakpoint or -1 if no hit count has been set. |
String |
getJavaScriptElementHandle()
Returns the IJavaScriptElement handle for the member
this breakpoint is set on. |
String |
getScriptPath()
Returns the path of the script as it was set when the breakpoint was created. |
int |
getSuspendPolicy()
Returns the suspend policy for this breakpoint, default suspend policy is to suspend the thread |
String |
getTypeName()
Returns the type name that the breakpoint is set within. |
boolean |
isInstalled()
Returns if the breakpoint is currently installed or not. |
void |
setHitCount(int count)
Sets the given hit count for the breakpoint, throws an IllegalArgumentException if the given count is less than 1. |
void |
setJavaScriptElementHandle(String handle)
Allows the IJavaScriptElement handle to be set for this breakpoint. |
void |
setSuspendPolicy(int policy)
Sets the suspend policy for this breakpoint. |
Field Detail |
---|
static final String SUSPEND_POLICY
static final String TYPE_NAME
static final String SCRIPT_PATH
static final String HIT_COUNT
static final int SUSPEND_THREAD
static final int SUSPEND_TARGET
static final String ELEMENT_HANDLE
Method Detail |
---|
String getScriptPath() throws CoreException
null
null
CoreException
- if the breakpoint cannot be accessedString getTypeName() throws CoreException
null
when the breakpoint is set
on a top-level type i.e. set on the root source
null
CoreException
- if the breakpoint cannot be accessedint getHitCount() throws CoreException
CoreException
- if the breakpoint cannot be accessedvoid setHitCount(int count) throws CoreException, IllegalArgumentException
IllegalArgumentException
if the given count is less than 1.
count
- the count to set, must be > 0
CoreException
IllegalArgumentException
- if count < 1int getSuspendPolicy() throws CoreException
CoreException
- if the breakpoint cannot be accessedSUSPEND_THREAD
,
SUSPEND_TARGET
void setSuspendPolicy(int policy) throws CoreException
SUSPEND_THREAD
or SUSPEND_TARGET
will be ignored.
policy
- the policy to set
CoreException
- if the breakpoint cannot be accessedSUSPEND_THREAD
,
SUSPEND_TARGET
String getJavaScriptElementHandle() throws CoreException
IJavaScriptElement
handle for the member
this breakpoint is set on.null
if no element handle has been set
IJavaScriptElement
handle or null
CoreException
- if the breakpoint cannot be accessedvoid setJavaScriptElementHandle(String handle) throws CoreException
IJavaScriptElement
handle to be set for this breakpoint.
handle
- the new handle to set, null
will remove any existing handle
CoreException
- if the breakpoint cannot be accessedboolean isInstalled() throws CoreException
true
if the breakpoint is installed false
otherwise
CoreException
- if the breakpoint cannot be accessed
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |