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>lineIndentsprivate 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 voidadd(@NotNull BasedSequence lineWithEOL, int lineIndent)voidaddAll(@NotNull java.util.List<BasedSequence> lines, java.util.List<java.lang.Integer> lineIndents)@NotNull BasedSequencegetContents()@NotNull BasedSequencegetContents(int startLine, int endLine)intgetEndOffset()@NotNull BasedSequencegetLine(int line)intgetLineCount()intgetLineIndent()@NotNull java.util.List<java.lang.Integer>getLineIndents()@NotNull java.util.List<BasedSequence>getLines()intgetSourceLength()@NotNull BasedSequencegetSpanningChars()intgetStartOffset()@NotNull java.lang.StringgetString()booleanhasSingleLine()@NotNull BlockContentsubContents(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()
-
-