Changeset 14132


Ignore:
Timestamp:
08/22/12 20:44:30 (9 years ago)
Author:
ehuelsmann
Message:

Make Symbol.toString() print something developer-readable to
help debugging in NetBeans?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Symbol.java

    r14018 r14132  
    942942      return this;
    943943  }
     944    }
     945   
     946    @Override
     947    public String toString() {
     948        StringBuilder sb = new StringBuilder();
     949        if (pkg instanceof Package) {
     950            sb.append(((Package)pkg).getName());
     951            sb.append(":");
     952        } else {
     953            sb.append("#:");
     954        }
     955        sb.append(name);
     956        return sb.toString();
    944957    }
    945958
Note: See TracChangeset for help on using the changeset viewer.