APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.org.jline.utils

public abstract Class AttributedCharSequence

extends Object
implements CharSequence
Class Inheritance
All Implemented Interfaces
java.lang.CharSequence
Known Direct Subclasses
jdk.internal.org.jline.utils.AttributedString, jdk.internal.org.jline.utils.AttributedStringBuilder
Imports
java.util.ArrayList, .List, jdk.internal.org.jline.terminal.Terminal, jdk.internal.org.jline.terminal.impl.AbstractWindowsTerminal, jdk.internal.org.jline.utils.InfoCmp.Capability

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
private static final int
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
attr(StringBuilder sb, String s, boolean first)

protected abstract char[]
public char
charAt(int index)

Implements java.lang.CharSequence.charAt.

Returns the char value at the specified index.

public int
codePointAt(int index)

public int
codePointBefore(int index)

public int
codePointCount(int index, int length)

public int
public List<AttributedString>
columnSplitLength(int columns)

public List<AttributedString>
columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap)

public AttributedString
columnSubSequence(int start, int stop)

public boolean
contains(char c)

public boolean
isHidden(int index)

protected abstract int
public void
println(Terminal terminal)

public static int
rgbColor(int col)
Deprecated

public static int
roundColor(int col, int max)
Deprecated

public static int
roundRgbColor(int r, int g, int b, int max)
Deprecated

public int
runLimit(int index)

public int
runStart(int index)

public abstract AttributedStyle
styleAt(int index)

pack-priv long
styleCodeAt(int index)

public abstract AttributedString
subSequence(int start, int end)

Redeclares java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence.

public AttributedString
substring(int start, int end)

public String
public String
toAnsi(Terminal terminal)

public String
toAnsi(int colors, boolean force256colors)
Deprecated

public String
toAnsi(int colors, boolean force256colors, String altIn, String altOut)
Deprecated

public String
public String
public String
toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut)

public AttributedString
public String
toString()

Overrides java.lang.Object.toString.

Implements java.lang.CharSequence.toString.

Returns a string containing the characters in this sequence in the same order as this sequence.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DISABLE_ALTERNATE_CHARSETback to summary
pack-priv static final boolean DISABLE_ALTERNATE_CHARSET
HIGH_COLORSback to summary
private static final int HIGH_COLORS
TRUE_COLORSback to summary
public static final int TRUE_COLORS

Constructor Detail

AttributedCharSequenceback to summary
public AttributedCharSequence()

Method Detail

attrback to summary
private static boolean attr(StringBuilder sb, String s, boolean first)
bufferback to summary
protected abstract char[] buffer()
charAtback to summary
public char charAt(int index)

Implements java.lang.CharSequence.charAt.

Doc from java.lang.CharSequence.charAt.

Returns the char value at the specified index. An index ranges from zero to length() - 1. The first char value of the sequence is at index zero, the next at index one, and so on, as for array indexing.

If the char value specified by the index is a surrogate, the surrogate value is returned.

Annotations
@Override
codePointAtback to summary
public int codePointAt(int index)
codePointBeforeback to summary
public int codePointBefore(int index)
codePointCountback to summary
public int codePointCount(int index, int length)
columnLengthback to summary
public int columnLength()
columnSplitLengthback to summary
public List<AttributedString> columnSplitLength(int columns)
columnSplitLengthback to summary
public List<AttributedString> columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap)
columnSubSequenceback to summary
public AttributedString columnSubSequence(int start, int stop)
containsback to summary
public boolean contains(char c)
isHiddenback to summary
public boolean isHidden(int index)
offsetback to summary
protected abstract int offset()
printlnback to summary
public void println(Terminal terminal)
rgbColorback to summary
public static int rgbColor(int col)

Deprecated

Annotations
@Deprecated
roundColorback to summary
public static int roundColor(int col, int max)

Deprecated

Annotations
@Deprecated
roundRgbColorback to summary
public static int roundRgbColor(int r, int g, int b, int max)

Deprecated

Annotations
@Deprecated
runLimitback to summary
public int runLimit(int index)
runStartback to summary
public int runStart(int index)
styleAtback to summary
public abstract AttributedStyle styleAt(int index)
styleCodeAtback to summary
pack-priv long styleCodeAt(int index)
subSequenceback to summary
public abstract AttributedString subSequence(int start, int end)

Redeclares java.lang.CharSequence.subSequence.

Doc from java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence. The subsequence starts with the char value at the specified index and ends with the char value at index end - 1. The length (in chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.

Annotations
@Override
substringback to summary
public AttributedString substring(int start, int end)
toAnsiback to summary
public String toAnsi()
toAnsiback to summary
public String toAnsi(Terminal terminal)
toAnsiback to summary
public String toAnsi(int colors, boolean force256colors)

Deprecated

Annotations
@Deprecated
toAnsiback to summary
public String toAnsi(int colors, boolean force256colors, String altIn, String altOut)

Deprecated

Annotations
@Deprecated
toAnsiback to summary
public String toAnsi(int colors, AttributedCharSequence.ForceMode force)
toAnsiback to summary
public String toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette)
toAnsiback to summary
public String toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut)
toAttributedStringback to summary
public AttributedString toAttributedString()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.lang.CharSequence.toString.

Doc from java.lang.CharSequence.toString.

Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.

Annotations
@Override
jdk.internal.org.jline.utils back to summary

public final Enum AttributedCharSequence.ForceMode

extends Enum<AttributedCharSequence.ForceMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AttributedCharSequence.ForceMode
public static final AttributedCharSequence.ForceMode
public static final AttributedCharSequence.ForceMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AttributedCharSequence.ForceMode
public static AttributedCharSequence.ForceMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Force256Colorsback to summary
public static final AttributedCharSequence.ForceMode Force256Colors
ForceTrueColorsback to summary
public static final AttributedCharSequence.ForceMode ForceTrueColors
Noneback to summary
public static final AttributedCharSequence.ForceMode None

Constructor Detail

ForceModeback to summary
private ForceMode()

Method Detail

valueOfback to summary
public static AttributedCharSequence.ForceMode valueOf(String name)
valuesback to summary
public static AttributedCharSequence.ForceMode[] values()