ptolemy.copernicus.c
Class CWriter

java.lang.Object
  extended by soot.Transformer
      extended by soot.SceneTransformer
          extended by ptolemy.copernicus.c.CWriter

public class CWriter
extends soot.SceneTransformer

A transformer that writes C source code.

Since:
Ptolemy II 2.0
Version:
$Id: CWriter.java,v 1.53 2006/03/30 16:34:00 cxh Exp $
Author:
Shuvra S. Bhattacharyya
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Method Summary
 boolean completedTransform()
          Test if the internal transform associated with this writer has completed.
 java.lang.String getDeclaredOptions()
          Get the options associated with the C Writer.
 void internalTransform(java.lang.String phaseName, java.util.Map options)
          Write out the C (.i, .h, interface Header) files.
static CWriter v()
          Return a new CWriter.
 
Methods inherited from class soot.SceneTransformer
transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

completedTransform

public boolean completedTransform()
Test if the internal transform associated with this writer has completed.

Returns:
True if the transform has completed.

getDeclaredOptions

public java.lang.String getDeclaredOptions()
Get the options associated with the C Writer.

Returns:
The options.

internalTransform

public void internalTransform(java.lang.String phaseName,
                              java.util.Map options)
Write out the C (.i, .h, interface Header) files. Sample option arguments: -p wjtp.writeJimple1 outDir:jimple1

Specified by:
internalTransform in class soot.SceneTransformer
Parameters:
phaseName - The name of the phase, for example wjtp.writeJimple2.
options - The options Map. This method uses the outdir option to specify where the .jimple file should be written

v

public static CWriter v()
Return a new CWriter.

Returns:
The new CWriter.