ua.gradsoft.termware.debug
Class SMAPHelper

java.lang.Object
  extended by ua.gradsoft.termware.debug.SMAPHelper

public class SMAPHelper
extends Object

Helper for work with JSR-45 SMAP files.

Author:
rssh

Constructor Summary
SMAPHelper()
           
 
Method Summary
static void generateEndSection(PrintWriter writer)
           
static void generateFileSection(PrintWriter writer, int fileId, String filename)
           
static void generateHeader(PrintWriter writer, String outputFileName)
           
static void generateLineInfo(PrintWriter writer, int fileId, SourceCodeLocation inLocation, int outLineNumber)
          map enture source code location to outLineNumber
static void generateStratumSection(PrintWriter writer, String languageName)
           
static byte[] insertSmap(byte[] classBytes, CharSequence smap)
           
static void startLineSection(PrintWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMAPHelper

public SMAPHelper()
Method Detail

generateHeader

public static void generateHeader(PrintWriter writer,
                                  String outputFileName)

generateStratumSection

public static void generateStratumSection(PrintWriter writer,
                                          String languageName)

generateFileSection

public static void generateFileSection(PrintWriter writer,
                                       int fileId,
                                       String filename)

startLineSection

public static void startLineSection(PrintWriter writer)

generateLineInfo

public static void generateLineInfo(PrintWriter writer,
                                    int fileId,
                                    SourceCodeLocation inLocation,
                                    int outLineNumber)
map enture source code location to outLineNumber


generateEndSection

public static void generateEndSection(PrintWriter writer)

insertSmap

public static byte[] insertSmap(byte[] classBytes,
                                CharSequence smap)
                         throws ExternalException
Throws:
ExternalException