Package org.glassfish.expressly.lang
Class ExpressionBuilder
java.lang.Object
org.glassfish.expressly.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 classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ExpressionBuilder.SoftConcurrentHashMapprivate Stringprivate jakarta.el.FunctionMapperprivate jakarta.el.VariableMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Nodebuild()jakarta.el.MethodExpressioncreateMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) static NodecreateNode(String expr) private static NodecreateNodeInternal(String expr) jakarta.el.ValueExpressioncreateValueExpression(Class<?> expectedType) private voidScan the expression nodes and captures the functions and variables used in this expression.void
-
Field Details
-
cache
-
fnMapper
private jakarta.el.FunctionMapper fnMapper -
varMapper
private jakarta.el.VariableMapper varMapper -
expression
-
-
Constructor Details
-
ExpressionBuilder
- Throws:
jakarta.el.ELException
-
-
Method Details
-
createNode
- Throws:
jakarta.el.ELException
-
createNodeInternal
- Throws:
jakarta.el.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:
jakarta.el.ELException
-
build
- Throws:
jakarta.el.ELException
-
visit
- Specified by:
visitin interfaceNodeVisitor- Throws:
jakarta.el.ELException
-
createValueExpression
public jakarta.el.ValueExpression createValueExpression(Class<?> expectedType) throws jakarta.el.ELException - Throws:
jakarta.el.ELException
-
createMethodExpression
public jakarta.el.MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws jakarta.el.ELException - Throws:
jakarta.el.ELException
-