01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor;
15:
16: /**
17: * Token category enables dividing the tokens into groups. Each token by default
18: * can be contained in zero or one group. If a coloring for the token can't be
19: * found and it has non-null token-group then the coloring for the group is
20: * attempted.
21: *
22: * @author Miloslav Metelka
23: * @version 1.00
24: */
25:
26: public interface TokenCategory {
27:
28: /** Get the name of the category. */
29: public String getName();
30:
31: /**
32: * Get the optional numeric identification of this token-category. It can
33: * help to use the category in switch-case statements. It should default to
34: * a zero if no numeric-id should be used.
35: */
36: public int getNumericID();
37:
38: }
|