@Test public void testJavaDocOnly() { final CommentProcessor commentProcessor = new CommentProcessor(); JavaComment javaDocComment = _JavaDocComment(""); @SuppressWarnings("unchecked") List<JavaComment> comments = list(javaDocComment, _JavaEOLComment(" assertEquals(list(javaDocComment), commentProcessor.javaDocOnly(comments)); }
public List<JavaComment> javaDocOnly(final List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>( originals.size()); for (JavaComment comment : originals) { comment._switch(new JavaComment.SwitchBlockWithDefault() { @Override public void _case(JavaDocComment x) { results.add(x); } @Override protected void _default(JavaComment x) { } }); } return results; }
CommentProcessor { public List<JavaComment> javaDocOnly(final List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>( originals.size()); for (JavaComment comment : originals) { comment._switch(new JavaComment.SwitchBlockWithDefault() { @Override public void _case(JavaDocComment x) { results.add(x); } @Override protected void _default(JavaComment x) { } }); } return results; } }
CommentProcessor { public List<JavaComment> javaDocOnly(final List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>( originals.size()); for (JavaComment comment : originals) { comment._switch(new JavaComment.SwitchBlockWithDefault() { @Override public void _case(JavaDocComment x) { results.add(x); } @Override protected void _default(JavaComment x) { } }); } return results; }  }
CommentProcessor { public List<JavaComment> javaDocOnly(final List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>( originals.size()); for (JavaComment comment : originals) { comment._switch(new JavaComment.SwitchBlockWithDefault() { @Override public void _case(JavaDocComment x) { results.add(x); } @Override protected void _default(JavaComment x) { } }); } return results; }  List<JavaComment> javaDocOnly(final List<JavaComment> originals); List<JavaComment> stripTags(final Set<String> tagNames,
            List<JavaComment> originals); List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals); List<JavaComment> leftAlign(List<JavaComment> originals); }
CommentProcessor { public List<JavaComment> javaDocOnly(final List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>( originals.size()); for (JavaComment comment : originals) { comment._switch(new JavaComment.SwitchBlockWithDefault() { @Override public void _case(JavaDocComment x) { results.add(x); } @Override protected void _default(JavaComment x) { } }); } return results; }  List<JavaComment> javaDocOnly(final List<JavaComment> originals); List<JavaComment> stripTags(final Set<String> tagNames,
            List<JavaComment> originals); List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals); List<JavaComment> leftAlign(List<JavaComment> originals);  }