Package soot
Class Transform
- java.lang.Object
-
- soot.Transform
-
- All Implemented Interfaces:
HasPhaseOptions
public class Transform extends Object implements HasPhaseOptions
Maintains the pair (phaseName, singleton) needed for a transformation.
-
-
Constructor Summary
Constructors Constructor Description Transform(String phaseName, Transformer t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()voidapply(Body b)StringgetDeclaredOptions()StringgetDefaultOptions()StringgetPhaseName()TransformergetTransformer()voidsetDeclaredOptions(String options)Allows user-defined phases to have options other than just enabled without having to mess with the XML.voidsetDefaultOptions(String options)Allows user-defined phases to have options other than just enabled without having to mess with the XML.StringtoString()
-
-
-
Constructor Detail
-
Transform
public Transform(String phaseName, Transformer t)
-
-
Method Detail
-
getPhaseName
public String getPhaseName()
- Specified by:
getPhaseNamein interfaceHasPhaseOptions
-
getTransformer
public Transformer getTransformer()
-
getDeclaredOptions
public String getDeclaredOptions()
- Specified by:
getDeclaredOptionsin interfaceHasPhaseOptions
-
getDefaultOptions
public String getDefaultOptions()
- Specified by:
getDefaultOptionsin interfaceHasPhaseOptions
-
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)
-
-