/** * Provides a pretty print representation with recursive descent. */ @Override public String toString(int i) { final StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); final Integer bopId = (Integer) getProperty(Annotations.BOP_ID); if (bopId != null) { sb.append("[" + bopId + "]"); } sb.append("("); int nwritten = 0; final Iterator<BOp> itr = argIterator(); while(itr.hasNext()) { final BOp t = itr.next(); if (nwritten > 0) sb.append(','); if (t == null) { sb.append("<null>"); } else { sb.append(((IValueExpressionNode)t).toString(i+1)); } nwritten++; } sb.append(")"); annotationsToString(sb, i); return sb.toString(); }
/** * Provides a pretty print representation with recursive descent. */ @Override public String toString(int i) { final StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); final Integer bopId = (Integer) getProperty(Annotations.BOP_ID); if (bopId != null) { sb.append("[" + bopId + "]"); } sb.append("("); int nwritten = 0; final Iterator<BOp> itr = argIterator(); while(itr.hasNext()) { final BOp t = itr.next(); if (nwritten > 0) sb.append(','); if (t == null) { sb.append("<null>"); } else { sb.append(((IValueExpressionNode)t).toString(i+1)); } nwritten++; } sb.append(")"); annotationsToString(sb, i); return sb.toString(); }