|
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.Objectjava.util.EventObject
org.netbeans.api.lexer.TokenHierarchyEvent
public final class TokenHierarchyEvent
Description of the changes made in a token hierarchy.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Method Summary | ||
|---|---|---|
int |
affectedEndOffset()
Get end offset of the area that was affected by the attached token change(s). |
|
int |
affectedStartOffset()
Get start offset of the area that was affected by the attached token change(s). |
|
int |
insertedLength()
Get number of characters inserted by the text modification that caused this token change. |
|
int |
modificationOffset()
Get offset in the input source where the modification occurred. |
|
int |
removedLength()
Get number of characters removed by the text modification that caused this token change. |
|
TokenChange<? extends TokenId> |
tokenChange()
Get the token change that occurred in the tokens at the top-level of the token hierarchy. |
|
|
tokenChange(Language<T> language)
Get the token change if the top level of the token hierarchy contains tokens of the given language. |
|
TokenHierarchy<?> |
tokenHierarchy()
Get source of this event as a token hierarchy instance. |
|
TokenHierarchyEventType |
type()
Get reason why a token hierarchy event was fired. |
|
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public TokenHierarchy<?> tokenHierarchy()
public TokenHierarchyEventType type()
public TokenChange<? extends TokenId> tokenChange()
public <T extends TokenId> TokenChange<T> tokenChange(Language<T> language)
language - non-null language.
public int affectedStartOffset()
public int affectedEndOffset()
public int modificationOffset()
TokenHierarchyEventType.MODIFICATION.public int insertedLength()
TokenHierarchyEventType.MODIFICATION.public int removedLength()
TokenHierarchyEventType.MODIFICATION.
|
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 | |||||||||