| |
|
| java.lang.Object org.gjt.sp.jedit.syntax.Token
All known Subclasses: org.gjt.sp.jedit.syntax.Chunk,
Token | public class Token (Code) | | A linked list of syntax tokens.
author: Slava Pestov version: $Id: Token.java 5354 2006-03-03 16:18:06Z ezust $ |
Constructor Summary | |
public | Token(byte id, int offset, int length, ParserRuleSet rules) Creates a new token. |
Method Summary | |
public static byte | stringToToken(String value) Converts a token type string to a token type constant. | public String | toString() Returns a string representation of this token. | public static String | tokenToString(byte token) Converts a token type constant to a token type string. |
COMMENT1 | final public static byte COMMENT1(Code) | | |
COMMENT2 | final public static byte COMMENT2(Code) | | |
COMMENT3 | final public static byte COMMENT3(Code) | | |
COMMENT4 | final public static byte COMMENT4(Code) | | |
DIGIT | final public static byte DIGIT(Code) | | |
END | final public static byte END(Code) | | |
FUNCTION | final public static byte FUNCTION(Code) | | |
ID_COUNT | final public static byte ID_COUNT(Code) | | |
INVALID | final public static byte INVALID(Code) | | |
KEYWORD1 | final public static byte KEYWORD1(Code) | | |
KEYWORD2 | final public static byte KEYWORD2(Code) | | |
KEYWORD3 | final public static byte KEYWORD3(Code) | | |
KEYWORD4 | final public static byte KEYWORD4(Code) | | |
LABEL | final public static byte LABEL(Code) | | |
LITERAL1 | final public static byte LITERAL1(Code) | | |
LITERAL2 | final public static byte LITERAL2(Code) | | |
LITERAL3 | final public static byte LITERAL3(Code) | | |
LITERAL4 | final public static byte LITERAL4(Code) | | |
MARKUP | final public static byte MARKUP(Code) | | |
NULL | final public static byte NULL(Code) | | |
OPERATOR | final public static byte OPERATOR(Code) | | |
id | public byte id(Code) | | The id of this token.
|
length | public int length(Code) | | The length of this token.
|
next | public Token next(Code) | | The next token in the linked list.
|
offset | public int offset(Code) | | The start offset of this token.
|
Token | public Token(byte id, int offset, int length, ParserRuleSet rules)(Code) | | Creates a new token.
Parameters: id - The id of the token Parameters: offset - The start offset of the token Parameters: length - The length of the token Parameters: rules - The parser rule set that generated this token |
stringToToken | public static byte stringToToken(String value)(Code) | | Converts a token type string to a token type constant.
Parameters: value - The token type since: jEdit 4.1pre1 |
toString | public String toString()(Code) | | Returns a string representation of this token.
|
tokenToString | public static String tokenToString(byte token)(Code) | | Converts a token type constant to a token type string.
since: jEdit 4.2pre1 |
|
|
|