Defines the interface for the expression language interpreter. This allows users to provide custom EL interpreter implementations that can optimise EL processing for an application by , for example, performing code generation for simple expressions.
| 24 | * simple expressions. |
| 25 | */ |
| 26 | public interface ELInterpreter { |
| 27 | |
| 28 | /** |
| 29 | * Returns the string representing the code that will be inserted into the servlet generated for JSP. The default |
| 30 | * implementation creates a call to |
| 31 | * {@link org.apache.jasper.runtime.PageContextImpl#proprietaryEvaluate( String, Class, jakarta.servlet.jsp.PageContext, org.apache.jasper.runtime.ProtectedFunctionMapper)} |
| 32 | * but other implementations may produce more optimised code. |
| 33 | * |
| 34 | * @param context The compilation context |
| 35 | * @param isTagFile <code>true</code> if in a tag file rather than a JSP |
| 36 | * @param expression a String containing zero or more "${}" expressions |
| 37 | * @param expectedType the expected type of the interpreted result |
| 38 | * @param fnmapvar Variable pointing to a function map. |
| 39 | * |
| 40 | * @return a String representing a call to the EL interpreter. |
| 41 | */ |
| 42 | String interpreterCall(JspCompilationContext context, boolean isTagFile, String expression, Class<?> expectedType, |
| 43 | String fnmapvar); |
| 44 | } |
no outgoing calls
no test coverage detected