01: /* Soot - a J*va Optimization Framework
02: * Copyright (C) 2003 Jerome Miecznikowski
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * 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: public static final int
35:
36: ANALYSE_AST = 0, ANALYSE_STMTS = 1, ANALYSE_VALUES = 2;
37:
38: public abstract int getAnalysisDepth();
39:
40: public void analyseASTNode(ASTNode n) {
41: }
42:
43: public void analyseDefinitionStmt(DefinitionStmt s) {
44: }
45:
46: public void analyseReturnStmt(ReturnStmt s) {
47: }
48:
49: public void analyseInvokeStmt(InvokeStmt s) {
50: }
51:
52: public void analyseThrowStmt(ThrowStmt s) {
53: }
54:
55: public void analyseStmt(Stmt s) {
56: }
57:
58: public void analyseBinopExpr(BinopExpr v) {
59: }
60:
61: public void analyseUnopExpr(UnopExpr v) {
62: }
63:
64: public void analyseNewArrayExpr(NewArrayExpr v) {
65: }
66:
67: public void analyseNewMultiArrayExpr(NewMultiArrayExpr v) {
68: }
69:
70: public void analyseInstanceOfExpr(InstanceOfExpr v) {
71: }
72:
73: public void analyseInstanceInvokeExpr(InstanceInvokeExpr v) {
74: }
75:
76: public void analyseInvokeExpr(InvokeExpr v) {
77: }
78:
79: public void analyseExpr(Expr v) {
80: }
81:
82: public void analyseArrayRef(ArrayRef v) {
83: }
84:
85: public void analyseInstanceFieldRef(InstanceFieldRef v) {
86: }
87:
88: public void analyseRef(Ref v) {
89: }
90:
91: public void analyseValue(Value v) {
92: }
93: }
|