KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > shimple > ShimpleFactory


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2004 Navindra Umanee <navindra@cs.mcgill.ca>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */

19
20 package soot.shimple;
21
22 import soot.*;
23 import soot.util.*;
24 import java.util.*;
25 import soot.shimple.*;
26 import soot.shimple.toolkits.scalar.*;
27 import soot.shimple.toolkits.graph.*;
28 import soot.options.*;
29 import soot.jimple.*;
30 import soot.jimple.internal.*;
31 import soot.jimple.toolkits.base.*;
32 import soot.jimple.toolkits.callgraph.*;
33 import soot.jimple.toolkits.pointer.*;
34 import soot.jimple.toolkits.scalar.*;
35 import soot.toolkits.graph.*;
36 import soot.toolkits.scalar.*;
37
38 /**
39  * @author Navindra Umanee
40  **/

41 public interface ShimpleFactory
42 {
43     /**
44      * Some constructors may require a body. If this is not set at
45      * the time of need, an exception will be thrown.
46      **/

47     public void setBody(Body body);
48
49     /**
50      * Constructors should memoize their return value. Call clearCache()
51      * to force recomputations if body has changed and setBody()
52      * hasn't been called again.
53      **/

54     public void clearCache();
55
56     public UnitGraph getUnitGraph();
57     public BlockGraph getBlockGraph();
58     public DominatorsFinder getDominatorsFinder();
59     public DominatorTree getDominatorTree();
60     public DominanceFrontier getDominanceFrontier();
61
62     public GlobalValueNumberer getGlobalValueNumberer();
63     public ReversibleGraph getReverseBlockGraph();
64     public DominatorsFinder getReverseDominatorsFinder();
65     public DominatorTree getReverseDominatorTree();
66     public DominanceFrontier getReverseDominanceFrontier();
67 }
68
Popular Tags