| java.lang.Object org.apache.jasper.compiler.SmapGenerator
SmapGenerator | public class SmapGenerator (Code) | | Represents a source map (SMAP), which serves to associate lines
of the input JSP file(s) to lines in the generated servlet in the
final .class file, according to the JSR-045 spec.
author: Shawn Bayern |
Method Summary | |
public synchronized void | addSmap(String smap, String stratumName) Adds the given string as an embedded SMAP with the given stratum name. | public synchronized void | addStratum(SmapStratum stratum, boolean defaultStratum) Adds the given SmapStratum object, representing a Stratum with
logically associated FileSection and LineSection blocks, to
the current SmapGenerator. | public synchronized String | getString() | public static void | main(String args) | public void | setDoEmbedded(boolean status) Instructs the SmapGenerator whether to actually print any embedded
SMAPs or not. | public synchronized void | setOutputFileName(String x) Sets the filename (without path information) for the generated
source file. | public String | toString() |
addSmap | public synchronized void addSmap(String smap, String stratumName)(Code) | | Adds the given string as an embedded SMAP with the given stratum name.
Parameters: smap - the SMAP to embed Parameters: stratumName - the name of the stratum output by the compilationthat produced the smap to be embedded |
addStratum | public synchronized void addStratum(SmapStratum stratum, boolean defaultStratum)(Code) | | Adds the given SmapStratum object, representing a Stratum with
logically associated FileSection and LineSection blocks, to
the current SmapGenerator. If default is true, this
stratum is made the default stratum, overriding any previously
set default.
Parameters: stratum - the SmapStratum object to add Parameters: defaultStratum - if true, this SmapStratum is consideredto represent the default SMAP stratum unlessoverwritten |
setDoEmbedded | public void setDoEmbedded(boolean status)(Code) | | Instructs the SmapGenerator whether to actually print any embedded
SMAPs or not. Intended for situations without an SMAP resolver.
Parameters: status - If false, ignore any embedded SMAPs. |
setOutputFileName | public synchronized void setOutputFileName(String x)(Code) | | Sets the filename (without path information) for the generated
source file. E.g., "foo$jsp.java".
|
|
|