Package org.apache.jasper.compiler
Class SmapUtil
- java.lang.Object
-
- org.apache.jasper.compiler.SmapUtil
-
public class SmapUtil extends java.lang.Object
Contains static utilities for generating SMAP data based on the current version of Jasper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmapUtil.ClassInfo
private static class
SmapUtil.SDEInstaller
(package private) static class
SmapUtil.SmapGenVisitor
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SmapUtil.ClassInfo>
classInfos
private JspCompilationContext
ctxt
static java.lang.String
SMAP_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 void
evaluateNodes(Node.Nodes nodes, SmapStratum s, boolean breakAtLF)
void
generateSmap(Node.Nodes pageNodes)
Generates an appropriate SMAP representing the current compilation context.void
installSmap()
private static java.lang.String
unqualify(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)
-
-