Lines Matching defs:Tag
32 import com.sun.tools.javac.parser.Tokens.Token.Tag;
118 IDENTIFIER(Tag.NAMED),
120 ASSERT("assert", Tag.NAMED),
121 BOOLEAN("boolean", Tag.NAMED),
123 BYTE("byte", Tag.NAMED),
126 CHAR("char", Tag.NAMED),
132 DOUBLE("double", Tag.NAMED),
134 ENUM("enum", Tag.NAMED),
138 FLOAT("float", Tag.NAMED),
145 INT("int", Tag.NAMED),
147 LONG("long", Tag.NAMED),
155 SHORT("short", Tag.NAMED),
158 SUPER("super", Tag.NAMED),
161 THIS("this", Tag.NAMED),
166 VOID("void", Tag.NAMED),
169 INTLITERAL(Tag.NUMERIC),
170 LONGLITERAL(Tag.NUMERIC),
171 FLOATLITERAL(Tag.NUMERIC),
172 DOUBLELITERAL(Tag.NUMERIC),
173 CHARLITERAL(Tag.NUMERIC),
174 STRINGLITERAL(Tag.STRING),
175 TRUE("true", Tag.NAMED),
176 FALSE("false", Tag.NAMED),
177 NULL("null", Tag.NAMED),
178 UNDERSCORE("_", Tag.NAMED),
232 public final Tag tag;
235 this(null, Tag.DEFAULT);
239 this(name, Tag.DEFAULT);
242 TokenKind(Tag tag) {
246 TokenKind(String name, Tag tag) {
314 enum Tag {
342 if (kind.name.length() < 2 || kind.tag != Tag.DEFAULT) {
359 if (kind.tag != Tag.DEFAULT) {
360 throw new AssertionError("Bad token kind - expected " + Tag.STRING);
425 if (kind.tag != Tag.NAMED) {
426 throw new AssertionError("Bad token kind - expected " + Tag.NAMED);
446 if (kind.tag != Tag.STRING) {
447 throw new AssertionError("Bad token kind - expected " + Tag.STRING);
467 if (kind.tag != Tag.NUMERIC) {
468 throw new AssertionError("Bad token kind - expected " + Tag.NUMERIC);