org.apache.jasper.compiler
Class SmapGenerator
java.lang.Object
org.apache.jasper.compiler.SmapGenerator
public class SmapGenerator
extends java.lang.Object
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.
void | addSmap(String smap, String stratumName) - Adds the given string as an embedded SMAP with the given stratum name.
|
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.
|
String | getString()
|
static void | main(args[] )
|
void | setDoEmbedded(boolean status) - Instructs the SmapGenerator whether to actually print any embedded
SMAPs or not.
|
void | setOutputFileName(String x) - Sets the filename (without path information) for the generated
source file.
|
String | toString()
|
addSmap
public void addSmap(String smap,
String stratumName)
Adds the given string as an embedded SMAP with the given stratum name.
smap
- the SMAP to embedstratumName
- the name of the stratum output by the compilation
that produced the smap to be embedded
addStratum
public 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. If default is true, this
stratum is made the default stratum, overriding any previously
set default.
stratum
- the SmapStratum object to adddefaultStratum
- if true, this SmapStratum is considered
to represent the default SMAP stratum unless
overwritten
getString
public String getString()
main
public static void main(args[] )
setDoEmbedded
public void setDoEmbedded(boolean status)
Instructs the SmapGenerator whether to actually print any embedded
SMAPs or not. Intended for situations without an SMAP resolver.
status
- If false, ignore any embedded SMAPs.
setOutputFileName
public void setOutputFileName(String x)
Sets the filename (without path information) for the generated
source file. E.g., "foo$jsp.java".
toString
public String toString()
Copyright B) 2000-2004 Apache Software Foundation. All Rights Reserved.