Interface IJavaLineBreakpoint

    • Method Detail

      • supportsCondition

        boolean supportsCondition()
        Returns whether this breakpoint supports a conditional expression. Conditional breakpoints only suspend when their associated condition evaluates to true.
        Returns:
        whether this breakpoint supports a condition
      • getCondition

        String getCondition()
                     throws CoreException
        Returns the conditional expression associated with this breakpoint, or null if this breakpoint does not have a condition.
        Returns:
        this breakpoint's conditional expression, or null
        Throws:
        CoreException - if unable to access the property on this breakpoint's underlying marker
      • setCondition

        void setCondition​(String condition)
                   throws CoreException
        Sets the condition associated with this breakpoint. When the condition is enabled, this breakpoint will only suspend execution when the given condition evaluates to true. Setting the condition to null or an empty string removes the condition.

        If this breakpoint does not support conditions, setting the condition has no effect.

        Parameters:
        condition - conditional expression
        Throws:
        CoreException - if unable to set the property on this breakpoint's underlying marker
      • isConditionEnabled

        boolean isConditionEnabled()
                            throws CoreException
        Returns whether the condition on this breakpoint is enabled.
        Returns:
        whether this breakpoint's condition is enabled
        Throws:
        CoreException - if unable to access the property on this breakpoint's underlying marker
      • setConditionEnabled

        void setConditionEnabled​(boolean enabled)
                          throws CoreException
        Sets the enabled state of this breakpoint's condition to the given state. When enabled, this breakpoint will only suspend when its condition evaluates to true. When disabled, this breakpoint will suspend as it would with no condition defined.
        Parameters:
        enabled - the enabled state of the condition
        Throws:
        CoreException - if unable to set the property on this breakpoint's underlying marker
      • isConditionSuspendOnTrue

        boolean isConditionSuspendOnTrue()
                                  throws CoreException
        Returns whether the breakpoint suspends when the value of the condition is true or when the value of the condition changes.
        Returns:
        true if this breakpoint suspends when the value of the condition is true, false if this breakpoint suspends when the value of the condition changes.
        Throws:
        CoreException - if unable to access the property on this breakpoint's underlying marker
        Since:
        2.1
      • setConditionSuspendOnTrue

        void setConditionSuspendOnTrue​(boolean suspendOnTrue)
                                throws CoreException
        Set the suspend state of this breakpoint's condition. If the value is true, the breakpoint will stop when the value of the condition is true. If the value is false, the breakpoint will stop when the value of the condition changes.
        Parameters:
        suspendOnTrue - if the condition should suspend when true
        Throws:
        CoreException - if unable to access the property on this breakpoint's underlying marker
        Since:
        2.1