public interface IJavaScriptBreakpoint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_HANDLE
JSDT member handle
|
static java.lang.String |
HIT_COUNT
The hit count set in the breakpoint
|
static java.lang.String |
MARKER_ID
The id of the root breakpoint marker type for JavaScript breakpoints
Value is: org.eclipse.wst.jsdt.debug.core.breakpoint.marker |
static java.lang.String |
SCRIPT_PATH
Breakpoint attribute for the path of the script
|
static java.lang.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 java.lang.String |
TYPE_NAME
The type name within the script
|
Modifier and Type | Method and Description |
---|---|
int |
getHitCount()
Returns the hit count set for this breakpoint
or -1 if no hit count has been set.
|
java.lang.String |
getJavaScriptElementHandle()
Returns the
IJavaScriptElement handle for the member
this breakpoint is set on. |
java.lang.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
|
java.lang.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(java.lang.String handle)
Allows the
IJavaScriptElement handle to be set for this breakpoint. |
void |
setSuspendPolicy(int policy)
Sets the suspend policy for this breakpoint.
|
static final java.lang.String MARKER_ID
org.eclipse.wst.jsdt.debug.core.breakpoint.marker
static final java.lang.String SUSPEND_POLICY
static final java.lang.String TYPE_NAME
static final java.lang.String SCRIPT_PATH
static final java.lang.String HIT_COUNT
static final int SUSPEND_THREAD
static final int SUSPEND_TARGET
static final java.lang.String ELEMENT_HANDLE
java.lang.String getScriptPath() throws CoreException
null
null
CoreException
- if the breakpoint cannot be accessedjava.lang.String getTypeName() throws CoreException
null
when the breakpoint is set
on a top-level type i.e. set on the root sourcenull
CoreException
- if the breakpoint cannot be accessedint getHitCount() throws CoreException
CoreException
- if the breakpoint cannot be accessedvoid setHitCount(int count) throws CoreException, java.lang.IllegalArgumentException
IllegalArgumentException
if the given count is less than 1.count
- the count to set, must be > 0CoreException
java.lang.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 setCoreException
- if the breakpoint cannot be accessedSUSPEND_THREAD
,
SUSPEND_TARGET
java.lang.String getJavaScriptElementHandle() throws CoreException
IJavaScriptElement
handle for the member
this breakpoint is set on.null
if no element handle has been setIJavaScriptElement
handle or null
CoreException
- if the breakpoint cannot be accessedvoid setJavaScriptElementHandle(java.lang.String handle) throws CoreException
IJavaScriptElement
handle to be set for this breakpoint.handle
- the new handle to set, null
will remove any existing handleCoreException
- if the breakpoint cannot be accessedboolean isInstalled() throws CoreException
true
if the breakpoint is installed false
otherwiseCoreException
- if the breakpoint cannot be accessedCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.