public abstract class SyntaxUpdateTokens extends Object
Document.putProperty(SyntaxUpdateNotify.class, inst)
to assign an instance of this class to the particular document.
DocumentListener
s can then retrieve
the list of the relexed tokens of interest by usingModifier and Type | Class and Description |
---|---|
class |
SyntaxUpdateTokens.TokenInfo |
Constructor and Description |
---|
SyntaxUpdateTokens() |
Modifier and Type | Method and Description |
---|---|
static List |
getTokenInfoList(Document doc)
Create list of tokens of interest for the whole document.
|
static List |
getTokenInfoList(DocumentEvent evt)
Retrieve unmodifiable list of relexed tokens of interest for the particular
document event.
|
abstract List |
syntaxUpdateEnd()
Notification that updating of lexical states has ended
so there will be no more tokens relexed for the modification.
|
abstract void |
syntaxUpdateStart()
Notification that updating of the lexical states is starting
for the last performed modification.
|
abstract void |
syntaxUpdateToken(TokenID id,
TokenContextPath contextPath,
int offset,
int length)
Notification that a token was found during updating
of lexical states.
|
public static List getTokenInfoList(DocumentEvent evt)
evt
- document event for which the list of tokens is being retrieved.SyntaxUpdateTokens.TokenInfo
s describing the tokens of interest
that were relexed because of the document modification.public static List getTokenInfoList(Document doc)
doc
- document for which the list of tokens is being retrieved.SyntaxUpdateTokens.TokenInfo
s describing the tokens of interest
throughout the whole document.public abstract void syntaxUpdateStart()
public abstract List syntaxUpdateEnd()
public abstract void syntaxUpdateToken(TokenID id, TokenContextPath contextPath, int offset, int length)