com.bluemarsh.jswat.breakpoint
Interface ReferenceTypeSpec

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
PatternReferenceTypeSpec

public interface ReferenceTypeSpec
extends java.io.Serializable

Defines the interface for all reference type specifications.

Author:
Nathan Fiedler

Field Summary
static long serialVersionUID
          serial version
 
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 or uses a wildcard pattern.
 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.
 

Field Detail

serialVersionUID

public static final long serialVersionUID
serial version
Method Detail

createPrepareRequest

public com.sun.jdi.request.ClassPrepareRequest createPrepareRequest(com.sun.jdi.VirtualMachine vm)
Create a class prepare request appropriate for this reference type specification.
Parameters:
vm - VirtualMachine to use for creating request.
Returns:
ClassPrepareRequest.

getIdentifier

public java.lang.String getIdentifier()
Returns the class identifier this specification is specifying.
Returns:
Class identifier.

isExact

public boolean isExact()
Returns true if this type specification is an exact name or uses a wildcard pattern.
Returns:
True if exact, false if wildcard.

matches

public boolean matches(java.lang.String classname)
Determines if the given class name matches this specification.
Parameters:
classname - name of class to match against.
Returns:
true if name matches this specification.

matches

public boolean matches(com.sun.jdi.ReferenceType refType)
Determines if the given ReferenceType matches this specification.
Parameters:
refType - ReferenceType to match against.
Returns:
true if type matches this specification.