Package org.apache.jasper.compiler
Class SmapUtil
- java.lang.Object
-
- org.apache.jasper.compiler.SmapUtil
-
public class SmapUtil extends java.lang.ObjectContains static utilities for generating SMAP data based on the current version of Jasper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmapUtil.ClassInfoprivate static classSmapUtil.SDEInstaller(package private) static classSmapUtil.SmapGenVisitor
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SmapUtil.ClassInfo>classInfosprivate JspCompilationContextctxtstatic java.lang.StringSMAP_ENCODING
-
Constructor Summary
Constructors Constructor Description SmapUtil(JspCompilationContext ctxt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidevaluateNodes(Node.Nodes nodes, SmapStratum s, boolean breakAtLF)voidgenerateSmap(Node.Nodes pageNodes)Generates an appropriate SMAP representing the current compilation context.voidinstallSmap()private static java.lang.Stringunqualify(java.lang.String path)Returns an unqualified version of the given file path.
-
-
-
Field Detail
-
ctxt
private JspCompilationContext ctxt
-
classInfos
private java.util.List<SmapUtil.ClassInfo> classInfos
-
SMAP_ENCODING
public static final java.lang.String SMAP_ENCODING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SmapUtil
SmapUtil(JspCompilationContext ctxt)
-
-
Method Detail
-
generateSmap
public void generateSmap(Node.Nodes pageNodes) throws java.io.IOException
Generates an appropriate SMAP representing the current compilation context. (JSR-045.)- Parameters:
ctxt- Current compilation contextpageNodes- The current JSP page- Throws:
java.io.IOException
-
installSmap
public void installSmap() throws java.io.IOException- Throws:
java.io.IOException
-
unqualify
private static java.lang.String unqualify(java.lang.String path)
Returns an unqualified version of the given file path.
-
evaluateNodes
private void evaluateNodes(Node.Nodes nodes, SmapStratum s, boolean breakAtLF)
-
-