coins.snapshot
Class SnapShot

java.lang.Object
  extended bycoins.snapshot.SnapShot

public class SnapShot
extends java.lang.Object

Generate the XML file related to the intermediate representation in COINS Compiler Infrastructure. The tags in the XML file specified the XML shema `coins.xsd'. See that XSD file for more detail.


Field Summary
static java.lang.String TMP_FILE_NAME
          The temporary file name that this module generate
static java.lang.String TMP_NAME
          The temporary name of the current status
 
Constructor Summary
SnapShot(java.io.File sourceFile, java.lang.String snapName)
          Constructor
 
Method Summary
 void generateXml()
          Generate the XML file.
 void shot(HirRoot hirRoot, java.lang.String mName)
          Snapshot for HIR.
 void shot(MdfModule m, java.lang.String mName)
          Snapshot for MDF.
 void shot(Module m, java.lang.String mName)
          Snapshot for LIR.
 java.lang.String toString()
          Generate XML representation in string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TMP_FILE_NAME

public static final java.lang.String TMP_FILE_NAME
The temporary file name that this module generate

See Also:
Constant Field Values

TMP_NAME

public static final java.lang.String TMP_NAME
The temporary name of the current status

See Also:
Constant Field Values
Constructor Detail

SnapShot

public SnapShot(java.io.File sourceFile,
                java.lang.String snapName)
Constructor

Parameters:
sourceFile - Ths source file
snapName - The name of the current status
Method Detail

shot

public void shot(Module m,
                 java.lang.String mName)
Snapshot for LIR.

Parameters:
m - The target module
mName - The name of the target module

shot

public void shot(HirRoot hirRoot,
                 java.lang.String mName)
Snapshot for HIR.

Parameters:
hirRoot - The target module
mName - The name of the target module

shot

public void shot(MdfModule m,
                 java.lang.String mName)
          throws PassException
Snapshot for MDF.

Parameters:
m - The target module
mName - The name of the target module
Throws:
PassException - Any exceptions in it

generateXml

public void generateXml()
Generate the XML file.


toString

public java.lang.String toString()
Generate XML representation in string.

Returns:
The XML representation