|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.editor.SyntaxUpdateTokens
public abstract class SyntaxUpdateTokens
Notification about the tokens being relexed as result of a document
modification.
The SPIs may use Document.putProperty(SyntaxUpdateNotify.class, inst)
to assign an instance of this class to the particular document.
The client DocumentListeners can then retrieve
the list of the relexed tokens of interest by using
| Nested Class Summary | |
|---|---|
class |
SyntaxUpdateTokens.TokenInfo
|
| Constructor Summary | |
|---|---|
SyntaxUpdateTokens()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxUpdateTokens()
| Method Detail |
|---|
public static List getTokenInfoList(DocumentEvent evt)
evt - document event for which the list of tokens is being retrieved.
SyntaxUpdateTokens.TokenInfos 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.TokenInfos 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)
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||