站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

TokenItem (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Interface TokenItem

All Known Implementing Classes:
TokenItem.AbstractItem, TokenItem.FilterItem

public interface TokenItem

Token-item presents a token as a piece information without dependence on a character buffer and it enables to chain the token-items in both directions.


Nested Class Summary
static class TokenItem.AbstractItem
          Abstract implementation that doesn't contain chaining methods.
static class TokenItem.FilterItem
          Implementation useful for delegation.
 
Method Summary
 String getImage()
          Get the image of this token.
 TokenItem getNext()
          Get next token-item in the text.
 int getOffset()
          Get the position of the token in the document
 TokenItem getPrevious()
          Get previous token-item in the text.
 TokenContextPath getTokenContextPath()
          Get the token-id of this token-item
 TokenID getTokenID()
          Get the token-id of this token-item
 

Method Detail

getTokenID

TokenID getTokenID()
Get the token-id of this token-item


getTokenContextPath

TokenContextPath getTokenContextPath()
Get the token-id of this token-item


getOffset

int getOffset()
Get the position of the token in the document


getImage

String getImage()
Get the image of this token.


getNext

TokenItem getNext()
Get next token-item in the text. It returns null if there's no more next tokens in the text. It can throw IllegalStateException in case the document was changed so the token-item chain becomes invalid.


getPrevious

TokenItem getPrevious()
Get previous token-item in the text. It returns null if there's no more previous tokens in the text. It can throw IllegalStateException in case the document was changed so the token-item chain becomes invalid.


org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.