|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.lexer.TokenHierarchyControl<I>
public final class TokenHierarchyControl<I>
Control class for managing token hierarchy of a mutable text input.
Method Summary | |
---|---|
boolean |
isActive()
|
void |
rebuild()
Rebuild token hierarchy completely. |
void |
setActive(boolean active)
Making the token hierarchy inactive will release all the tokens in the hierarchy so that there will be no tokens. |
void |
textModified(int offset,
int removedLength,
CharSequence removedText,
int insertedLength)
Notify that the text of the mutable text input was modified. |
TokenHierarchy<I> |
tokenHierarchy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TokenHierarchy<I> tokenHierarchy()
public void textModified(int offset, int removedLength, CharSequence removedText, int insertedLength)
offset
- >=0 offset where the modification occurred.removedLength
- >=0 number of characters removed from the input.removedText
- text removed from the input. If it's not available
to determine the removed text then this parameter may be null.
insertedLength
- >=0 number of characters inserted at the offset
after the removal.public void setActive(boolean active)
public boolean isActive()
public void rebuild()
ConcurrentModificationException
.
|
org.netbeans.modules.lexer/2 1.19.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |