ptolemy.copernicus.kernel
Class UnusedFieldRemover
java.lang.Object
soot.Transformer
soot.SceneTransformer
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:
- Proposed Rating:
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 |
UnusedFieldRemover
public UnusedFieldRemover()
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