ptolemy.copernicus.kernel
Class UnusedFieldRemover

java.lang.Object
  extended by soot.Transformer
      extended by soot.SceneTransformer
          extended by ptolemy.copernicus.kernel.UnusedFieldRemover

public class UnusedFieldRemover
extends soot.SceneTransformer

A Transformer that removes any private fields from a class that are never read. This transformer also transforms the bodies of the methods in a class to remove any writes to a removed field.

Since:
Ptolemy II 2.0
Version:
$Id: UnusedFieldRemover.java,v 1.28 2006/09/21 15:39:51 cxh Exp $
Author:
Stephen Neuendorffer
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
UnusedFieldRemover()
           
 
Method Summary
protected  void internalTransform(java.lang.String phaseName, java.util.Map options)
           
static UnusedFieldRemover v()
          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
 

Constructor Detail

UnusedFieldRemover

public UnusedFieldRemover()
Method Detail

v

public static UnusedFieldRemover v()
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.


internalTransform

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