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

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

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

org.netbeans.editor.ext
Interface FormatTokenPosition


public interface FormatTokenPosition

Position consisting of the token-item and the offset inside it. The offset can range from zero to the last character in the token-text. The position right after the last character in the last token is expressed by token equal to null and offset equal to zero. The equality is defined as having the same offset in the same token. The token is compared just by equality operator.


Method Summary
 Position.Bias getBias()
          Get the bias of the position.
 int getOffset()
          Get the offset inside the token-item.
 TokenItem getToken()
          Get the token-item in which the position resides.
 

Method Detail

getToken

TokenItem getToken()
Get the token-item in which the position resides.


getOffset

int getOffset()
Get the offset inside the token-item.


getBias

Position.Bias getBias()
Get the bias of the position. Either Position.Bias.Forward or Position.Bias.Backward.


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.