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

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

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

org.netbeans.editor
Class BaseTokenID

java.lang.Object
  extended by org.netbeans.editor.BaseTokenID
All Implemented Interfaces:
TokenCategory, TokenID
Direct Known Subclasses:
BaseImageTokenID

public class BaseTokenID
extends Object
implements TokenID

Base implementation of the token-id.


Constructor Summary
BaseTokenID(String name)
           
BaseTokenID(String name, int numericID)
           
BaseTokenID(String name, int numericID, TokenCategory category)
           
BaseTokenID(String name, TokenCategory category)
           
 
Method Summary
 TokenCategory getCategory()
          Get the optional category of the token.
 String getName()
          Get the name of the category.
 int getNumericID()
          Get the optional numeric identification of this token-category.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTokenID

public BaseTokenID(String name)

BaseTokenID

public BaseTokenID(String name,
                   int numericID)

BaseTokenID

public BaseTokenID(String name,
                   TokenCategory category)

BaseTokenID

public BaseTokenID(String name,
                   int numericID,
                   TokenCategory category)
Method Detail

getName

public String getName()
Description copied from interface: TokenCategory
Get the name of the category.

Specified by:
getName in interface TokenCategory

getNumericID

public int getNumericID()
Description copied from interface: TokenCategory
Get the optional numeric identification of this token-category. It can help to use the category in switch-case statements. It should default to a zero if no numeric-id should be used.

Specified by:
getNumericID in interface TokenCategory

getCategory

public TokenCategory getCategory()
Description copied from interface: TokenID
Get the optional category of the token.

Specified by:
getCategory in interface TokenID

toString

public String toString()
Overrides:
toString in class Object

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.