Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » compiler » [javadoc | source]
org.apache.jasper.compiler
public class: SmapStratum [javadoc | source]
java.lang.Object
   org.apache.jasper.compiler.SmapStratum
Represents the line and file mappings associated with a JSR-045 "stratum".
Nested Class Summary:
public static class  SmapStratum.LineInfo  Represents a single LineSection in an SMAP, associated with a particular stratum. 
Constructor:
 public SmapStratum(String stratumName) 
    Constructs a new SmapStratum object for the given stratum name (e.g., JSP).
    Parameters:
    stratumName - the name of the stratum (e.g., JSP)
Method from org.apache.jasper.compiler.SmapStratum Summary:
addFile,   addFile,   addLineData,   getStratumName,   getString,   optimizeLineSection,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.compiler.SmapStratum Detail:
 public  void addFile(String filename) 
    Adds record of a new file, by filename.
 public  void addFile(String filename,
    String filePath) 
    Adds record of a new file, by filename and path. The path may be relative to a source compilation path.
 public  void addLineData(int inputStartLine,
    String inputFileName,
    int inputLineCount,
    int outputStartLine,
    int outputLineIncrement) 
    Adds complete information about a simple line mapping. Specify all the fields in this method; the back-end machinery takes care of printing only those that are necessary in the final SMAP. (My view is that fields are optional primarily for spatial efficiency, not for programmer convenience. Could always add utility methods later.)
 public String getStratumName() 
    Returns the name of the stratum.
 public String getString() 
    Returns the given stratum as a String: a StratumSection, followed by at least one FileSection and at least one LineSection.
 public  void optimizeLineSection() 
    Combines consecutive LineInfos wherever possible
 public String toString()