public class JavaSource2CFGDOT extends Object
Constructor and Description |
---|
JavaSource2CFGDOT() |
Modifier and Type | Method and Description |
---|---|
static void |
generateDOTofCFG(String inputFile,
String outputFile,
String method,
String clas,
boolean pdf)
Just like method above but without analysis.
|
static <A extends AbstractValue<A>,S extends Store<S>,T extends TransferFunction<A,S>> |
generateDOTofCFG(String inputFile,
String outputFile,
String method,
String clas,
boolean pdf,
@Nullable Analysis<A,S,T> analysis)
Generate the DOT representation of the CFG for a method.
|
static <A extends AbstractValue<A>,S extends Store<S>,T extends TransferFunction<A,S>> |
generateDOTofCFG(String inputFile,
String outputFile,
String method,
String clas,
boolean pdf,
@Nullable Analysis<A,S,T> analysis,
MethodTree m,
CompilationUnitTree r) |
static @Nullable MethodTree |
getMethodTree(String file,
String method,
String clas) |
static Map.Entry<MethodTree,CompilationUnitTree> |
getMethodTreeAndCompilationUnit(String file,
String method,
String clas) |
static void |
main(String[] args)
Main method.
|
protected static void |
printError(String string)
Print an error message.
|
protected static void |
printUsage()
Print usage information.
|
protected static void |
producePDF(String file)
Invoke DOT to generate a PDF.
|
public static void main(String[] args)
protected static void printError(String string)
protected static void printUsage()
public static void generateDOTofCFG(String inputFile, String outputFile, String method, String clas, boolean pdf)
public static <A extends AbstractValue<A>,S extends Store<S>,T extends TransferFunction<A,S>> void generateDOTofCFG(String inputFile, String outputFile, String method, String clas, boolean pdf, @Nullable Analysis<A,S,T> analysis)
inputFile
- Java source input file.outputFile
- Source output file (without file extension)method
- Method name to generate the CFG for.pdf
- Also generate a PDF?analysis
- Analysis to perform befor the visualization (or
null
if no analysis is to be performed).public static <A extends AbstractValue<A>,S extends Store<S>,T extends TransferFunction<A,S>> void generateDOTofCFG(String inputFile, String outputFile, String method, String clas, boolean pdf, @Nullable Analysis<A,S,T> analysis, MethodTree m, CompilationUnitTree r)
protected static void producePDF(String file)
public static @Nullable MethodTree getMethodTree(String file, String method, String clas)
public static Map.Entry<MethodTree,CompilationUnitTree> getMethodTreeAndCompilationUnit(String file, String method, String clas)
CompilationUnitTree
in a specific file (or null they do
not exist).