| java.lang.Object com.caucho.java.LineMap
LineMap | public class LineMap implements Serializable(Code) | | 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.
|
Inner Class :public static class Line implements Serializable | |
Method Summary | |
public boolean | add(String srcFilename, int srcLine, int dstLine) Adds a new line map entry.
LineMap assumes that dstLine increases monotonically.
Parameters: srcFilename - the source filename, e.g. | public void | add(int srcLine, int dstLine) | public void | addLine(int startLine, String sourceFile, int repeatCount, int outputLine, int outputIncrement) | public String | convertError(String filename, int line, int column, String message) Converts an error in the generated file to a CompileError based on
the source. | public String | convertLine(String filename, int line) | public Line | get(int i) | public String | getDestFilename() | public String | getLastSourceFilename() | public Line | getLine(int line) | public String | getSourceType() | public Iterator<Line> | iterator() | public void | printStackTrace(Throwable e, OutputStream os) Filter a stack trace, replacing names. | public void | printStackTrace(Throwable e, PrintWriter os) Filter a stack trace, replacing names. | public void | setSourceType(String type) | public int | size() |
LineMap | public LineMap()(Code) | | Null-arg constructor for serialization.
|
add | public boolean add(String srcFilename, int srcLine, int dstLine)(Code) | | Adds a new line map entry.
LineMap assumes that dstLine increases monotonically.
Parameters: srcFilename - the source filename, e.g. the included filename Parameters: srcLine - the source line, e.g. the line in the included file Parameters: dstLine - the line of the generated file. true if a new entry is needed |
add | public void add(int srcLine, int dstLine)(Code) | | |
addLine | public void addLine(int startLine, String sourceFile, int repeatCount, int outputLine, int outputIncrement)(Code) | | Adds a line from the smap
|
convertError | public String convertError(String filename, int line, int column, String message)(Code) | | Converts an error in the generated file to a CompileError based on
the source.
|
get | public Line get(int i)(Code) | | |
getLastSourceFilename | public String getLastSourceFilename()(Code) | | |
getLine | public Line getLine(int line)(Code) | | |
|
|