|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.editor.tokenmarker.Token
public class Token
A linked list of tokens. Each token has three fields - a token
identifier, which is a byte value that can be looked up in the
array returned by 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.
Field Summary | |
---|---|
static byte |
COMMENT1
Comment 1 token id. |
static byte |
COMMENT2
Comment 2 token id. |
static byte |
END
The token type, that along with a length of 0 marks the end of the token list. |
static byte |
ERROR
Error |
static byte |
FOLDED
Folded text |
byte |
id
The id of this token. |
static byte |
ID_COUNT
The total number of defined token ids. |
static byte |
INTERNAL_FIRST
The first id that can be used for internal state in a token marker. |
static byte |
INTERNAL_LAST
The last id that can be used for internal state in a token marker. |
static byte |
INVALID
Invalid token id. |
static byte |
KEYWORD1
Keyword 1 token id. |
static byte |
KEYWORD2
Keyword 2 token id. |
static byte |
KEYWORD3
Keyword 3 token id. |
static byte |
LABEL
Label token id. |
int |
length
The length of this token. |
static byte |
LITERAL1
Literal 1 token id. |
static byte |
LITERAL2
Literal 2 token id. |
Token |
next
The next token in the linked list. |
static byte |
NULL
Normal text token id. |
static byte |
OPERATOR
Operator token id. |
static byte |
WARNING
Warning |
Constructor Summary | |
---|---|
Token(int length,
byte id)
Creates a new token. |
Method Summary | |
---|---|
String |
toString()
Returns a string representation of this token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 ERROR
public static final byte WARNING
public static final byte FOLDED
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
Constructor Detail |
---|
public Token(int length, byte id)
length
- The length of the tokenid
- The id of the tokenMethod Detail |
---|
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |