public Parser(){ funcHelper = new DefaultFunctionHelper(); } public Parser(FunctionHelper helper){
@Override public void configure(Properties p){ super.configure(p); formula = PropertiesConstants.getString(p, "formula", formula,true); Parser parser = new Parser(new DefaultFunctionHelper(null)); expr = parser.parse(formula); }
public Preprocessor(boolean transform){ this.transform = transform; fh = new DefaultFunctionHelper(new PluginManager(this)); }
public void configure(Properties p){ super.configure(p); id = PropertiesConstants.getString(p,"id","",true); String formula = PropertiesConstants.getString(p,"expr","",true); if (StringUtils.isNotEmpty(formula)){ Parser parser = new Parser(new DefaultFunctionHelper(null)); expr = parser.parse(formula); } }
public Preprocessor(boolean transform,String sql){ this.transform = transform; fh = new DefaultFunctionHelper(new PluginManager(this)); compile(sql); }