home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / tools / debug / StackFrame.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  1.2 KB  |  25 lines

  1. package sun.tools.debug;
  2.  
  3. public class StackFrame {
  4.    Class clazz;
  5.    String className;
  6.    String methodName;
  7.    // $FF: renamed from: pc int
  8.    int field_0;
  9.    int pcAbsolute;
  10.    int lineno;
  11.    LocalVariable[] localVariables;
  12.  
  13.    public String toString() {
  14.       if (this.field_0 == -1) {
  15.          return this.className + "." + this.methodName + " (native method)";
  16.       } else if (this.lineno == -1) {
  17.          return this.className + "." + this.methodName + " (pc " + this.field_0 + ")";
  18.       } else {
  19.          int var1 = this.className.lastIndexOf(46);
  20.          String var2 = var1 >= 0 ? this.className.substring(var1 + 1) : this.className;
  21.          return this.className + "." + this.methodName + " (" + var2 + ":" + Integer.toString(this.lineno) + ")";
  22.       }
  23.    }
  24. }
  25.