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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields 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 Type
    Method
    Description
    create(String filePath, int lineNumber)
    Create a new Python lite breakpoint, that is not associated with a user file.
    create(org.openide.filesystems.FileObject fileObject, int lineNumber)
    Create a new Python lite breakpoint based on a user file.
    create(org.openide.text.Line line)
     
    void
    Disables the breakpoint.
    void
    Enables the breakpoint.
    Get the breakpoint condition, or null.
    org.openide.filesystems.FileObject
     
    Get the file path of the breakpoint in the debuggee.
    org.netbeans.api.debugger.Breakpoint.GroupProperties
     
    int
     
    org.openide.text.Line
     
    int
    1-based line number.
     
    boolean
    Test whether the breakpoint is enabled.
    boolean
    Gets value of hidden property.
    void
    setBreakPointValidity(org.netbeans.api.debugger.Breakpoint.VALIDITY validity, String reason)
     
    void
    setCondition(String condition)
    Set the breakpoint condition.
    void
    setHidden(boolean h)
    Sets value of hidden property.
    void
    setID(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • create

      public static PythonBreakpoint create(org.openide.text.Line line)
    • 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 breakpoint
      lineNumber - 1-based line number
      Returns:
      a new breakpoint.
    • create

      public static PythonBreakpoint create(String filePath, int lineNumber)
      Create a new Python lite breakpoint, that is not associated with a user file.
      Parameters:
      filePath - the file path of the breakpoint in the debuggee
      lineNumber - 1-based line number
      Returns:
      a new breakpoint.
    • getFilePath

      public String getFilePath()
      Get the file path of the breakpoint in the debuggee.
    • getURL

      public URL 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:
      isEnabled in class org.netbeans.api.debugger.Breakpoint
      Returns:
      true if so
    • disable

      public void disable()
      Disables the breakpoint.
      Specified by:
      disable in class org.netbeans.api.debugger.Breakpoint
    • enable

      public void enable()
      Enables the breakpoint.
      Specified by:
      enable in class org.netbeans.api.debugger.Breakpoint
    • getCondition

      public String getCondition()
      Get the breakpoint condition, or null.
    • setCondition

      public void setCondition(String condition)
      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:
      getGroupProperties in class org.netbeans.api.debugger.Breakpoint