本文整理匯總了Java中org.commonmark.parser.block.BlockStart類的典型用法代碼示例。如果您正苦於以下問題:Java BlockStart類的具體用法?Java BlockStart怎麽用?Java BlockStart使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BlockStart類屬於org.commonmark.parser.block包,在下文中一共展示了BlockStart類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: tryStart
import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart tryStart(ParserState state, MatchedBlockParser matchedBlockParser) {
CharSequence line = state.getLine();
CharSequence previousLine = matchedBlockParser.getParagraphContent();
if (previousLine != null && previousLine.toString().contains("|")) {
line = line.subSequence(state.getIndex(), line.length());
ImmutableList<Alignment> columnAlignments = parseHeaderDivider(line);
if (!columnAlignments.isEmpty()) {
return BlockStart.of(new TableBlockParser(previousLine, columnAlignments))
.atIndex(state.getIndex())
.replaceActiveBlockParser();
}
}
return BlockStart.none();
}
示例2: atIndex
import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart atIndex(int newIndex) {
this.newIndex = newIndex;
return this;
}
示例3: atColumn
import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart atColumn(int newColumn) {
this.newColumn = newColumn;
return this;
}
示例4: replaceActiveBlockParser
import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart replaceActiveBlockParser() {
this.replaceActiveBlockParser = true;
return this;
}