edu.cmu.cs.crystal.cfg.eclipse
Class CFGTestUtils

java.lang.Object
  extended by edu.cmu.cs.crystal.cfg.eclipse.CFGTestUtils

public class CFGTestUtils
extends Object


Constructor Summary
CFGTestUtils()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFGTestUtils

public CFGTestUtils()
Method Detail

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)