public String toString(boolean rendered) { if (!rendered) { return Utils.join(all.iterator(), "\n"); } if (tool == null) { throw new IllegalStateException( String.format("No %s instance is available.", Tool.class.getName())); } StringBuilder buf = new StringBuilder(); for (ANTLRMessage m : all) { ST st = tool.errMgr.getMessageTemplate(m); buf.append(st.render()); buf.append("\n"); } return buf.toString(); }
@Override public String toString() { return Utils.join(Arrays.asList(opnds).iterator(), "||"); }