1 package org.jedit.syntax; 2 3 11 12 22 public class Token 23 { 24 28 public static final byte NULL = 0; 29 30 33 public static final byte COMMENT1 = 1; 34 35 38 public static final byte COMMENT2 = 2; 39 40 41 45 public static final byte LITERAL1 = 3; 46 47 51 public static final byte LITERAL2 = 4; 52 53 57 public static final byte LABEL = 5; 58 59 64 public static final byte KEYWORD1 = 6; 65 66 71 public static final byte KEYWORD2 = 7; 72 73 77 public static final byte KEYWORD3 = 8; 78 79 84 public static final byte OPERATOR = 9; 85 86 91 public static final byte INVALID = 10; 92 93 96 public static final byte ID_COUNT = 11; 97 98 102 public static final byte INTERNAL_FIRST = 100; 103 104 108 public static final byte INTERNAL_LAST = 126; 109 110 114 public static final byte END = 127; 115 116 119 public int length; 120 121 124 public byte id; 125 126 129 public Token next; 130 131 136 public Token(int length, byte id) 137 { 138 this.length = length; 139 this.id = id; 140 } 141 142 145 public String toString() 146 { 147 return "[id=" + id + ",length=" + length + "]"; 148 } 149 } 150 | Popular Tags |