1 16 package org.apache.commons.jexl.parser; 17 18 import org.apache.commons.jexl.JexlContext; 19 20 26 public class ASTStringLiteral extends SimpleNode { 27 28 protected String literal; 29 30 35 public ASTStringLiteral(int id) { 36 super(id); 37 } 38 39 45 public ASTStringLiteral(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 55 public Object value(JexlContext jc) throws Exception { 56 return literal; 57 } 58 } 59 | Popular Tags |