@Test public void testParamDocNonJavaDoc() { final CommentProcessor commentProcessor = new CommentProcessor(); @SuppressWarnings("unchecked") List<JavaComment> comments = list(_JavaEOLComment(" assertEquals(Util.<JavaComment>list(), commentProcessor.paramDoc("foo", comments)); }
public List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>(originals.size()); for (JavaComment original : originals) { original._switch(new JavaComment.SwitchBlock() { @Override public void _case(JavaDocComment x) { paramDocSections(paramName, x.tagSections, results); } @Override public void _case(JavaBlockComment x) { } @Override public void _case(JavaEOLComment x) { } }); } return results; }
CommentProcessor { public List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>(originals.size()); for (JavaComment original : originals) { original._switch(new JavaComment.SwitchBlock() { @Override public void _case(JavaDocComment x) { paramDocSections(paramName, x.tagSections, results); } @Override public void _case(JavaBlockComment x) { } @Override public void _case(JavaEOLComment x) { } }); } return results; } }
CommentProcessor { public List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>(originals.size()); for (JavaComment original : originals) { original._switch(new JavaComment.SwitchBlock() { @Override public void _case(JavaDocComment x) { paramDocSections(paramName, x.tagSections, results); } @Override public void _case(JavaBlockComment x) { } @Override public void _case(JavaEOLComment x) { } }); } return results; }  }
CommentProcessor { public List<JavaComment> paramDoc(final String paramName, List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>(originals.size()); for (JavaComment original : originals) { original._switch(new JavaComment.SwitchBlock() { @Override public void _case(JavaDocComment x) { paramDocSections(paramName, x.tagSections, results); } @Override public void _case(JavaBlockComment x) { } @Override public void _case(JavaEOLComment 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> paramDoc(final String paramName, List<JavaComment> originals) { final List<JavaComment> results = new ArrayList<JavaComment>(originals.size()); for (JavaComment original : originals) { original._switch(new JavaComment.SwitchBlock() { @Override public void _case(JavaDocComment x) { paramDocSections(paramName, x.tagSections, results); } @Override public void _case(JavaBlockComment x) { } @Override public void _case(JavaEOLComment 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);  }