|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uci.eecs.doc.cascade.Cascade
public class Cascade
This is the main class for the Cascade tool. It contains an entry point (main) for command-line execution, as well as helper methods for constructing control flow data structures.
| Constructor Summary | |
|---|---|
Cascade(List<String> classPath)
Creates a new Cascade object. |
|
Cascade(String classPath)
Creates a new Cascade object. |
|
| Method Summary | |
|---|---|
List<String> |
getClassPath()
Returns the class path that was specified when the Cascade object was created. |
Graph |
getControlFlowGraph(Method method)
Constructs a control flow graph representing the given Java method. |
Graph |
getControlFlowGraph(Tree tree)
Constructs a control flow graph representing a Java method. |
Graph |
getControlFlowGraph(Tree tree,
boolean includeCacheMissBlocks)
Constructs a control flow graph representing a Java method. |
Set<Graph> |
getControlFlowGraphs(Tree tree)
Returns a set of control flow graphs for the given tree, all methods that it invokes, all methods that they invoke, and so on. |
Tree |
getControlFlowTree(Method method)
Constructs a control flow tree representing the given Java method. |
Set<Tree> |
getControlFlowTrees(Method method)
Returns a set of control flow trees for the given method, all methods that it invokes, all methods that they invoke, and so on. |
static void |
main(String[] args)
An entry point for invoking Cascade from the command line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cascade(List<String> classPath)
classPath - a list of directories that will be searched when loading
classes during control flow constructionpublic Cascade(String classPath)
classPath - a list of directories, separated by the system's path separator
character, that will be searched when loading classes during control flow
construction| Method Detail |
|---|
public static void main(String[] args)
args - a list of command line argumentspublic List<String> getClassPath()
public Graph getControlFlowGraph(Method method)
throws IOException,
NoSuchMethodException,
ClassNotFoundException
method - a handle to the Java method
IOException - if the method cannot be loaded
NoSuchMethodException - if the method cannot be found
ClassNotFoundException - if the method calls another method and its class cannot be foundgetControlFlowGraph(Tree)
public Graph getControlFlowGraph(Tree tree)
throws NoSuchMethodException,
ClassNotFoundException,
IOException
tree - the control flow tree of the method
NoSuchMethodException - if the method calls another method and it cannot be found
ClassNotFoundException - if the method calls another method and its class cannot be found
IOException - if the method calls another method and it cannot be loadedgetControlFlowGraph(Method)
public Graph getControlFlowGraph(Tree tree,
boolean includeCacheMissBlocks)
throws NoSuchMethodException,
ClassNotFoundException,
IOException
tree - the control flow tree of the methodincludeCacheMissBlocks - if true, every method invocation is preceded by an InvokeMiss block
and every return instruction by a ReturnMiss block; if false, no such blocks appear in the graph
NoSuchMethodException - if the method calls another method and it cannot be found
ClassNotFoundException - if the method calls another method and its class cannot be found
IOException - if the method calls another method and it cannot be loadedgetControlFlowGraph(Method)
public Set<Graph> getControlFlowGraphs(Tree tree)
throws IOException,
NoSuchMethodException,
ClassNotFoundException
void methodA()
{
methodB();
}
void methodB()
{
methodC();
}
void methodC()
{
methodA();
methodC();
}
If methodA is given as the parameter, this method will return a set
of three control flow graphs: one for methodA, one for
methodB, and one for methodC.
tree - a control flow tree
IOException - if a method cannot be loaded
NoSuchMethodException - if a method cannot be found
ClassNotFoundException - if the method calls another method and its class cannot be found
public Tree getControlFlowTree(Method method)
throws IOException,
NoSuchMethodException,
ClassNotFoundException
method - a handle to a Java method
IOException - if the method cannot be loaded
NoSuchMethodException - if the method cannot be found
ClassNotFoundException - if the method's class cannot be found
public Set<Tree> getControlFlowTrees(Method method)
throws IOException,
NoSuchMethodException,
ClassNotFoundException
void methodA()
{
methodB();
}
void methodB()
{
methodC();
}
void methodC()
{
}
If methodA is given as the parameter, this method will return a set
of three control flow trees: one for methodA, one for
methodB, and one for methodC.
method - a handle to a Java method
IOException - if a method cannot be loaded
NoSuchMethodException - if a method cannot be found
ClassNotFoundException - if the method's class cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||