Package org.jline.utils
Class AttributedCharSequence
java.lang.Object
org.jline.utils.AttributedCharSequence
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
AttributedString,AttributedStringBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final booleanprivate static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanattr(StringBuilder sb, String s, boolean first) protected abstract char[]buffer()charcharAt(int index) intcodePointAt(int index) intcodePointBefore(int index) intcodePointCount(int index, int length) intcolumnSplitLength(int columns) columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap) columnSubSequence(int start, int stop) booleancontains(char c) booleanisHidden(int index) protected abstract intoffset()voidvoidstatic intrgbColor(int col) Deprecated.static introundColor(int col, int max) Deprecated.static introundRgbColor(int r, int g, int b, int max) Deprecated.intrunLimit(int index) intrunStart(int index) abstract AttributedStylestyleAt(int index) (package private) longstyleCodeAt(int index) abstract AttributedStringsubSequence(int start, int end) substring(int start, int end) toAnsi()toAnsi(int colors, boolean force256colors) Deprecated.Deprecated.toAnsi(int colors, AttributedCharSequence.ForceMode force) toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette) toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty, length
-
Field Details
-
TRUE_COLORS
public static final int TRUE_COLORS- See Also:
-
HIGH_COLORS
private static final int HIGH_COLORS- See Also:
-
DISABLE_ALTERNATE_CHARSET
static final boolean DISABLE_ALTERNATE_CHARSET
-
-
Constructor Details
-
AttributedCharSequence
public AttributedCharSequence()
-
-
Method Details
-
print
-
println
-
toAnsi
-
toAnsi
-
toAnsi
Deprecated. -
toAnsi
Deprecated. -
toAnsi
-
toAnsi
-
toAnsi
public String toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut) -
rgbColor
Deprecated. -
roundColor
Deprecated. -
roundRgbColor
Deprecated. -
attr
-
styleAt
-
styleCodeAt
long styleCodeAt(int index) -
isHidden
public boolean isHidden(int index) -
runStart
public int runStart(int index) -
runLimit
public int runLimit(int index) -
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
substring
-
buffer
protected abstract char[] buffer() -
offset
protected abstract int offset() -
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
codePointAt
public int codePointAt(int index) -
contains
public boolean contains(char c) -
codePointBefore
public int codePointBefore(int index) -
codePointCount
public int codePointCount(int index, int length) -
columnLength
public int columnLength() -
columnSubSequence
-
columnSplitLength
-
columnSplitLength
public List<AttributedString> columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap) -
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
toAttributedString
-