KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > dava > toolkits > base > AST > ASTAnalysis


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2003 Jerome Miecznikowski
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 /*
21    Nomair A. Naeem 08-FEB-2005
22    This analysis class has become obselete.
23    Use soot.dava.toolkits.base.AST.analysis which provides a Visitor Design
24    Pattern
25 */

26
27 package soot.dava.toolkits.base.AST;
28
29 import soot.*;
30 import soot.jimple.*;
31 import soot.dava.internal.AST.*;
32
33 public abstract class ASTAnalysis
34 {
35     public static final int
36
37     ANALYSE_AST = 0,
38     ANALYSE_STMTS = 1,
39     ANALYSE_VALUES = 2;
40
41
42     public abstract int getAnalysisDepth();
43
44     public void analyseASTNode( ASTNode n)
45     {
46     }
47     public void analyseDefinitionStmt( DefinitionStmt s)
48     {
49     }
50     public void analyseReturnStmt( ReturnStmt s)
51     {
52     }
53     public void analyseInvokeStmt( InvokeStmt s)
54     {
55     }
56     public void analyseThrowStmt( ThrowStmt s)
57     {
58     }
59     public void analyseStmt( Stmt s)
60     {
61     }
62     public void analyseBinopExpr( BinopExpr v)
63     {
64     }
65     public void analyseUnopExpr( UnopExpr v)
66     {
67     }
68     public void analyseNewArrayExpr( NewArrayExpr v)
69     {
70     }
71     public void analyseNewMultiArrayExpr( NewMultiArrayExpr v)
72     {
73     }
74     public void analyseInstanceOfExpr( InstanceOfExpr v)
75     {
76     }
77     public void analyseInstanceInvokeExpr( InstanceInvokeExpr v)
78     {
79     }
80     public void analyseInvokeExpr( InvokeExpr v)
81     {
82     }
83     public void analyseExpr( Expr v)
84     {
85     }
86     public void analyseArrayRef( ArrayRef v)
87     {
88     }
89     public void analyseInstanceFieldRef( InstanceFieldRef v)
90     {
91     }
92     public void analyseRef( Ref v)
93     {
94     }
95     public void analyseValue( Value v)
96     {
97     }
98 }
99
Popular Tags