public class DefaultHighlighter extends Object implements Highlighter
| Modifier and Type | Field and Description |
|---|---|
protected int |
errorIndex |
protected Pattern |
errorPattern |
| Constructor and Description |
|---|
DefaultHighlighter() |
| Modifier and Type | Method and Description |
|---|---|
AttributedString |
highlight(LineReader reader,
String buffer)
Highlight buffer
|
void |
setErrorIndex(int errorIndex)
Set error index to be highlighted
|
void |
setErrorPattern(Pattern errorPattern)
Set error pattern to be highlighted
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefreshprotected Pattern errorPattern
protected int errorIndex
public void setErrorPattern(Pattern errorPattern)
HighlightersetErrorPattern in interface HighlightererrorPattern - error pattern to be highlightedpublic void setErrorIndex(int errorIndex)
HighlightersetErrorIndex in interface HighlightererrorIndex - error index to be highlightedpublic AttributedString highlight(LineReader reader, String buffer)
Highlighterhighlight in interface Highlighterreader - LineReaderbuffer - the buffer to be highlightedCopyright © 2023. All rights reserved.