Class CFGIntermediateRep


  • public abstract class CFGIntermediateRep
    extends CFGOptionMatcher.CFGOption
    An enumeration type for representing the varieties of intermediate representation available, for use in tools that compare or display control flow graphs.
    • Method Detail

      • getBody

        public abstract Body getBody​(JimpleBody b)
        Converts a JimpleBody into the corresponding Body in this intermediate representation.
        Parameters:
        b - The Jimple body to be represented.
        Returns:
        a Body in this intermediate representation which represents the same method as b.
      • getIR

        public static CFGIntermediateRep getIR​(String name)
        Returns the CFGIntermediateRep identified by the passed name.
        Parameters:
        name - A String identifying the intermediate representation.
        Returns:
        A CFGIntermediateRep object whose getBody(JimpleBody) method will create the desired intermediate representation.
      • help

        public static String help​(int initialIndent,
                                  int rightMargin,
                                  int hangingIndent)
        Returns a string containing the names of all the available CFGIntermediateReps, separated by '|' characters.
        Parameters:
        initialIndent - The number of blank spaces to insert at the beginning of the returned string. Ignored if negative.
        rightMargin - If positive, newlines will be inserted to try to keep the length of each line in the returned string less than or equal to *rightMargin.
        hangingIndent - If positive, this number of spaces will be inserted immediately after each newline inserted to respect the rightMargin.