public class Token extends Object
SyntaxDocument.getColors() to get a color value, a length value
 which is the length of the token in the text, and a pointer to the next token
 in the list.| Modifier and Type | Field and Description | 
|---|---|
| static byte | COMMENT1Comment 1 token id. | 
| static byte | COMMENT2Comment 2 token id. | 
| static byte | ENDThe token type, that along with a length of 0 marks the end of the token
 list. | 
| byte | idThe id of this token. | 
| static byte | ID_COUNTThe total number of defined token ids. | 
| static byte | INTERNAL_FIRSTThe first id that can be used for internal state in a token marker. | 
| static byte | INTERNAL_LASTThe last id that can be used for internal state in a token marker. | 
| static byte | INVALIDInvalid token id. | 
| static byte | KEYWORD1Keyword 1 token id. | 
| static byte | KEYWORD2Keyword 2 token id. | 
| static byte | KEYWORD3Keyword 3 token id. | 
| static byte | LABELLabel token id. | 
| int | lengthThe length of this token. | 
| static byte | LITERAL1Literal 1 token id. | 
| static byte | LITERAL2Literal 2 token id. | 
| Token | nextThe next token in the linked list. | 
| static byte | NULLNormal text token id. | 
| static byte | OPERATOROperator token id. | 
| Constructor and Description | 
|---|
| Token(int length,
     byte id)Creates a new token. | 
public static final byte NULL
public static final byte COMMENT1
public static final byte COMMENT2
public static final byte LITERAL1
public static final byte LITERAL2
public static final byte LABEL
public static final byte KEYWORD1
public static final byte KEYWORD2
public static final byte KEYWORD3
public static final byte OPERATOR
public static final byte INVALID
public static final byte ID_COUNT
public static final byte INTERNAL_FIRST
public static final byte INTERNAL_LAST
public static final byte END
public int length
public byte id
public Token next
Copyright © 2019. All Rights Reserved.