public void show(StringBuffer sb) {
    int start;
    start = span.getStart();
    if (!type.equals(ParserME.TOK_NODE)) {
      sb.append("(");
      sb.append(type +" ");
      //System.out.print(label+" ");
      //System.out.print(head+" ");
      //System.out.print(df.format(prob)+" ");
    }
    for (Iterator i = parts.iterator(); i.hasNext();) {
      Parse c = (Parse) i.next();
      Span s = c.span;
      if (start < s.getStart()) {
        //System.out.println("pre "+start+" "+s.getStart());
        sb.append(text.substring(start, s.getStart()));
      }
      c.show(sb);
      start = s.getEnd();
    }
    sb.append(text.substring(start, span.getEnd()));
    if (!type.equals(ParserME.TOK_NODE)) {
      sb.append(")");
    }
  }
public void show ( StringBuffer sb ) { int start ; start = span . getStart ( ) ; if ( ! type . equals ( ParserME . TOK_NODE ) ) { sb . append ( "(" ) ; sb . append ( type + " " ) ; } for ( Iterator i = parts . iterator ( ) ; i . hasNext ( ) ; ) { Parse c = ( Parse ) i . next ( ) ; Span s = c . span ; if ( start < s . getStart ( ) ) { sb . append ( text . substring ( start , s . getStart ( ) ) ) ; } c . show ( sb ) ; start = s . getEnd ( ) ; } sb . append ( text . substring ( start , span . getEnd ( ) ) ) ; if ( ! type . equals ( ParserME . TOK_NODE ) ) { sb . append ( ")" ) ; } }
Appends the specified string buffer with a string representation of this parse.
@param sb A string buffer into which the parse string can be appended.