jde.debugger.spec
Class PatternReferenceTypeSpec

java.lang.Object
  |
  +--jde.debugger.spec.PatternReferenceTypeSpec
All Implemented Interfaces:
ReferenceTypeSpec

public class PatternReferenceTypeSpec
extends java.lang.Object
implements ReferenceTypeSpec

PatternReferenceTypeSpec.java Created: Mon Jul 19 12:47:26 1999

Since:
0.1
Author:
Amit Kumar

Field Summary
(package private)  java.lang.String classPattern
           
(package private)  boolean isWild
           
 
Constructor Summary
PatternReferenceTypeSpec(java.lang.String classPattern)
           
 
Method Summary
private  void checkClassName(java.lang.String className)
           
 java.lang.String getClassPattern()
           
private  boolean isJavaIdentifier(java.lang.String s)
           
 boolean matches(com.sun.jdi.ReferenceType refType)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

classPattern

final java.lang.String classPattern

isWild

final boolean isWild
Constructor Detail

PatternReferenceTypeSpec

public PatternReferenceTypeSpec(java.lang.String classPattern)
Method Detail

getClassPattern

public java.lang.String getClassPattern()

matches

public boolean matches(com.sun.jdi.ReferenceType refType)
Specified by:
matches in interface ReferenceTypeSpec
Following copied from interface: jde.debugger.spec.ReferenceTypeSpec
Returns:
true if the ref type matches this spec

checkClassName

private void checkClassName(java.lang.String className)
                     throws JDEException

isJavaIdentifier

private boolean isJavaIdentifier(java.lang.String s)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
Overrides:
toString in class java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.