Package org.apache.jasper.compiler
Class SmapUtil
java.lang.Object
org.apache.jasper.compiler.SmapUtil
Contains static utilities for generating SMAP data based on the
current version of Jasper.
- Author:
- Jayson Falkner, Shawn Bayern, Robert Field (inner SDEInstaller class), Mark Roth, Kin-man Chung
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
evaluateNodes
(org.apache.jasper.compiler.Node.Nodes nodes, SmapStratum s, HashMap<String, SmapStratum> innerClassMap, boolean breakAtLF) static String[]
generateSmap
(JspCompilationContext ctxt, org.apache.jasper.compiler.Node.Nodes pageNodes) Generates an appropriate SMAP representing the current compilation context.static void
installSmap
(String[] smap)
-
Constructor Details
-
SmapUtil
public SmapUtil()
-
-
Method Details
-
generateSmap
public static String[] generateSmap(JspCompilationContext ctxt, org.apache.jasper.compiler.Node.Nodes pageNodes) throws IOException Generates an appropriate SMAP representing the current compilation context. (JSR-045.)- Parameters:
ctxt
- Current compilation contextpageNodes
- The current JSP page- Returns:
- a SMAP for the page
- Throws:
IOException
- Error writing SMAP
-
installSmap
- Throws:
IOException
-
evaluateNodes
public static void evaluateNodes(org.apache.jasper.compiler.Node.Nodes nodes, SmapStratum s, HashMap<String, SmapStratum> innerClassMap, boolean breakAtLF)
-