|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.DefaultBreakpoint | +--com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint | +--com.bluemarsh.jswat.breakpoint.MethodBreakpoint
Class MethodBreakpoint implements the Breakpoint interface. Its properties include a class and a method name, and an argument list specifying where the breakpoint should stop.
Field Summary | |
protected static Category |
logCategory
Reporting category. |
protected java.util.List |
methodArgs
List of method arguments (if any are given), where each element is a String object reprepsenting the argument type in the JNI-style signature. |
protected java.lang.String |
methodId
Name of the method this breakpoint is set at. |
Fields inherited from class com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint |
eventRequest, prepareRequest, referenceSpec |
Fields inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint |
breakpointGroup, conditionList, deleteOnExpire, expireCount, isEnabled, monitorList, propertyList, skipCount, stoppedCount, suspendPolicy |
Fields inherited from interface com.bluemarsh.jswat.event.VMEventListener |
PRIORITY_BREAKPOINT, PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_SESSION |
Fields inherited from interface com.bluemarsh.jswat.breakpoint.Breakpoint |
serialVersionUID |
Method Summary | |
boolean |
eventOccurred(com.sun.jdi.event.Event e)
Invoked when a VM event has occurred. |
protected com.sun.jdi.Method |
findMatchingMethod(com.sun.jdi.ClassType classType)
Attempt an unambiguous match of the method name and argument specification to a method. |
java.lang.String |
getClassName()
Return the name of the class that this breakpoint is located in. |
int |
getLineNumber()
Retrieve the line number associated with this breakpoint. |
com.sun.jdi.Location |
getLocation()
Retrieve the location associated with this breakpoint. |
protected com.sun.jdi.ReferenceType |
getReferenceFromName(java.lang.String cname,
com.sun.jdi.VirtualMachine vm)
Find the ReferenceType object for a given class. |
BreakpointUI |
getUIAdapter()
Returns the user interface widget for customizing this breakpoint. |
void |
init()
Initialize the breakpoint so it may operate normally. |
protected boolean |
isJavaIdentifier(java.lang.String s)
Determine if the given string is a valid Java identifier. |
protected java.lang.String |
normalizeArgTypeName(java.lang.String name,
com.sun.jdi.VirtualMachine vm)
Remove unneeded spaces and expand class names to fully qualified names, if necessary and possible. |
protected com.sun.jdi.request.EventRequest |
resolveReference(com.sun.jdi.ReferenceType refType)
Resolve against the given ReferenceType. |
java.lang.String |
toString()
Returns a String representation of this. |
java.lang.String |
toString(boolean terse)
Returns a String representation of this. |
Methods inherited from class com.bluemarsh.jswat.breakpoint.ResolvableBreakpoint |
destroy, eventRequest, getReferenceTypeSpec, isResolved, reset, resolveAgainstEvent, resolveEagerly, setEnabled, setSuspendPolicy, unresolve |
Methods inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint |
addCondition, addMonitor, conditions, deleteOnExpire, fireChange, getBreakpointGroup, getBreakpointManager, getExpireCount, getProperty, getSkipCount, getSuspendPolicy, hasExpired, incrementStoppedCount, isEnabled, isSkipping, monitors, performStop, removeCondition, removeMonitor, setBreakpointGroup, setExpireCount, setProperty, setSkipCount, shouldResume |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static Category logCategory
protected java.lang.String methodId
protected java.util.List methodArgs
Method Detail |
public boolean eventOccurred(com.sun.jdi.event.Event e)
eventOccurred
in interface VMEventListener
e
- VM event.protected com.sun.jdi.Method findMatchingMethod(com.sun.jdi.ClassType classType) throws AmbiguousClassSpecException, AmbiguousMethodException, java.lang.NoSuchMethodException
classType
- Class to find matching method.AmbiguousClassSpecException
- Thrown if the given pattern matches more than one class.AmbiguousMethodException
- Thrown if the method is overloaded.java.lang.NoSuchMethodException
- Thrown if the method could not be found.public java.lang.String getClassName()
getClassName
in interface LocatableBreakpoint
public int getLineNumber()
getLineNumber
in interface LocatableBreakpoint
public com.sun.jdi.Location getLocation()
isResolved()
before calling this
method. An unresolved breakpoint will not have a location yet.getLocation
in interface LocatableBreakpoint
protected com.sun.jdi.ReferenceType getReferenceFromName(java.lang.String cname, com.sun.jdi.VirtualMachine vm) throws AmbiguousClassSpecException
cname
- Class identifier for which to get reference.vm
- Virtual machine from which to get reference.AmbiguousClassSpecException
- Thrown if the given pattern matches more than one class.public BreakpointUI getUIAdapter()
getUIAdapter
in class DefaultBreakpoint
public void init()
init
in class DefaultBreakpoint
protected boolean isJavaIdentifier(java.lang.String s)
s
- String to validate.protected java.lang.String normalizeArgTypeName(java.lang.String name, com.sun.jdi.VirtualMachine vm) throws AmbiguousClassSpecException
name
- Name of class.vm
- Virtual machine to normalize against.AmbiguousClassSpecException
- Thrown if the given pattern matches more than one class.protected com.sun.jdi.request.EventRequest resolveReference(com.sun.jdi.ReferenceType refType) throws ResolveException
resolveReference
in class ResolvableBreakpoint
refType
- ReferenceType against which to resolve.ResolveException
- Thrown if breakpoint resolve fails.public java.lang.String toString(boolean terse)
terse
- true to keep the description terse.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |