@Test public void testCanParse() { assertThat(parser.canParse(tag)).isTrue(); assertThat(parser.canParse(StringUtils.reverse(tag))).isFalse(); }
@Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return line.startsWith(tag); }
SingleTagParser extends AbstractIndexedParser<String> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return line.startsWith(tag); } }
SingleTagParser extends AbstractIndexedParser<String> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return line.startsWith(tag); } SingleTagParser(final String tag); }
SingleTagParser extends AbstractIndexedParser<String> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return line.startsWith(tag); } SingleTagParser(final String tag); @Override boolean canParse(final String line); @Override String parse(final int startingIndex, final List<String> lines); }
SingleTagParser extends AbstractIndexedParser<String> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return line.startsWith(tag); } SingleTagParser(final String tag); @Override boolean canParse(final String line); @Override String parse(final int startingIndex, final List<String> lines);  }