System.exit(0); NodePrinter.dump(out, tree.getRoot()); if (!tree.getFunctionNodes().iterator().hasNext() && !tree.getIdentifierNodes().iterator().hasNext()) { ELContext context = new ELContext() { @Override out.print(">> "); try { out.println(tree.getRoot().getValue(new Bindings(null, null), context, null)); } catch (ELException e) { out.println(e.getMessage());
/** * Create a new value expression. * @param store used to get the parse tree from. * @param functions the function mapper used to bind functions * @param variables the variable mapper used to bind variables * @param expr the expression string * @param type the expected type (may be <code>null</code>) */ public TreeValueExpression(TreeStore store, FunctionMapper functions, VariableMapper variables, TypeConverter converter, String expr, Class<?> type) { super(); Tree tree = store.get(expr); this.builder = store.getBuilder(); this.bindings = tree.bind(functions, variables, converter); this.expr = expr; this.type = type; this.node = tree.getRoot(); this.deferred = tree.isDeferred(); if (type == null) { throw new NullPointerException(LocalMessages.get("error.value.notype")); } }
@Override public String toString() { return getRoot().getStructuralId(null); }
final Tree tree = treeBuilder.build(filteredExpression); final Iterable<IdentifierNode> identifierNodes = tree.getIdentifierNodes(); for (final IdentifierNode node : identifierNodes) {
/** * Create a bindings. * @param fnMapper the function mapper to use * @param varMapper the variable mapper to use * @return tree bindings */ public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper) { return bind(fnMapper, varMapper, null); }
@Override public String toString() { return getRoot().getStructuralId(null); }
final Tree tree = treeBuilder.build(filteredExpression); final Iterable<IdentifierNode> identifierNodes = tree.getIdentifierNodes(); for (final IdentifierNode node : identifierNodes) {
/** * Create a bindings. * @param fnMapper the function mapper to use * @param varMapper the variable mapper to use * @return tree bindings */ public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper) { return bind(fnMapper, varMapper, null); }
/** * Create a new value expression. * @param store used to get the parse tree from. * @param functions the function mapper used to bind functions * @param variables the variable mapper used to bind variables * @param expr the expression string * @param type the expected type (may be <code>null</code>) */ public TreeValueExpression(TreeStore store, FunctionMapper functions, VariableMapper variables, TypeConverter converter, String expr, Class<?> type) { super(); Tree tree = store.get(expr); this.builder = store.getBuilder(); this.bindings = tree.bind(functions, variables, converter); this.expr = expr; this.type = type; this.node = tree.getRoot(); this.deferred = tree.isDeferred(); if (type == null) { throw new NullPointerException(LocalMessages.get("error.value.notype")); } }
System.exit(0); NodePrinter.dump(out, tree.getRoot()); if (!tree.getFunctionNodes().iterator().hasNext() && !tree.getIdentifierNodes().iterator().hasNext()) { ELContext context = new ELContext() { @Override out.print(">> "); try { out.println(tree.getRoot().getValue(new Bindings(null, null), context, null)); } catch (ELException e) { out.println(e.getMessage());
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { node = builder.build(expr).getRoot(); } catch (ELException e) { throw new IOException(e.getMessage()); } } }
/** * Create a bindings. * @param fnMapper the function mapper to use * @param varMapper the variable mapper to use * @return tree bindings */ public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper) { return bind(fnMapper, varMapper, null); }
this.bindings = tree.bind(functions, variables, converter); this.expr = expr; this.type = returnType; this.types = paramTypes; this.node = tree.getRoot(); this.deferred = tree.isDeferred();
System.exit(0); NodePrinter.dump(out, tree.getRoot()); if (!tree.getFunctionNodes().iterator().hasNext() && !tree.getIdentifierNodes().iterator().hasNext()) { ELContext context = new ELContext() { @Override out.print(">> "); try { out.println(tree.getRoot().getValue(new Bindings(null, null), context, null)); } catch (ELException e) { out.println(e.getMessage());
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { node = builder.build(expr).getRoot(); } catch (ELException e) { throw new IOException(e.getMessage()); } } }
this.bindings = tree.bind(functions, variables, converter); this.expr = expr; this.type = returnType; this.types = paramTypes; this.node = tree.getRoot(); this.deferred = tree.isDeferred();
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { node = builder.build(expr).getRoot(); } catch (ELException e) { throw new IOException(e.getMessage()); } } }