Package soot
Class PhaseOptions
- java.lang.Object
-
- soot.PhaseOptions
-
public class PhaseOptions extends Object
Manages the phase options of the various soot phases.
-
-
Constructor Summary
Constructors Constructor Description PhaseOptions(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleangetBoolean(Map<String,String> options, String name)This method returns true iff key "name" is in options and maps to "true".static booleangetBoolean(Map<String,String> options, String name, boolean defaultValue)If key "name" is in options, this method returns true iff it maps to "true".static floatgetFloat(Map<String,String> options, String name)This method returns the float value of "name" in options or 1.0 if "name" is not found.static intgetInt(Map<String,String> options, String name)This method returns the integer value of "name" in options or 0 if "name" is not found.Map<String,String>getPhaseOptions(String phaseName)Map<String,String>getPhaseOptions(HasPhaseOptions phase)static StringgetString(Map<String,String> options, String name)This method returns the value of "name" in options or "" if "name" is not found.booleanprocessPhaseOptions(String phaseName, String option)voidsetPackManager(PackManager m)booleansetPhaseOption(String phaseName, String option)booleansetPhaseOption(HasPhaseOptions phase, String option)voidsetPhaseOptionIfUnset(String phaseName, String option)static PhaseOptionsv()
-
-
-
Constructor Detail
-
PhaseOptions
public PhaseOptions(Singletons.Global g)
-
-
Method Detail
-
setPackManager
public void setPackManager(PackManager m)
-
v
public static PhaseOptions v()
-
getPhaseOptions
public Map<String,String> getPhaseOptions(HasPhaseOptions phase)
-
getBoolean
public static boolean getBoolean(Map<String,String> options, String name)
This method returns true iff key "name" is in options and maps to "true".
-
getBoolean
public static boolean getBoolean(Map<String,String> options, String name, boolean defaultValue)
If key "name" is in options, this method returns true iff it maps to "true". If the key "name" is not in options, the given default value is returned.
-
getString
public static String getString(Map<String,String> options, String name)
This method returns the value of "name" in options or "" if "name" is not found.
-
getFloat
public static float getFloat(Map<String,String> options, String name)
This method returns the float value of "name" in options or 1.0 if "name" is not found.
-
getInt
public static int getInt(Map<String,String> options, String name)
This method returns the integer value of "name" in options or 0 if "name" is not found.
-
setPhaseOption
public boolean setPhaseOption(HasPhaseOptions phase, String option)
-
-