Package soot.util.cfgcmd
Class CFGIntermediateRep
- java.lang.Object
-
- soot.util.cfgcmd.CFGOptionMatcher.CFGOption
-
- soot.util.cfgcmd.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.
-
-
Field Summary
Fields Modifier and Type Field Description static CFGIntermediateRepBAF_IRstatic CFGIntermediateRepGRIMP_IRstatic CFGIntermediateRepJIMPLE_IRstatic CFGIntermediateRepSHIMPLE_IRstatic CFGIntermediateRepVIA_SHIMPLE_JIMPLE_IR
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BodygetBody(JimpleBody b)Converts aJimpleBodyinto the correspondingBodyin this intermediate representation.static CFGIntermediateRepgetIR(String name)Returns theCFGIntermediateRepidentified by the passed name.static Stringhelp(int initialIndent, int rightMargin, int hangingIndent)Returns a string containing the names of all the availableCFGIntermediateReps, separated by '|' characters.-
Methods inherited from class soot.util.cfgcmd.CFGOptionMatcher.CFGOption
name
-
-
-
-
Field Detail
-
JIMPLE_IR
public static final CFGIntermediateRep JIMPLE_IR
-
BAF_IR
public static final CFGIntermediateRep BAF_IR
-
GRIMP_IR
public static final CFGIntermediateRep GRIMP_IR
-
SHIMPLE_IR
public static final CFGIntermediateRep SHIMPLE_IR
-
VIA_SHIMPLE_JIMPLE_IR
public static final CFGIntermediateRep VIA_SHIMPLE_JIMPLE_IR
-
-
Method Detail
-
getBody
public abstract Body getBody(JimpleBody b)
Converts aJimpleBodyinto the correspondingBodyin this intermediate representation.- Parameters:
b- The Jimple body to be represented.- Returns:
- a
Bodyin this intermediate representation which represents the same method asb.
-
getIR
public static CFGIntermediateRep getIR(String name)
Returns theCFGIntermediateRepidentified by the passed name.- Parameters:
name- AStringidentifying the intermediate representation.- Returns:
- A
CFGIntermediateRepobject whosegetBody(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 availableCFGIntermediateReps, 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 therightMargin.
-
-