/** * Returns a description of this token, for debugging purposes. */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append('[').append(getTokenName(type)); if (line != -1) { buf.append('@').append(line); if (column != -1) buf.append(',').append(column); } buf.append("]:"); if (text != null) buf.append('"').append(text).append('"'); else if (type > 3 && type < 256) buf.append( (char)type ); else buf.append('<').append(type).append('>'); if (value != null) buf.append('=').append(value); return buf.toString(); }
/** * Returns a description of this token, for debugging purposes. */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append('[').append(getTokenName(type)); if (line != -1) { buf.append('@').append(line); if (column != -1) buf.append(',').append(column); } buf.append("]:"); if (text != null) buf.append('"').append(text).append('"'); else if (type > 3 && type < 256) buf.append( (char)type ); else buf.append('<').append(type).append('>'); if (value != null) buf.append('=').append(value); return buf.toString(); }
/** * Returns a description of this token, for debugging purposes. */ @Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append('[').append(getTokenName(type)); if (line != -1) { buf.append('@').append(line); if (column != -1) buf.append(',').append(column); } buf.append("]:"); if (text != null) buf.append('"').append(text).append('"'); else if (type > 3 && type < 256) buf.append((char) type); else buf.append('<').append(type).append('>'); if (value != null) buf.append('=').append(value); return buf.toString(); }