com.vladsch.flexmark.parser.internal.BlockStartImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark Show documentation
Show all versions of flexmark Show documentation
Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)
The newest version!
package com.vladsch.flexmark.parser.internal;
import com.vladsch.flexmark.parser.block.BlockParser;
import com.vladsch.flexmark.parser.block.BlockStart;
public class BlockStartImpl extends BlockStart {
final private BlockParser[] blockParsers;
private int newIndex = -1;
private int newColumn = -1;
private boolean replaceActiveBlockParser = false;
public BlockStartImpl(BlockParser... blockParsers) {
this.blockParsers = blockParsers;
}
public BlockParser[] getBlockParsers() {
return blockParsers;
}
public int getNewIndex() {
return newIndex;
}
public int getNewColumn() {
return newColumn;
}
public boolean isReplaceActiveBlockParser() {
return replaceActiveBlockParser;
}
@Override
public BlockStart atIndex(int newIndex) {
this.newIndex = newIndex;
return this;
}
@Override
public BlockStart atColumn(int newColumn) {
this.newColumn = newColumn;
return this;
}
@Override
public BlockStart replaceActiveBlockParser() {
this.replaceActiveBlockParser = true;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy