ptolemy.copernicus.java
Class DeadObjectEliminator
java.lang.Object
soot.Transformer
soot.BodyTransformer
ptolemy.copernicus.java.DeadObjectEliminator
public class DeadObjectEliminator
- extends soot.BodyTransformer
A transformer that removes unnecessary object creations. If
an attribute, type or token is created, but never used anywhere, then
it can be safely removed. This is possible because types and tokens are
immutable, and we know that the attribute constructor will not have
any interesting side effects after code generation is completed.
- Since:
- Ptolemy II 2.0
- Version:
- $Id: DeadObjectEliminator.java,v 1.33 2006/02/07 00:48:04 cxh Exp $
- Author:
- Stephen Neuendorffer
- Accepted Rating:
- Proposed Rating:
Methods inherited from class soot.BodyTransformer |
transform, transform, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
v
public static DeadObjectEliminator v()
internalTransform
protected void internalTransform(soot.Body body,
java.lang.String phaseName,
java.util.Map options)
- Specified by:
internalTransform
in class soot.BodyTransformer