Package org.apache.jasper.optimizations
Class ELInterpreterTagSetters
java.lang.Object
org.apache.jasper.optimizations.ELInterpreterTagSetters
- All Implemented Interfaces:
- ELInterpreter
A non-specification compliant 
ELInterpreter that optimizes a subset
 of setters for tag attributes.
 The cases optimized by this implementation are:
- expressions that are solely a literal boolean
- expressions that are solely a constant string used (with coercion where necessary) with a setter that accepts:
- boolean / Boolean
- char / Character
- BigDecimal
- long / Long
- int / Integer
- short / Short
- byte / Byte
- double / Double
- float / Float
- BigInteger
- Enum
- String
 
ELResolvers listed in section JSP.2.9 and effectively hard
 codes the use of the 4th ELResolver in that list.- See Also:
- 
- "https://bz.apache.org/bugzilla/show_bug.cgi?id=64872"
 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioninterpreterCall(JspCompilationContext context, boolean isTagFile, String expression, Class<?> expectedType, String fnmapvar) Returns the string representing the code that will be inserted into the servlet generated for JSP.
- 
Constructor Details- 
ELInterpreterTagSetterspublic ELInterpreterTagSetters()
 
- 
- 
Method Details- 
interpreterCallpublic String interpreterCall(JspCompilationContext context, boolean isTagFile, String expression, Class<?> expectedType, String fnmapvar) Description copied from interface:ELInterpreterReturns the string representing the code that will be inserted into the servlet generated for JSP. The default implementation creates a call toPageContextImpl.proprietaryEvaluate(String, Class, jakarta.servlet.jsp.PageContext, org.apache.jasper.runtime.ProtectedFunctionMapper)but other implementations may produce more optimised code.- Specified by:
- interpreterCallin interface- ELInterpreter
- Parameters:
- context- The compilation context
- isTagFile-- trueif in a tag file rather than a JSP
- expression- a String containing zero or more "${}" expressions
- expectedType- the expected type of the interpreted result
- fnmapvar- Variable pointing to a function map.
- Returns:
- a String representing a call to the EL interpreter.
 
 
-