KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > lex > IntegerLiteral


1 package polyglot.lex;
2
3 import java_cup.runtime.Symbol;
4 import polyglot.util.Position;
5
6 /** A token class for int literals. */
7 public class IntegerLiteral extends NumericLiteral {
8   public IntegerLiteral(Position position, int i, int sym) {
9       super(position, sym);
10       this.val = new Integer JavaDoc(i);
11   }
12 }
13
Popular Tags