1 16 17 package org.apache.commons.jexl; 18 19 import org.apache.commons.jexl.parser.ASTJexlScript; 20 21 25 class ScriptImpl implements Script { 26 27 28 private final String text; 29 30 private final ASTJexlScript parsedScript; 31 32 37 public ScriptImpl(String scriptText, ASTJexlScript scriptTree) { 38 text = scriptText; 39 parsedScript = scriptTree; 40 } 41 42 45 public Object execute(JexlContext context) throws Exception { 46 return parsedScript.value(context); 48 } 49 50 53 public String getText() { 54 return text; 55 } 56 57 } 58 | Popular Tags |