Package soot

Class PhaseOptions


  • public class PhaseOptions
    extends Object
    Manages the phase options of the various soot phases.
    • Method Detail

      • setPackManager

        public void setPackManager​(PackManager m)
      • processPhaseOptions

        public boolean processPhaseOptions​(String phaseName,
                                           String option)
      • 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​(String phaseName,
                                      String option)
      • setPhaseOptionIfUnset

        public void setPhaseOptionIfUnset​(String phaseName,
                                          String option)