edu.cmu.cs.crystal.cfg.eclipse
Class CFGTestUtils
java.lang.Object
edu.cmu.cs.crystal.cfg.eclipse.CFGTestUtils
public class CFGTestUtils
- extends Object
Method Summary |
static boolean |
areGraphsEqual(att.grappa.Graph g1,
att.grappa.Graph g2)
|
static Map<String,org.eclipse.jdt.core.dom.MethodDeclaration> |
createMethodNameMap(org.eclipse.jdt.core.dom.CompilationUnit compUnit)
|
static org.eclipse.jdt.core.dom.CompilationUnit |
parseCode(String qualifiedCompUnitName)
|
static boolean |
testAndCompareCFG(org.eclipse.jdt.core.dom.MethodDeclaration method)
|
CFGTestUtils
public CFGTestUtils()
parseCode
public static org.eclipse.jdt.core.dom.CompilationUnit parseCode(String qualifiedCompUnitName)
throws CoreException
- Throws:
CoreException
testAndCompareCFG
public static boolean testAndCompareCFG(org.eclipse.jdt.core.dom.MethodDeclaration method)
throws Exception
- Throws:
Exception
areGraphsEqual
public static boolean areGraphsEqual(att.grappa.Graph g1,
att.grappa.Graph g2)
createMethodNameMap
public static Map<String,org.eclipse.jdt.core.dom.MethodDeclaration> createMethodNameMap(org.eclipse.jdt.core.dom.CompilationUnit compUnit)