1
2
3 package org.osoco.dyninc.parser;
4
5 import org.osoco.dyninc.Context;
6
7
8 public class ASTIntegerLiteral extends SimpleNode {
9 Integer val;
10 public ASTIntegerLiteral(int id) {
11 super(id);
12 }
13
14 public ASTIntegerLiteral(Parser p, int id) {
15 super(p, id);
16 }
17
18 public static Node jjtCreate(int id) {
19 return new ASTIntegerLiteral(id);
20 }
21
22 public static Node jjtCreate(Parser p, int id) {
23 return new ASTIntegerLiteral(p, id);
24 }
25
26 /*** Accept the visitor. **/
27 public Object jjtAccept(ParserVisitor visitor, Object data) {
28 return visitor.visit(this, data);
29 }
30
31 protected Object getValue(Context context, Object current) {
32 return val;
33 }
34 }