Package 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$
- Author:
- Stephen Neuendorffer
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description UnusedFieldRemover()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 classsoot.SceneTransformer
-
-