org.apache.jasper.compiler

Class SmapUtil


public class SmapUtil
extends java.lang.Object

Contains static utilities for generating SMAP data based on the current version of Jasper.
Authors:
Jayson Falkner
Shawn Bayern
Robert Field (inner SDEInstaller class)
Mark Roth
Kin-man Chung

Field Summary

static String
SMAP_ENCODING

Method Summary

static void
evaluateNodes(Node.Nodes nodes, SmapStratum s, HashMap innerClassMap, boolean breakAtLF)
static String[]
generateSmap(JspCompilationContext ctxt, Node.Nodes pageNodes)
Generates an appropriate SMAP representing the current compilation context.
static void
installSmap(String[] smap)

Field Details

SMAP_ENCODING

public static final String SMAP_ENCODING

Method Details

evaluateNodes

public static void evaluateNodes(Node.Nodes nodes,
                                 SmapStratum s,
                                 HashMap innerClassMap,
                                 boolean breakAtLF)

generateSmap

public static String[] generateSmap(JspCompilationContext ctxt,
                                    Node.Nodes pageNodes)
            throws 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

installSmap

public static void installSmap(String[] smap)
            throws IOException

Copyright ?? 2000-2004 Apache Software Foundation. All Rights Reserved.