Exemplo n.º 1
0
  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();
  }
Exemplo n.º 2
0
 @Override
 public String toString() {
   return Utils.join(Arrays.asList(opnds).iterator(), "||");
 }