Class 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)
    • 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.
      • 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