當前位置: 首頁>>代碼示例>>Java>>正文


Java BlockStart類代碼示例

本文整理匯總了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();
}
 
開發者ID:jleyba,項目名稱:js-dossier,代碼行數:17,代碼來源:TableBlockParser.java

示例2: atIndex

import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart atIndex(int newIndex) {
    this.newIndex = newIndex;
    return this;
}
 
開發者ID:atlassian,項目名稱:commonmark-java,代碼行數:6,代碼來源:BlockStartImpl.java

示例3: atColumn

import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart atColumn(int newColumn) {
    this.newColumn = newColumn;
    return this;
}
 
開發者ID:atlassian,項目名稱:commonmark-java,代碼行數:6,代碼來源:BlockStartImpl.java

示例4: replaceActiveBlockParser

import org.commonmark.parser.block.BlockStart; //導入依賴的package包/類
@Override
public BlockStart replaceActiveBlockParser() {
    this.replaceActiveBlockParser = true;
    return this;
}
 
開發者ID:atlassian,項目名稱:commonmark-java,代碼行數:6,代碼來源:BlockStartImpl.java


注:本文中的org.commonmark.parser.block.BlockStart類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。