public Expression createExpression(String text) throws JellyException { /* org.apache.commons.jexl.Expression expr = org.apache.commons.jexl.ExpressionFactory.createExpression(text); if ( isSupportAntVariables() ) { expr.addPostResolver(new FlatResolver()); } return new JexlExpression( expr ); */ Expression jexlExpression = null; try { // this method really does throw Exception jexlExpression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } if ( isSupportAntVariables() && isValidAntVariableName(text) ) { return new ExpressionSupportLocal(jexlExpression,text); } return jexlExpression; }
public Expression createExpression(String text) throws JellyException { /* org.apache.commons.jexl.Expression expr = org.apache.commons.jexl.ExpressionFactory.createExpression(text); if ( isSupportAntVariables() ) { expr.addPostResolver(new FlatResolver()); } return new JexlExpression( expr ); */ Expression jexlExpression = null; try { // this method really does throw Exception jexlExpression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } if ( isSupportAntVariables() && isValidAntVariableName(text) ) { return new ExpressionSupportLocal(jexlExpression,text); } return jexlExpression; }
public Expression createExpression(String text) throws JellyException { /* org.apache.commons.jexl.Expression expr = org.apache.commons.jexl.ExpressionFactory.createExpression(text); if ( isSupportAntVariables() ) { expr.addPostResolver(new FlatResolver()); } return new JexlExpression( expr ); */ Expression jexlExpression = null; try { // this method really does throw Exception jexlExpression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } if ( isSupportAntVariables() && isValidAntVariableName(text) ) { return new ExpressionSupportLocal(jexlExpression,text); } return jexlExpression; }
public Expression createExpression(String text) throws JellyException { /* org.apache.commons.jexl.Expression expr = org.apache.commons.jexl.ExpressionFactory.createExpression(text); if ( isSupportAntVariables() ) { expr.addPostResolver(new FlatResolver()); } return new JexlExpression( expr ); */ Expression jexlExpression = null; try { // this method really does throw Exception jexlExpression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression(text) ); } catch (Exception e) { throw new JellyException("Unable to create expression: " + text, e); } if ( isSupportAntVariables() && isValidAntVariableName(text) ) { return new ExpressionSupportLocal(jexlExpression,text); } return jexlExpression; }
try expression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression( text ) );