本文整理汇总了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;
}