Class SmapUtil


  • public class SmapUtil
    extends java.lang.Object
    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 Detail

      • SmapUtil

        public SmapUtil()
    • Method Detail

      • generateSmap

        public static java.util.Map<java.lang.String,​SmapStratum> generateSmap​(JspCompilationContext ctxt,
                                                                                     Node.Nodes pageNodes)
                                                                              throws java.io.IOException
        Generates an appropriate SMAP representing the current compilation context. (JSR-045.)
        Parameters:
        ctxt - Current compilation context
        pageNodes - The current JSP page
        Returns:
        a SMAP for the page
        Throws:
        java.io.IOException - Error writing SMAP
      • installSmap

        public static void installSmap​(java.util.Map<java.lang.String,​SmapStratum> smapInfo)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • evaluateNodes

        public static void evaluateNodes​(Node.Nodes nodes,
                                         SmapStratum s,
                                         java.util.HashMap<java.lang.String,​SmapStratum> innerClassMap,
                                         boolean breakAtLF)
      • loadSmap

        public static SmapStratum loadSmap​(java.lang.String className,
                                           java.lang.ClassLoader cl)