Code example for StringWriter

Methods: appendtoString

0
            this.name = name;
            this.args.addAll(Arrays.asList(args));
        } 
 
        @Override public String toString(){
            StringWriter out = new StringWriter();
            if(jdoc.size() > 0){
                out.append("\t/**\n");
                out.append("\t * " + Fp.join("\n\t * ", jdoc));
                out.append("\t */\n");
            } 
            out.append("\t" + Fp.join(" ", attrs) + " " + Fp.join(" ", mods) + " " + type + " " + name + "(" + Fp.join(", ", args) + "){\n");
            out.append("\t\t" + Fp.join("\n\t\t", body) + "\n");
            out.append("\t}\n");
            return out.toString();
        } 
    } 
}