@Test public void testCanAccept() { AcceptableJavadocBlockParser parser = new AcceptableJavadocBlockParser("a", "b", "c") { @Override public IrDocBlock parse(String tag, JavadocScanner scanner) { return null; } }; assertTrue(parser.canAccept("a")); assertTrue(parser.canAccept("b")); assertTrue(parser.canAccept("c")); assertFalse(parser.canAccept("d")); assertFalse(parser.canAccept("e")); assertFalse(parser.canAccept("f")); }
@Override public boolean canAccept(String tag) { return acceptable.contains(tag); }
AcceptableJavadocBlockParser extends JavadocBlockParser { @Override public boolean canAccept(String tag) { return acceptable.contains(tag); } }
AcceptableJavadocBlockParser extends JavadocBlockParser { @Override public boolean canAccept(String tag) { return acceptable.contains(tag); } AcceptableJavadocBlockParser();  AcceptableJavadocBlockParser(String tagName, String...tagNames);  AcceptableJavadocBlockParser(String[] tagNames); }
AcceptableJavadocBlockParser extends JavadocBlockParser { @Override public boolean canAccept(String tag) { return acceptable.contains(tag); } AcceptableJavadocBlockParser();  AcceptableJavadocBlockParser(String tagName, String...tagNames);  AcceptableJavadocBlockParser(String[] tagNames); @Override boolean canAccept(String tag); }
AcceptableJavadocBlockParser extends JavadocBlockParser { @Override public boolean canAccept(String tag) { return acceptable.contains(tag); } AcceptableJavadocBlockParser();  AcceptableJavadocBlockParser(String tagName, String...tagNames);  AcceptableJavadocBlockParser(String[] tagNames); @Override boolean canAccept(String tag);  }