public class ManifestTokenMarker extends TokenMarker
TokenMarker.LineInfo| Modifier and Type | Field and Description |
|---|---|
static byte |
VALUE |
currentTokenOffset, firstToken, lastLine, lastToken, length, lineIndex, lineInfo, nextLineRequested, offsetGap, PAT_EMPTY, syntaxListener| Constructor and Description |
|---|
ManifestTokenMarker() |
| Modifier and Type | Method and Description |
|---|---|
protected byte |
markTokensImpl(byte token,
javax.swing.text.Segment line,
int lineIndex,
boolean externalTokenizer)
Splits a line up into tokens.
|
boolean |
supportsMultilineTokens()
Returns true if the token marker supports tokens that span multiple lines.
|
addToken, deleteLines, ensureCapacity, getLineCount, getLineIndex, getLineOffsetString, getMaxLineWidth, getOffsetGap, getSyntaxListener, insertLines, isNextLineRequested, markTokens, markTokens, setLineWidth, setOffsetGap, setSyntaxListenerpublic static final byte VALUE
protected byte markTokensImpl(byte token,
javax.swing.text.Segment line,
int lineIndex,
boolean externalTokenizer)
markTokensImpl in class TokenMarkertoken - The initial token type for this lineline - The line to be tokenizedlineIndex - The index of the line in the document, starting at 0externalTokenizer - true for an external tokenizerpublic boolean supportsMultilineTokens()
TokenMarkermarkTokens() method (in turn).
The default implementation returns true. It should be overridden to return false on simpler token markers for increased speed.supportsMultilineTokens in class TokenMarkerCopyright © 2016, 2017, 2018, 2019, 2023, 2025 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence