1 16 package org.apache.commons.jexl.parser; 17 18 import org.apache.commons.jexl.JexlContext; 19 20 26 public class ASTSizeMethod extends SimpleNode { 27 32 public ASTSizeMethod(int id) { 33 super(id); 34 } 35 36 42 public ASTSizeMethod(Parser p, int id) { 43 super(p, id); 44 } 45 46 47 public Object jjtAccept(ParserVisitor visitor, Object data) { 48 return visitor.visit(this, data); 49 } 50 51 61 public Object execute(Object obj, JexlContext jc) throws Exception { 62 return new Integer (ASTSizeFunction.sizeOf(obj)); 63 } 64 65 } 66 | Popular Tags |