Class PythonBreakpoint
java.lang.Object
org.netbeans.api.debugger.Breakpoint
org.netbeans.modules.python.debugger.breakpoints.PythonBreakpoint
public final class PythonBreakpoint
extends org.netbeans.api.debugger.Breakpoint
- Author:
- albilu
-
Nested Class Summary
Nested classes/interfaces inherited from class org.netbeans.api.debugger.Breakpoint
org.netbeans.api.debugger.Breakpoint.GroupProperties, org.netbeans.api.debugger.Breakpoint.HIT_COUNT_FILTERING_STYLE, org.netbeans.api.debugger.Breakpoint.VALIDITY -
Field Summary
FieldsFields inherited from class org.netbeans.api.debugger.Breakpoint
PROP_DISPOSED, PROP_ENABLED, PROP_GROUP_NAME, PROP_GROUP_PROPERTIES, PROP_HIT_COUNT_FILTER, PROP_VALIDITY -
Method Summary
Modifier and TypeMethodDescriptionstatic PythonBreakpointCreate a new Python lite breakpoint, that is not associated with a user file.static PythonBreakpointcreate(org.openide.filesystems.FileObject fileObject, int lineNumber) Create a new Python lite breakpoint based on a user file.static PythonBreakpointcreate(org.openide.text.Line line) voiddisable()Disables the breakpoint.voidenable()Enables the breakpoint.Get the breakpoint condition, ornull.org.openide.filesystems.FileObjectGet the file path of the breakpoint in the debuggee.org.netbeans.api.debugger.Breakpoint.GroupPropertiesintgetID()org.openide.text.LinegetLine()int1-based line number.getURL()booleanTest whether the breakpoint is enabled.booleanisHidden()Gets value of hidden property.voidsetBreakPointValidity(org.netbeans.api.debugger.Breakpoint.VALIDITY validity, String reason) voidsetCondition(String condition) Set the breakpoint condition.voidsetHidden(boolean h) Sets value of hidden property.voidsetID(int id) Methods inherited from class org.netbeans.api.debugger.Breakpoint
addPropertyChangeListener, addPropertyChangeListener, canHaveDependentBreakpoints, dispose, firePropertyChange, getBreakpointsToDisable, getBreakpointsToEnable, getGroupName, getHitCountFilter, getHitCountFilteringStyle, getValidity, getValidityMessage, removePropertyChangeListener, removePropertyChangeListener, setBreakpointsToDisable, setBreakpointsToEnable, setGroupName, setHitCountFilter, setValidity
-
Field Details
-
PROP_CONDITION
- See Also:
-
PROP_HIDDEN
- See Also:
-
-
Method Details
-
create
-
create
public static PythonBreakpoint create(org.openide.filesystems.FileObject fileObject, int lineNumber) Create a new Python lite breakpoint based on a user file.- Parameters:
fileObject- the file path of the breakpointlineNumber- 1-based line number- Returns:
- a new breakpoint.
-
create
Create a new Python lite breakpoint, that is not associated with a user file.- Parameters:
filePath- the file path of the breakpoint in the debuggeelineNumber- 1-based line number- Returns:
- a new breakpoint.
-
getFilePath
Get the file path of the breakpoint in the debuggee. -
getURL
-
setID
public void setID(int id) -
getID
public int getID() -
getLineNumber
public int getLineNumber()1-based line number. -
getFileObject
@CheckForNull public org.openide.filesystems.FileObject getFileObject() -
getLine
@CheckForNull public org.openide.text.Line getLine() -
isEnabled
public boolean isEnabled()Test whether the breakpoint is enabled.- Specified by:
isEnabledin classorg.netbeans.api.debugger.Breakpoint- Returns:
trueif so
-
disable
public void disable()Disables the breakpoint.- Specified by:
disablein classorg.netbeans.api.debugger.Breakpoint
-
enable
public void enable()Enables the breakpoint.- Specified by:
enablein classorg.netbeans.api.debugger.Breakpoint
-
getCondition
Get the breakpoint condition, ornull. -
setCondition
Set the breakpoint condition. -
setBreakPointValidity
public void setBreakPointValidity(org.netbeans.api.debugger.Breakpoint.VALIDITY validity, String reason) -
isHidden
public boolean isHidden()Gets value of hidden property.- Returns:
- value of hidden property
-
setHidden
public void setHidden(boolean h) Sets value of hidden property.- Parameters:
h- a new value of hidden property
-
getGroupProperties
public org.netbeans.api.debugger.Breakpoint.GroupProperties getGroupProperties()- Overrides:
getGroupPropertiesin classorg.netbeans.api.debugger.Breakpoint
-