| 152 | } |
| 153 | |
| 154 | private void prepare(Node node) throws ELException { |
| 155 | try { |
| 156 | node.accept(this); |
| 157 | } catch (Exception e) { |
| 158 | if (e instanceof ELException) { |
| 159 | throw (ELException) e; |
| 160 | } else { |
| 161 | throw (new ELException(e)); |
| 162 | } |
| 163 | } |
| 164 | if (this.fnMapper instanceof FunctionMapperFactory) { |
| 165 | this.fnMapper = ((FunctionMapperFactory) this.fnMapper).create(); |
| 166 | } |
| 167 | if (this.varMapper instanceof VariableMapperFactory) { |
| 168 | this.varMapper = ((VariableMapperFactory) this.varMapper).create(); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | private Node build() throws ELException { |
| 173 | Node n = createNodeInternal(this.expression); |