org.kohsuke.youdebug
Class BundledBreakpointRequest

java.lang.Object
  extended by org.kohsuke.youdebug.BundledEventRequest<E>
      extended by org.kohsuke.youdebug.BundledBreakpointRequest
All Implemented Interfaces:
com.sun.jdi.Locatable, com.sun.jdi.Mirror, com.sun.jdi.request.BreakpointRequest, com.sun.jdi.request.EventRequest

public class BundledBreakpointRequest
extends BundledEventRequest<E>
implements com.sun.jdi.request.BreakpointRequest

Possibly multiple BreakpointRequests bundled into one unit for convenient use.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.youdebug.BundledEventRequest
requests
 
Fields inherited from interface com.sun.jdi.request.EventRequest
SUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE
 
Method Summary
 void addInstanceFilter(com.sun.jdi.ObjectReference instance)
          Restricts the events generated by this request to those in which the currently executing instance is the object specified.
 void addThreadFilter(com.sun.jdi.ThreadReference thread)
          Restricts the events generated by this request to those in the given thread.
 void delete()
           
 com.sun.jdi.Location location()
           
 void setEnabled(boolean val)
           
 
Methods inherited from class org.kohsuke.youdebug.BundledEventRequest
addCountFilter, disable, enable, getProperty, isEnabled, one, putProperty, setSuspendPolicy, suspendPolicy, virtualMachine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jdi.request.EventRequest
addCountFilter, disable, enable, getProperty, isEnabled, putProperty, setEnabled, setSuspendPolicy, suspendPolicy
 
Methods inherited from interface com.sun.jdi.Mirror
toString, virtualMachine
 

Method Detail

addThreadFilter

public void addThreadFilter(com.sun.jdi.ThreadReference thread)
Restricts the events generated by this request to those in the given thread.

Specified by:
addThreadFilter in interface com.sun.jdi.request.BreakpointRequest
Parameters:
thread - the thread to filter on.
Throws:
com.sun.jdi.request.InvalidRequestStateException - if this request is currently enabled or has been deleted. Filters may be added only to disabled requests.

addInstanceFilter

public void addInstanceFilter(com.sun.jdi.ObjectReference instance)
Restricts the events generated by this request to those in which the currently executing instance is the object specified.

Not all targets support this operation. Use VirtualMachine.canUseInstanceFilters() to determine if the operation is supported.

Specified by:
addInstanceFilter in interface com.sun.jdi.request.BreakpointRequest
Parameters:
instance - the object which must be the current instance in order to pass this filter.
Throws:
UnsupportedOperationException - if the target virtual machine does not support this operation.
com.sun.jdi.request.InvalidRequestStateException - if this request is currently enabled or has been deleted. Filters may be added only to disabled requests.
Since:
1.4

location

public com.sun.jdi.Location location()
Specified by:
location in interface com.sun.jdi.Locatable
Specified by:
location in interface com.sun.jdi.request.BreakpointRequest

setEnabled

public void setEnabled(boolean val)
Overrides:
setEnabled in class BundledEventRequest<E extends com.sun.jdi.request.EventRequest>

delete

public void delete()
Overrides:
delete in class BundledEventRequest<E extends com.sun.jdi.request.EventRequest>


Copyright © 2013. All rights reserved.