|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.jasper.compiler.SmapStratum
public class SmapStratum
Represents the line and file mappings associated with a JSR-045 "stratum".
| 嵌套类摘要 | |
|---|---|
static class |
SmapStratum.LineInfo
Represents a single LineSection in an SMAP, associated with a particular stratum. |
| 构造方法摘要 | |
|---|---|
SmapStratum(String stratumName)
Constructs a new SmapStratum object for the given stratum name (e.g., JSP). |
|
| 方法摘要 | |
|---|---|
void |
addFile(String filename)
Adds record of a new file, by filename. |
void |
addFile(String filename,
String filePath)
Adds record of a new file, by filename and path. |
void |
addLineData(int inputStartLine,
String inputFileName,
int inputLineCount,
int outputStartLine,
int outputLineIncrement)
Adds complete information about a simple line mapping. |
String |
getStratumName()
Returns the name of the stratum. |
String |
getString()
Returns the given stratum as a String: a StratumSection, followed by at least one FileSection and at least one LineSection. |
void |
optimizeLineSection()
Combines consecutive LineInfos wherever possible |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SmapStratum(String stratumName)
stratumName - the name of the stratum (e.g., JSP)| 方法详细信息 |
|---|
public void addFile(String filename)
filename - the filename to add, unqualified by path.
public void addFile(String filename,
String filePath)
filename - the filename to add, unqualified by pathfilePath - the path for the filename, potentially relative
to a source compilation pathpublic void optimizeLineSection()
public void addLineData(int inputStartLine,
String inputFileName,
int inputLineCount,
int outputStartLine,
int outputLineIncrement)
inputStartLine - starting line in the source file
(SMAP InputStartLine)inputFileName - the filepath (or name) from which the input comes
(yields SMAP LineFileID) Use unqualified names
carefully, and only when they uniquely identify a file.inputLineCount - the number of lines in the input to map
(SMAP LineFileCount)outputStartLine - starting line in the output file
(SMAP OutputStartLine)outputLineIncrement - number of output lines to map to each
input line (SMAP OutputLineIncrement). Given the
fact that the name starts with "output", I continuously have
the subconscious urge to call this field
OutputLineExcrement.public String getStratumName()
public String getString()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||