home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / browser / net_linx / java40.jar / netscape / debug / MyMethod.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  966 b   |  30 lines

  1. package netscape.debug;
  2.  
  3. public class MyMethod {
  4.    private Class clazz;
  5.    private int ptr;
  6.  
  7.    MyMethod(Class var1, int var2) {
  8.       this.clazz = var1;
  9.       this.ptr = var2;
  10.    }
  11.  
  12.    public native String getName();
  13.  
  14.    public native String getSig();
  15.  
  16.    public Class getDeclaringClass() {
  17.       return this.clazz;
  18.    }
  19.  
  20.    public native boolean catchesException(Throwable var1, PC var2);
  21.  
  22.    public String toString() {
  23.       return this.clazz.getName() + "." + this.getName() + this.getSig();
  24.    }
  25.  
  26.    public int hashCode() {
  27.       return this.clazz.hashCode() + this.getName().hashCode() + this.getSig().hashCode();
  28.    }
  29. }
  30.