public abstract class MutableTextInput<I> extends Object
The input can temporarily be made inactive which leads to dropping of all the present tokens for the input until the input becomes active again.
Constructor and Description |
---|
MutableTextInput() |
Modifier and Type | Method and Description |
---|---|
protected abstract InputAttributes |
inputAttributes()
Get lexer-specific information about this input
or null if there is no specific information.
|
protected abstract I |
inputSource()
Get object that logically provides the text
for this mutable text input.
|
protected abstract boolean |
isReadLocked()
Called by infrastructure to check if the underlying input source is currently
read-locked by the current thread.
|
protected abstract boolean |
isWriteLocked()
Called by infrastructure to check if the underlying input source is currently
write-locked by the current thread.
|
protected abstract Language<?> |
language()
Get the language suitable for lexing of this input.
|
protected abstract CharSequence |
text()
Get the character sequence provided and maintained by this input.
|
TokenHierarchyControl<I> |
tokenHierarchyControl()
Get token hierarchy control for this mutable text input.
|
protected abstract Language<?> language()
protected abstract CharSequence text()
protected abstract InputAttributes inputAttributes()
protected abstract I inputSource()
Document
in case the result of MutableTextInput.text()
is the content of the document.protected abstract boolean isReadLocked()
-J-Dorg.netbeans.lib.lexer.TokenHierarchyUpdate.level=FINE
MutableTextInput.isWriteLocked()
returns true that this method will also return true automatically.
TokenHierarchy.tokenSequence()
.TokenHierarchy.tokenSequenceList(LanguagePath,int,int)
.protected abstract boolean isWriteLocked()
-J-Dorg.netbeans.lib.lexer.TokenHierarchyUpdate.level=FINE
TokenHierarchyControl.textModified(int,int,CharSequence,int)
TokenSequence.createEmbedding(Language,int,int)
.TokenSequence.removeEmbedding(Language)
.public final TokenHierarchyControl<I> tokenHierarchyControl()
getProperty(TokenHierarchyControl.class)
.