Class LineInfo
java.lang.Object
com.vladsch.flexmark.util.sequence.LineInfo
Line information in LineAppendable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineInfo.Flags
static final LineInfo.Flags
static final int
static final int
static final int
final int
final int
final int
final CharSequence
static final LineInfo
final int
static final LineInfo.Flags
final int
final int
final int
final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LineInfo
(@NotNull CharSequence lineSeq, int index, int prefixLength, int textLength, int length, int sumPrefixLength, int sumTextLength, int sumLength, boolean isBlankPrefix, boolean isBlankText, @NotNull LineInfo.Preformatted preformatted) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull LineInfo
static @NotNull LineInfo
create
(@NotNull CharSequence line, int prefixLength, int textLength, int length, boolean isBlankPrefix, boolean isBlankText, @NotNull LineInfo.Preformatted preformatted) static @NotNull LineInfo
create
(@NotNull CharSequence line, @NotNull LineInfo prevInfo, int prefixLength, int textLength, int length, boolean isBlankPrefix, boolean isBlankText, @NotNull LineInfo.Preformatted preformatted) @NotNull BasedSequence
getEOL()
@NotNull BasedSequence
getLine()
@NotNull BasedSequence
@NotNull BasedSequence
@NotNull LineInfo.Preformatted
@NotNull BasedSequence
getText()
int
@NotNull BasedSequence
int
boolean
boolean
boolean
NOTE: a line which consists of any prefix and blank text is considered a blank lineboolean
boolean
isNull()
boolean
boolean
needAggregateUpdate
(LineInfo other) See if replacing this line info with another requires updating all following line info because of aggregation changetoString()
-
Field Details
-
BLANK_PREFIX
-
BLANK_TEXT
-
PREFORMATTED
-
F_PREFORMATTED
public static final int F_PREFORMATTED -
F_BLANK_PREFIX
public static final int F_BLANK_PREFIX -
F_BLANK_TEXT
public static final int F_BLANK_TEXT -
NULL
-
lineSeq
-
index
public final int index -
prefixLength
public final int prefixLength -
textLength
public final int textLength -
length
public final int length -
sumPrefixLength
public final int sumPrefixLength -
sumTextLength
public final int sumTextLength -
sumLength
public final int sumLength -
flags
public final int flags
-
-
Constructor Details
-
LineInfo
private LineInfo(@NotNull @NotNull CharSequence lineSeq, int index, int prefixLength, int textLength, int length, int sumPrefixLength, int sumTextLength, int sumLength, boolean isBlankPrefix, boolean isBlankText, @NotNull @NotNull LineInfo.Preformatted preformatted)
-
-
Method Details
-
needAggregateUpdate
See if replacing this line info with another requires updating all following line info because of aggregation change- Parameters:
other
- line info- Returns:
- true if need to update
-
isNull
public boolean isNull() -
isNotNull
public boolean isNotNull() -
isBlankPrefix
public boolean isBlankPrefix() -
isBlankText
public boolean isBlankText() -
isPreformatted
public boolean isPreformatted() -
getPreformatted
-
isBlankTextAndPrefix
public boolean isBlankTextAndPrefix()NOTE: a line which consists of any prefix and blank text is considered a blank line- Returns:
- true if the line is a blank line
-
getTextStart
public int getTextStart() -
getTextEnd
public int getTextEnd() -
getLine
-
getPrefix
-
getTextNoEOL
-
getText
-
getLineNoEOL
-
getEOL
-
toString
-
create
@NotNull public static @NotNull LineInfo create(@NotNull @NotNull CharSequence line, int prefixLength, int textLength, int length, boolean isBlankPrefix, boolean isBlankText, @NotNull @NotNull LineInfo.Preformatted preformatted) -
create
@NotNull public static @NotNull LineInfo create(@NotNull @NotNull CharSequence line, @NotNull @NotNull LineInfo prevInfo, int prefixLength, int textLength, int length, boolean isBlankPrefix, boolean isBlankText, @NotNull @NotNull LineInfo.Preformatted preformatted) -
create
-