|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.java.LineMap
public class LineMap
LineMap maps generated code lines back to the source lines.
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.
Nested Class Summary | |
---|---|
static class |
LineMap.Line
|
Constructor Summary | |
---|---|
LineMap()
Null-arg constructor for serialization. |
|
LineMap(java.lang.String dstFilename)
|
|
LineMap(java.lang.String dstFilename,
java.lang.String srcFilename)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineMap()
public LineMap(java.lang.String dstFilename, java.lang.String srcFilename)
public LineMap(java.lang.String dstFilename)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |