public class LineMap
extends java.lang.Object
implements java.io.Serializable
Resin uses LineMap to tell the user the line in the JSP or XSL file that is broken, as opposed to the generated Java line.
Modifier and Type | Class and Description |
---|---|
static class |
LineMap.Line |
Constructor and Description |
---|
LineMap()
Null-arg constructor for serialization.
|
LineMap(java.lang.String dstFilename) |
LineMap(java.lang.String dstFilename,
java.lang.String srcFilename) |
Modifier and Type | Method and Description |
---|---|
void |
add(int srcLine,
int dstLine) |
boolean |
add(java.lang.String srcFilename,
int srcLine,
int dstLine)
Adds a new line map entry.
|
boolean |
add(java.lang.String srcFilename,
int srcLine,
int dstLine,
boolean isPreferLast) |
void |
addLine(int startLine,
java.lang.String sourceFile,
int repeatCount,
int outputLine,
int outputIncrement)
Adds a line from the smap
|
java.lang.String |
convertError(java.lang.String filename,
int line,
int column,
java.lang.String message)
Converts an error in the generated file to a CompileError based on
the source.
|
java.lang.String |
convertLine(java.lang.String filename,
int line) |
LineMap.Line |
get(int i) |
java.lang.String |
getDestFilename() |
java.lang.String |
getLastSourceFilename() |
LineMap.Line |
getLine(int line) |
java.lang.String |
getSourceType() |
java.util.Iterator<LineMap.Line> |
iterator() |
void |
printStackTrace(java.lang.Throwable e,
java.io.OutputStream os)
Filter a stack trace, replacing names.
|
void |
printStackTrace(java.lang.Throwable e,
java.io.PrintWriter os)
Filter a stack trace, replacing names.
|
void |
setSourceType(java.lang.String type) |
int |
size() |
public LineMap()
public LineMap(java.lang.String dstFilename, java.lang.String srcFilename)
public LineMap(java.lang.String dstFilename)
public void setSourceType(java.lang.String type)
public java.lang.String getSourceType()
public java.lang.String getDestFilename()
public java.lang.String getLastSourceFilename()
public boolean add(java.lang.String srcFilename, int srcLine, int dstLine)
LineMap assumes that dstLine increases monotonically.
srcFilename
- the source filename, e.g. the included filenamesrcLine
- the source line, e.g. the line in the included filedstLine
- the line of the generated file.public boolean add(java.lang.String srcFilename, int srcLine, int dstLine, boolean isPreferLast)
public void addLine(int startLine, java.lang.String sourceFile, int repeatCount, int outputLine, int outputIncrement)
public void add(int srcLine, int dstLine)
public java.util.Iterator<LineMap.Line> iterator()
public int size()
public LineMap.Line get(int i)
public LineMap.Line getLine(int line)
public java.lang.String convertError(java.lang.String filename, int line, int column, java.lang.String message)
public java.lang.String convertLine(java.lang.String filename, int line)
public void printStackTrace(java.lang.Throwable e, java.io.OutputStream os)
public void printStackTrace(java.lang.Throwable e, java.io.PrintWriter os)