APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.jline.reader.impl

public Class DefaultHighlighter

extends Object
implements Highlighter
Class Inheritance
All Implemented Interfaces
jdk.internal.org.jline.reader.Highlighter
Imports
java.util.regex.Pattern, jdk.internal.org.jline.reader.Highlighter, .LineReader, .LineReader.RegionType, jdk.internal.org.jline.utils.AttributedString, .AttributedStringBuilder, .AttributedStyle, .WCWidth

Field Summary

Modifier and TypeField and Description
protected int
protected Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
commandStyle(LineReader reader, AttributedStringBuilder sb, boolean enable)

public AttributedString
public void
setErrorIndex(int errorIndex)

Implements jdk.internal.org.jline.reader.Highlighter.setErrorIndex.

Set error index to be highlighted

public void
setErrorPattern(Pattern errorPattern)

Implements jdk.internal.org.jline.reader.Highlighter.setErrorPattern.

Set error pattern to be highlighted

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorIndexback to summary
protected int errorIndex
errorPatternback to summary
protected Pattern errorPattern

Constructor Detail

DefaultHighlighterback to summary
public DefaultHighlighter()

Method Detail

commandStyleback to summary
protected void commandStyle(LineReader reader, AttributedStringBuilder sb, boolean enable)
highlightback to summary
public AttributedString highlight(LineReader reader, String buffer)

Implements jdk.internal.org.jline.reader.Highlighter.highlight.

Doc from jdk.internal.org.jline.reader.Highlighter.highlight.

Highlight buffer

Annotations
@Override
setErrorIndexback to summary
public void setErrorIndex(int errorIndex)

Implements jdk.internal.org.jline.reader.Highlighter.setErrorIndex.

Doc from jdk.internal.org.jline.reader.Highlighter.setErrorIndex.

Set error index to be highlighted

Annotations
@Override
setErrorPatternback to summary
public void setErrorPattern(Pattern errorPattern)

Implements jdk.internal.org.jline.reader.Highlighter.setErrorPattern.

Doc from jdk.internal.org.jline.reader.Highlighter.setErrorPattern.

Set error pattern to be highlighted

Annotations
@Override