Package com.sun.el.lang
Class ExpressionBuilder
java.lang.Object
com.sun.el.lang.ExpressionBuilder
- All Implemented Interfaces:
NodeVisitor
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ExpressionBuilder.SoftConcurrentHashMap
private String
private FunctionMapper
private VariableMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Node
build()
createMethodExpression
(Class expectedReturnType, Class[] expectedParamTypes) static Node
createNode
(String expr) private static Node
createNodeInternal
(String expr) createValueExpression
(Class expectedType) private void
Scan the expression nodes and captures the functions and variables used in this expression.void
-
Field Details
-
cache
-
fnMapper
-
varMapper
-
expression
-
-
Constructor Details
-
ExpressionBuilder
- Throws:
ELException
-
-
Method Details
-
createNode
- Throws:
ELException
-
createNodeInternal
- Throws:
ELException
-
prepare
Scan the expression nodes and captures the functions and variables used in this expression. This ensures that any changes to the functions or variables mappings during the expression will not affect the evaluation of this expression, as the functions and variables are bound and resolved at parse time, as specified in the spec.- Throws:
ELException
-
build
- Throws:
ELException
-
visit
- Specified by:
visit
in interfaceNodeVisitor
- Throws:
ELException
-
createValueExpression
- Throws:
ELException
-
createMethodExpression
public MethodExpression createMethodExpression(Class expectedReturnType, Class[] expectedParamTypes) throws ELException - Throws:
ELException
-