com.bluemarsh.jswat.breakpoint
Class LineBreakpoint

java.lang.Object
  |
  +--com.bluemarsh.jswat.breakpoint.DefaultBreakpoint
        |
        +--com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint
              |
              +--com.bluemarsh.jswat.breakpoint.LocationBreakpoint
                    |
                    +--com.bluemarsh.jswat.breakpoint.LineBreakpoint
All Implemented Interfaces:
Breakpoint, java.util.EventListener, LocatableBreakpoint, java.io.Serializable, VMEventListener

public class LineBreakpoint
extends LocationBreakpoint

Class LineBreakpoint extends the LocationBreakpoint class. Its properties include a class and a line number in that class at which the breakpoint should stop.

Author:
Nathan Fiedler
See Also:
Serialized Form

Fields inherited from class com.bluemarsh.jswat.breakpoint.LocationBreakpoint
lineNumber
 
Fields inherited from class com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint
eventRequest, prepareRequest, referenceSpec
 
Fields inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint
breakpointGroup, classFilters, conditionList, deleteOnExpire, expireCount, isEnabled, logCategory, monitorList, propertyList, skipCount, stoppedCount, suspendPolicy, threadFilters
 
Fields inherited from interface com.bluemarsh.jswat.breakpoint.Breakpoint
serialVersionUID
 
Fields inherited from interface com.bluemarsh.jswat.event.VMEventListener
PRIORITY_BREAKPOINT, PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_SESSION
 
Constructor Summary
LineBreakpoint(java.lang.String classPattern, int line)
          Constructs a LineBreakpoint for the given class at the specified line within that class.
 
Method Summary
 BreakpointUI getUIAdapter()
          Returns the user interface widget for customizing this breakpoint.
protected  com.sun.jdi.Location resolveLocation(com.sun.jdi.ClassType clazz)
          Determine the location at which to set the breakpoint using the given class type.
 void setLineNumber(int line)
          Set the line number at which this breakpoint is set.
 java.lang.String toString(boolean terse)
          Returns a String representation of this.
 
Methods inherited from class com.bluemarsh.jswat.breakpoint.LocationBreakpoint
createEventRequest, destroy, getClassName, getLineNumber, getLocation, init, resolveReference, setEnabled, toString
 
Methods inherited from class com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint
deleteEventRequest, eventRequest, getReferenceTypeSpec, isResolved, reset, resolveAgainstEvent, resolveEagerly, setSuspendPolicy
 
Methods inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint
addCondition, addMonitor, conditions, deleteOnExpire, eventOccurred, fireChange, getBreakpointGroup, getBreakpointManager, getClassFilters, getExpireCount, getProperty, getSkipCount, getSuspendPolicy, getThreadFilters, hasExpired, incrementStoppedCount, isEnabled, isSkipping, monitors, performStop, removeCondition, removeMonitor, setBreakpointGroup, setClassFilters, setExpireCount, setProperty, setSkipCount, setThreadFilters, shouldResume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineBreakpoint

public LineBreakpoint(java.lang.String classPattern,
                      int line)
               throws java.lang.ClassNotFoundException
Constructs a LineBreakpoint for the given class at the specified line within that class.
Parameters:
classPattern - name of class in which to set breakpoint, possibly using wildcards.
line - line at which to stop.
Throws:
java.lang.ClassNotFoundException - Thrown if classPattern is not a valid identifier.
Method Detail

getUIAdapter

public BreakpointUI getUIAdapter()
Returns the user interface widget for customizing this breakpoint. This method returns a new ui adapter each time it is called.
Overrides:
getUIAdapter in class DefaultBreakpoint
Returns:
Breakpoint user interface adapter.

resolveLocation

protected com.sun.jdi.Location resolveLocation(com.sun.jdi.ClassType clazz)
                                        throws ResolveException
Determine the location at which to set the breakpoint using the given class type.
Overrides:
resolveLocation in class LocationBreakpoint
Parameters:
clazz - ClassType against which to resolve.
Returns:
Location at which to create breakpoint.

setLineNumber

public void setLineNumber(int line)
Set the line number at which this breakpoint is set. This method will force the breakpoint to be unresolved. It must be resolved again before it will be effective.
Parameters:
line - line number at this this breakpoint is set.

toString

public java.lang.String toString(boolean terse)
Returns a String representation of this.
Parameters:
terse - true to keep the description terse.