@Override public String toString(int nesting) { String start = Rule.getIndent(nesting); StringBuilder txt = new StringBuilder(start); txt.append(getName()); txt.append(" "); txt.append(getDeclarationsString(nesting)); return txt.toString(); }
public String getDeclarationsString(int nesting) { String start = Rule.getIndent(nesting); StringBuilder txt = new StringBuilder("{"); txt.append(declarations.innerString(nesting + 1)); txt.append("\n").append(start).append("}"); return txt.toString(); }