public abstract class TokenMarker
extends Object
For performance reasons, the linked list of tokens is reused after each
line is tokenized. Therefore, the return value of markTokens
should only be used for immediate painting. Notably, it cannot be
cached.
Modifier and Type | Class and Description |
---|---|
static interface |
TokenMarker.TokenListener |
Modifier and Type | Method and Description |
---|---|
abstract void |
addColoring(String keyword,
String coloring) |
TokenMarkerState |
createStateInstance() |
void |
setTokenListener(TokenMarker.TokenListener listener) |
boolean |
supportsMultilineTokens()
Returns if the token marker supports tokens that span multiple
lines.
|
public final void setTokenListener(TokenMarker.TokenListener listener)
public final TokenMarkerState createStateInstance()
public abstract void addColoring(String keyword, String coloring)
public boolean supportsMultilineTokens()
markTokens()
method (in turn).
The default implementation returns true; it should be overridden to return false on simpler token markers for increased speed.