Mercurial > projects > dwt-addons
comparison dwtx/jface/text/rules/Token.d @ 147:000f9136b8f7
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:35:05 +0200 |
parents | 7d818bd32d63 |
children | eb21d3dfc767 |
comparison
equal
deleted
inserted
replaced
146:75302ef3f92f | 147:000f9136b8f7 |
---|---|
48 * Standard implementation of <code>IToken</code>. | 48 * Standard implementation of <code>IToken</code>. |
49 */ | 49 */ |
50 public class Token : IToken { | 50 public class Token : IToken { |
51 | 51 |
52 /** Internal token type: Undefined */ | 52 /** Internal token type: Undefined */ |
53 private static final int T_UNDEFINED= 0; | 53 private static const int T_UNDEFINED= 0; |
54 /** Internal token type: EOF */ | 54 /** Internal token type: EOF */ |
55 private static final int T_EOF= 1; | 55 private static const int T_EOF= 1; |
56 /** Internal token type: Whitespace */ | 56 /** Internal token type: Whitespace */ |
57 private static final int T_WHITESPACE= 2; | 57 private static const int T_WHITESPACE= 2; |
58 /** Internal token type: Others */ | 58 /** Internal token type: Others */ |
59 private static final int T_OTHER= 3; | 59 private static const int T_OTHER= 3; |
60 | 60 |
61 | 61 |
62 /** | 62 /** |
63 * Standard token: Undefined. | 63 * Standard token: Undefined. |
64 */ | 64 */ |
65 public static final IToken UNDEFINED= new Token(T_UNDEFINED); | 65 public static const IToken UNDEFINED= new Token(T_UNDEFINED); |
66 /** | 66 /** |
67 * Standard token: End Of File. | 67 * Standard token: End Of File. |
68 */ | 68 */ |
69 public static final IToken EOF= new Token(T_EOF); | 69 public static const IToken EOF= new Token(T_EOF); |
70 /** | 70 /** |
71 * Standard token: Whitespace. | 71 * Standard token: Whitespace. |
72 */ | 72 */ |
73 public static final IToken WHITESPACE= new Token(T_WHITESPACE); | 73 public static const IToken WHITESPACE= new Token(T_WHITESPACE); |
74 | 74 |
75 /** | 75 /** |
76 * Standard token: Neither {@link #UNDEFINED}, {@link #WHITESPACE}, nor {@link #EOF}. | 76 * Standard token: Neither {@link #UNDEFINED}, {@link #WHITESPACE}, nor {@link #EOF}. |
77 * @deprecated will be removed | 77 * @deprecated will be removed |
78 */ | 78 */ |
79 public static final IToken OTHER= new Token(T_OTHER); | 79 public static const IToken OTHER= new Token(T_OTHER); |
80 | 80 |
81 /** The type of this token */ | 81 /** The type of this token */ |
82 private int fType; | 82 private int fType; |
83 /** The data associated with this token */ | 83 /** The data associated with this token */ |
84 private Object fData; | 84 private Object fData; |