Class ELFunctionMapper

java.lang.Object
org.apache.sling.scripting.jsp.jasper.compiler.ELFunctionMapper

public class ELFunctionMapper extends Object
This class generates functions mappers for the EL expressions in the page. Instead of a global mapper, a mapper is used for ecah call to EL evaluator, thus avoiding the prefix overlapping and redefinition issues.
Author:
Kin-man Chung
  • Constructor Details

    • ELFunctionMapper

      public ELFunctionMapper()
  • Method Details

    • map

      public static void map(Compiler compiler, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page) throws JasperException
      Creates the functions mappers for all EL expressions in the JSP page.
      Parameters:
      compiler - Current compiler, mainly for accessing error dispatcher.
      page - The current compilation unit.
      Throws:
      JasperException