@Test public void testComments() { @SuppressWarnings("unchecked") final List<JavaComment> comments = Util.<JavaComment>list(_JavaDocComment(""), _JavaBlockComment(list(list(BLOCKSTART, BLOCKONEWS, _BlockWord("hello"), BLOCKONEWS, BLOCKEND))), _JavaEOLComment(" assertEquals("\n\n }
public static String printComments(String indent, List<JavaComment> comments) { final StringBuilder builder = new StringBuilder(); for (JavaComment comment : comments) { builder.append(print(indent, comment)); builder.append("\n"); } return builder.toString(); }
ASTPrinter { public static String printComments(String indent, List<JavaComment> comments) { final StringBuilder builder = new StringBuilder(); for (JavaComment comment : comments) { builder.append(print(indent, comment)); builder.append("\n"); } return builder.toString(); } }
ASTPrinter { public static String printComments(String indent, List<JavaComment> comments) { final StringBuilder builder = new StringBuilder(); for (JavaComment comment : comments) { builder.append(print(indent, comment)); builder.append("\n"); } return builder.toString(); }  }
ASTPrinter { public static String printComments(String indent, List<JavaComment> comments) { final StringBuilder builder = new StringBuilder(); for (JavaComment comment : comments) { builder.append(print(indent, comment)); builder.append("\n"); } return builder.toString(); }  static String print(Doc doc); static String printComments(String indent, List<JavaComment> comments); static String print(final String indent, JavaComment comment); static String print(DataType dataType); static String print(Constructor constructor); static String print(Arg arg); static String printArgModifiers(List<ArgModifier> modifiers); static String print(Type type); static String print(RefType type); static String print(PrimitiveType type); static String print(ArgModifier modifier); static String print(final Literal literal); static String print(Expression expression); static String print(Annotation annotation); static String print(AnnotationElement value); static String print(AnnotationValue value); static String print(BinaryOperator op); }
ASTPrinter { public static String printComments(String indent, List<JavaComment> comments) { final StringBuilder builder = new StringBuilder(); for (JavaComment comment : comments) { builder.append(print(indent, comment)); builder.append("\n"); } return builder.toString(); }  static String print(Doc doc); static String printComments(String indent, List<JavaComment> comments); static String print(final String indent, JavaComment comment); static String print(DataType dataType); static String print(Constructor constructor); static String print(Arg arg); static String printArgModifiers(List<ArgModifier> modifiers); static String print(Type type); static String print(RefType type); static String print(PrimitiveType type); static String print(ArgModifier modifier); static String print(final Literal literal); static String print(Expression expression); static String print(Annotation annotation); static String print(AnnotationElement value); static String print(AnnotationValue value); static String print(BinaryOperator op);  }