Package com.vladsch.flexmark.util.ast
Class BlockContent
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.BlockContent
-
public class BlockContent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<java.lang.Integer>
lineIndents
private java.util.ArrayList<BasedSequence>
lines
-
Constructor Summary
Constructors Constructor Description BlockContent()
BlockContent(@NotNull BlockContent other, int startLine, int lineIndent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(@NotNull BasedSequence lineWithEOL, int lineIndent)
void
addAll(@NotNull java.util.List<BasedSequence> lines, java.util.List<java.lang.Integer> lineIndents)
@NotNull BasedSequence
getContents()
@NotNull BasedSequence
getContents(int startLine, int endLine)
int
getEndOffset()
@NotNull BasedSequence
getLine(int line)
int
getLineCount()
int
getLineIndent()
@NotNull java.util.List<java.lang.Integer>
getLineIndents()
@NotNull java.util.List<BasedSequence>
getLines()
int
getSourceLength()
@NotNull BasedSequence
getSpanningChars()
int
getStartOffset()
@NotNull java.lang.String
getString()
boolean
hasSingleLine()
@NotNull BlockContent
subContents(int startLine, int endLine)
-
-
-
Field Detail
-
lines
private final java.util.ArrayList<BasedSequence> lines
-
lineIndents
private final java.util.ArrayList<java.lang.Integer> lineIndents
-
-
Constructor Detail
-
BlockContent
public BlockContent()
-
BlockContent
public BlockContent(@NotNull @NotNull BlockContent other, int startLine, int lineIndent)
-
-
Method Detail
-
getLine
@NotNull public @NotNull BasedSequence getLine(int line)
-
getSpanningChars
@NotNull public @NotNull BasedSequence getSpanningChars()
-
getLines
@NotNull public @NotNull java.util.List<BasedSequence> getLines()
-
getLineIndents
@NotNull public @NotNull java.util.List<java.lang.Integer> getLineIndents()
-
getLineCount
public int getLineCount()
-
getStartOffset
public int getStartOffset()
-
getEndOffset
public int getEndOffset()
-
getLineIndent
public int getLineIndent()
-
getSourceLength
public int getSourceLength()
-
add
public void add(@NotNull @NotNull BasedSequence lineWithEOL, int lineIndent)
-
addAll
public void addAll(@NotNull @NotNull java.util.List<BasedSequence> lines, java.util.List<java.lang.Integer> lineIndents)
-
hasSingleLine
public boolean hasSingleLine()
-
getContents
@NotNull public @NotNull BasedSequence getContents()
-
subContents
@NotNull public @NotNull BlockContent subContents(int startLine, int endLine)
-
getContents
@NotNull public @NotNull BasedSequence getContents(int startLine, int endLine)
-
getString
@NotNull public @NotNull java.lang.String getString()
-
-