ptolemy.copernicus.java
Class CommandLineTransformer

java.lang.Object
  extended by soot.Transformer
      extended by soot.SceneTransformer
          extended by ptolemy.copernicus.java.CommandLineTransformer
All Implemented Interfaces:
soot.HasPhaseOptions

public class CommandLineTransformer
extends soot.SceneTransformer
implements soot.HasPhaseOptions

A transformer that adds the command-line interface. This create a new class that is similar to the ptolemy.copernicus.java.CommandLineTemplate class that creates and executes the model being generated.

Since:
Ptolemy II 2.0
Version:
$Id: CommandLineTransformer.java,v 1.66 2006/09/21 15:39:46 cxh Exp $
Author:
Michael Wirthlin, Stephen Neuendorffer, Edward A. Lee, Christopher Hylands
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
protected  java.lang.String _commandLineTemplateDefault
          Default value for the class name that is used as the command line template.
 
Method Summary
 java.lang.String getDeclaredOptions()
           
 java.lang.String getDefaultOptions()
           
 java.lang.String getPhaseName()
           
protected  void internalTransform(java.lang.String phaseName, java.util.Map options)
           
static CommandLineTransformer v(CompositeActor model)
          Return an instance of this transformer that will operate on the given model.
 
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
 

Field Detail

_commandLineTemplateDefault

protected java.lang.String _commandLineTemplateDefault
Default value for the class name that is used as the command line template. The initial default value is "ptolemy.copernicus.java.CommandLineTemplate");

Method Detail

v

public static CommandLineTransformer v(CompositeActor model)
Return an instance of this transformer that will operate on the given model. The model is assumed to already have been properly initialized so that resolved types and other static properties of the model can be inspected.


getPhaseName

public java.lang.String getPhaseName()
Specified by:
getPhaseName in interface soot.HasPhaseOptions

getDefaultOptions

public java.lang.String getDefaultOptions()
Specified by:
getDefaultOptions in interface soot.HasPhaseOptions

getDeclaredOptions

public java.lang.String getDeclaredOptions()
Specified by:
getDeclaredOptions in interface soot.HasPhaseOptions

internalTransform

protected void internalTransform(java.lang.String phaseName,
                                 java.util.Map options)
Specified by:
internalTransform in class soot.SceneTransformer