public class CTokenMarker extends TokenMarker
TokenMarker.LineInfo| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METHOD_DELIMITERS |
currentTokenOffset, firstToken, lastLine, lastToken, length, lineIndex, lineInfo, nextLineRequested, offsetGap, PAT_EMPTY, syntaxListener| Constructor and Description |
|---|
CTokenMarker() |
CTokenMarker(boolean cpp,
boolean javadoc,
KeywordMap keywords) |
| Modifier and Type | Method and Description |
|---|---|
static KeywordMap |
getKeywords() |
java.lang.String |
getLineOffsetString(CodeEditorDefaults defaults,
SyntaxDocument document,
int offset)
Return the String offset at a specified position.
|
protected byte |
markTokensImpl(byte token,
javax.swing.text.Segment line,
int lineIndex,
boolean externalTokenizer)
Splits a line up into tokens.
|
addToken, deleteLines, ensureCapacity, getLineCount, getLineIndex, getMaxLineWidth, getOffsetGap, getSyntaxListener, insertLines, isNextLineRequested, markTokens, markTokens, setLineWidth, setOffsetGap, setSyntaxListener, supportsMultilineTokenspublic static final java.lang.String METHOD_DELIMITERS
public CTokenMarker()
public CTokenMarker(boolean cpp,
boolean javadoc,
KeywordMap keywords)
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 static KeywordMap getKeywords()
public java.lang.String getLineOffsetString(CodeEditorDefaults defaults, SyntaxDocument document, int offset)
getLineOffsetString in class TokenMarkerdefaults - the defaultsdocument - the documentoffset - the offset positionCopyright © 2016, 2017, 2018, 2019, 2023, 2025 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence