public class JavaScriptDebugModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MODEL_ID
Debug model identifier.
|
Constructor and Description |
---|
JavaScriptDebugModel() |
Modifier and Type | Method and Description |
---|---|
static IJavaScriptFunctionBreakpoint |
createFunctionBreakpoint(IResource resource,
java.lang.String name,
java.lang.String signature,
int charstart,
int charend,
java.util.Map attributes,
boolean register)
Creates a new
IJavaScriptFunctionBreakpoint |
static IJavaScriptLineBreakpoint |
createLineBreakpoint(IResource resource,
int linenumber,
int charstart,
int charend,
java.util.Map attributes,
boolean register)
Creates a new
IJavaScriptLineBreakpoint |
static IJavaScriptLoadBreakpoint |
createScriptLoadBreakpoint(IResource resource,
int charstart,
int charend,
java.util.Map attributes,
boolean register)
Creates a new
IJavaScriptLoadBreakpoint |
static java.lang.String |
numberToString(java.lang.Number n)
Converts the given double value to a
String removing the trailing .0 in the event the precision is 1 |
public static final java.lang.String MODEL_ID
org.eclipse.wst.jsdt.debug.model
public static IJavaScriptLineBreakpoint createLineBreakpoint(IResource resource, int linenumber, int charstart, int charend, java.util.Map attributes, boolean register) throws DebugException
IJavaScriptLineBreakpoint
resource
- the resource to create the breakpoint onlinenumber
- the line number to place the breakpoint oncharstart
- the char start or -1charend
- the char end or -1attributes
- the optional map of attributes or null
register
- if the breakpoint should be immediately registered or notIJavaScriptLineBreakpoint
DebugException
- if breakpoint creation failedpublic static IJavaScriptLoadBreakpoint createScriptLoadBreakpoint(IResource resource, int charstart, int charend, java.util.Map attributes, boolean register) throws DebugException
IJavaScriptLoadBreakpoint
resource
- the resource to associate the breakpoint with, or null
charstart
- the char start or -1charend
- the char end or -1attributes
- the optional map of attributes or null
register
- if the breakpoint should be immediately registered or notIJavaScriptLoadBreakpoint
DebugException
- if breakpoint creation failspublic static IJavaScriptFunctionBreakpoint createFunctionBreakpoint(IResource resource, java.lang.String name, java.lang.String signature, int charstart, int charend, java.util.Map attributes, boolean register) throws DebugException
IJavaScriptFunctionBreakpoint
resource
- the resource to create the breakpoint onname
- the name of the functionsignature
- the signature of the functioncharstart
- the char start of the function or -1charend
- the char end of the function or -1attributes
- an optional mapping of attributes or null
register
- if the breakpoint should immediately be registered or notIJavaScriptFunctionBreakpoint
DebugException
- if breakpoint creation failspublic static java.lang.String numberToString(java.lang.Number n)
String
removing the trailing .0 in the event the precision is 1n
- the number to convertString
value of the number with trailing .0 removed iff the precision is 1Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.