@Test public void canStartDoesNotAdvanceLineSequencePosition() { LineSequence lineSequence = LineSequence.create("<p\n a=\"b\"\n>"); Line firstLine = lineSequence.getCurrentLine(); assertTrue(block.canStart(lineSequence)); assertSame(firstLine, lineSequence.getCurrentLine()); }
@Override public boolean canStart(LineSequence lineSequence) { Line line = lineSequence.getCurrentLine(); if (line != null) { return startPattern.matcher(line.getText()).matches(); } return false; }
HtmlBlock extends SourceBlock { @Override public boolean canStart(LineSequence lineSequence) { Line line = lineSequence.getCurrentLine(); if (line != null) { return startPattern.matcher(line.getText()).matches(); } return false; } }
HtmlBlock extends SourceBlock { @Override public boolean canStart(LineSequence lineSequence) { Line line = lineSequence.getCurrentLine(); if (line != null) { return startPattern.matcher(line.getText()).matches(); } return false; }  }
HtmlBlock extends SourceBlock { @Override public boolean canStart(LineSequence lineSequence) { Line line = lineSequence.getCurrentLine(); if (line != null) { return startPattern.matcher(line.getText()).matches(); } return false; }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence); }
HtmlBlock extends SourceBlock { @Override public boolean canStart(LineSequence lineSequence) { Line line = lineSequence.getCurrentLine(); if (line != null) { return startPattern.matcher(line.getText()).matches(); } return false; }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence);  }