|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.PatternReferenceTypeSpec
Class PatternReferenceTypeSpec is used for specifying classes. It can accept class name patterns that are either prefixed or suffixed with an asterisk wildcard.
Field Summary | |
protected java.lang.String |
className
Name of the class specified, without wildcards. |
protected java.lang.String |
classPattern
Name of the class specified, possibly with wild cards. |
protected boolean |
postWild
True if class specification is suffixed with a wildcard. |
protected boolean |
preWild
True if class specification is prefixed with a wildcard. |
Fields inherited from interface com.bluemarsh.jswat.breakpoint.ReferenceTypeSpec |
serialVersionUID |
Constructor Summary | |
PatternReferenceTypeSpec(java.lang.String classId)
Constructs a new PatternReferenceTypeSpec for the given class name pattern. |
Method Summary | |
com.sun.jdi.request.ClassPrepareRequest |
createPrepareRequest(com.sun.jdi.VirtualMachine vm)
Create a class prepare request appropriate for this reference type specification. |
java.lang.String |
getIdentifier()
Returns the class identifier this specification is specifying. |
boolean |
isExact()
Returns true if this type specification is an exact name. |
protected boolean |
isJavaIdentifier(java.lang.String s)
Determine if the given string is a valid Java identifier. |
boolean |
matches(com.sun.jdi.ReferenceType refType)
Determines if the given ReferenceType matches this specification. |
boolean |
matches(java.lang.String classname)
Determines if the given class name matches this specification. |
java.lang.String |
toString()
Returns a String representation of this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String className
protected java.lang.String classPattern
protected boolean postWild
protected boolean preWild
Constructor Detail |
public PatternReferenceTypeSpec(java.lang.String classId) throws java.lang.ClassNotFoundException
classId
- class identifier string.java.lang.ClassNotFoundException
- Thrown if classId is not a valid identifier.Method Detail |
public com.sun.jdi.request.ClassPrepareRequest createPrepareRequest(com.sun.jdi.VirtualMachine vm)
createPrepareRequest
in interface ReferenceTypeSpec
vm
- VirtualMachine to use for creating request.public java.lang.String getIdentifier()
getIdentifier
in interface ReferenceTypeSpec
public boolean isExact()
isExact
in interface ReferenceTypeSpec
protected boolean isJavaIdentifier(java.lang.String s)
s
- string to validate.public boolean matches(java.lang.String classname)
matches
in interface ReferenceTypeSpec
classname
- name of class to match against.public boolean matches(com.sun.jdi.ReferenceType refType)
matches
in interface ReferenceTypeSpec
refType
- ReferenceType to match against.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 |