public class CSSTokenMarker extends TokenMarker
TokenMarker.LineInfo
Modifier and Type | Field and Description |
---|---|
static byte |
VALUE |
firstToken, lastLine, lastToken, length, lineInfo, nextLineRequested
Constructor and Description |
---|
CSSTokenMarker() |
Modifier and Type | Method and Description |
---|---|
protected byte |
markTokensImpl(byte token,
javax.swing.text.Segment line,
int lineIndex)
Splits a line up into tokens.
|
boolean |
supportsMultilineTokens()
Returns true if the token marker supports tokens that span multiple lines.
|
addToken, deleteLines, ensureCapacity, getLineCount, getMaxLineWidth, insertLines, isNextLineRequested, markTokens, setLineWidth
public static final byte VALUE
protected byte markTokensImpl(byte token, javax.swing.text.Segment line, int lineIndex)
markTokensImpl
in class TokenMarker
token
- The initial token type for this lineline
- The line to be tokenizedlineIndex
- The index of the line in the document, starting at 0public boolean supportsMultilineTokens()
TokenMarker
markTokens()
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 TokenMarker
Copyright © 2016, 2017, 2018, 2019, 2023 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence