1 2 package org.javacc.jjtree; 3 4 7 8 public class Token { 9 10 15 public int kind; 16 17 22 public int beginLine, beginColumn, endLine, endColumn; 23 24 27 public String image; 28 29 37 public Token next; 38 39 51 public Token specialToken; 52 53 56 public final String toString() 57 { 58 return image; 59 } 60 61 73 public static final Token newToken(int ofKind) 74 { 75 switch(ofKind) 76 { 77 default : return new Token(); 78 case JJTreeParserConstants.RUNSIGNEDSHIFT: 79 case JJTreeParserConstants.RSIGNEDSHIFT: 80 case JJTreeParserConstants.GT: 81 return new GTToken(); 82 } 83 } 84 85 public static class GTToken extends Token 86 { 87 int realKind = JJTreeParserConstants.GT; 88 } 89 } 90 | Popular Tags |