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

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

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

org.netbeans.editor
Class BaseTokenCategory

java.lang.Object
  extended by org.netbeans.editor.BaseTokenCategory
All Implemented Interfaces:
TokenCategory

public class BaseTokenCategory
extends Object
implements TokenCategory

Base implementation of the token category.


Constructor Summary
BaseTokenCategory(String name)
           
BaseTokenCategory(String name, int numericID)
           
 
Method Summary
 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

BaseTokenCategory

public BaseTokenCategory(String name)

BaseTokenCategory

public BaseTokenCategory(String name,
                         int numericID)
Method Detail

getName

public String getName()
Get the name of the category.

Specified by:
getName in interface TokenCategory

getNumericID

public int getNumericID()
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

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.