soot
Class Transform

java.lang.Object
  extended by soot.Transform
All Implemented Interfaces:
HasPhaseOptions

public class Transform
extends Object
implements HasPhaseOptions

Maintains the pair (phaseName, singleton) needed for a transformation.


Constructor Summary
Transform(String phaseName, Transformer t)
           
 
Method Summary
 void apply()
           
 void apply(Body b)
           
 String getDeclaredOptions()
           
 String getDefaultOptions()
           
 String getPhaseName()
           
 Transformer getTransformer()
           
 void setDeclaredOptions(String options)
          Allows user-defined phases to have options other than just enabled without having to mess with the XML.
 void setDefaultOptions(String options)
          Allows user-defined phases to have options other than just enabled without having to mess with the XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transform

public Transform(String phaseName,
                 Transformer t)
Method Detail

getPhaseName

public String getPhaseName()
Specified by:
getPhaseName in interface HasPhaseOptions

getTransformer

public Transformer getTransformer()

getDeclaredOptions

public String getDeclaredOptions()
Specified by:
getDeclaredOptions in interface HasPhaseOptions

getDefaultOptions

public String getDefaultOptions()
Specified by:
getDefaultOptions in interface HasPhaseOptions

setDeclaredOptions

public void setDeclaredOptions(String options)
Allows user-defined phases to have options other than just enabled without having to mess with the XML. Call this method with a space-separated list of options declared for this Transform. Only declared options may be passed to this transform as a phase option.


setDefaultOptions

public void setDefaultOptions(String options)
Allows user-defined phases to have options other than just enabled without having to mess with the XML. Call this method with a space-separated list of option:value pairs that this Transform is to use as default parameters (eg `enabled:off').


apply

public void apply()

apply

public void apply(Body b)