jrun.jsp.compiler
Class LineNumberMappingTable

java.lang.Object
  |
  +--jrun.jsp.compiler.LineNumberMappingTable

public class LineNumberMappingTable
extends java.lang.Object


Field Summary
static java.lang.String LINE_SEP
           
 
Constructor Summary
LineNumberMappingTable(java.lang.String targetSource)
           
 
Method Summary
 void addMapping(int targetLine, int targetSpan, java.lang.String sourceFile, int sourceLine, int sourceSpan)
           
static LineNumberMappingTable createFromSMAP(java.lang.String str)
          Create a LineNumberMappingTable object from an SMAP string
 void dumpSMAP(java.io.Writer out)
           
 LineNumberMapping getMapping(int javaLine)
           
 java.lang.String getSMAPTable()
          Returns the SMAP (Source Map) table as a String.
 java.lang.String getSourceFile(int sourceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEP

public static final java.lang.String LINE_SEP
Constructor Detail

LineNumberMappingTable

public LineNumberMappingTable(java.lang.String targetSource)
Method Detail

getMapping

public LineNumberMapping getMapping(int javaLine)

getSourceFile

public java.lang.String getSourceFile(int sourceId)

addMapping

public void addMapping(int targetLine,
                       int targetSpan,
                       java.lang.String sourceFile,
                       int sourceLine,
                       int sourceSpan)

getSMAPTable

public java.lang.String getSMAPTable()
Returns the SMAP (Source Map) table as a String. If there is no SMAP table, or there is an error processing the SMAP table, null will be returned.
Returns:
The SMAP table

dumpSMAP

public void dumpSMAP(java.io.Writer out)
              throws java.io.IOException

createFromSMAP

public static LineNumberMappingTable createFromSMAP(java.lang.String str)
Create a LineNumberMappingTable object from an SMAP string


Copyright � 2002 Macromedia Corporation. All Rights Reserved.