1 16 package org.apache.commons.jexl.parser; 17 18 import org.apache.commons.jexl.JexlContext; 19 20 26 public class ASTIntegerLiteral extends SimpleNode { 27 28 protected Integer val; 29 30 35 public ASTIntegerLiteral(int id) { 36 super(id); 37 } 38 39 45 public ASTIntegerLiteral(Parser p, int id) { 46 super(p, id); 47 } 48 49 50 public Object jjtAccept(ParserVisitor visitor, Object data) { 51 return visitor.visit(this, data); 52 } 53 54 64 public Object execute(Object obj, JexlContext ctx) throws Exception { 65 return ASTArrayAccess.evaluateExpr(obj, val); 66 } 67 68 69 public Object value(JexlContext jc) throws Exception { 70 return val; 71 } 72 } 73 | Popular Tags |