MCPcopy Create free account
hub / github.com/apache/tomcat / prepare

Method prepare

java/org/apache/el/lang/ExpressionBuilder.java:154–170  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

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);

Callers 1

buildMethod · 0.95

Calls 2

acceptMethod · 0.65
createMethod · 0.65

Tested by

no test coverage detected