001: /* Soot - a J*va Optimization Framework
002: * Copyright (C) 2005 Nomair A. Naeem
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2.1 of the License, or (at your option) any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the
016: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
017: * Boston, MA 02111-1307, USA.
018: */
019:
020: package soot.dava.toolkits.base.AST.analysis;
021:
022: import soot.*;
023: import soot.jimple.*;
024: import soot.dava.internal.AST.*;
025: import soot.dava.internal.javaRep.*;
026:
027: public class AnalysisAdapter implements Analysis {
028:
029: public void defaultCase(Object o) {
030: //do nothing
031: }
032:
033: public void caseASTMethodNode(ASTMethodNode node) {
034: defaultCase(node);
035: }
036:
037: public void caseASTSynchronizedBlockNode(
038: ASTSynchronizedBlockNode node) {
039: defaultCase(node);
040: }
041:
042: public void caseASTLabeledBlockNode(ASTLabeledBlockNode node) {
043: defaultCase(node);
044: }
045:
046: public void caseASTUnconditionalLoopNode(
047: ASTUnconditionalLoopNode node) {
048: defaultCase(node);
049: }
050:
051: public void caseASTSwitchNode(ASTSwitchNode node) {
052: defaultCase(node);
053: }
054:
055: public void caseASTIfNode(ASTIfNode node) {
056: defaultCase(node);
057: }
058:
059: public void caseASTIfElseNode(ASTIfElseNode node) {
060: defaultCase(node);
061: }
062:
063: public void caseASTWhileNode(ASTWhileNode node) {
064: defaultCase(node);
065: }
066:
067: public void caseASTForLoopNode(ASTForLoopNode node) {
068: defaultCase(node);
069: }
070:
071: public void caseASTDoWhileNode(ASTDoWhileNode node) {
072: defaultCase(node);
073: }
074:
075: public void caseASTTryNode(ASTTryNode node) {
076: defaultCase(node);
077: }
078:
079: public void caseASTStatementSequenceNode(
080: ASTStatementSequenceNode node) {
081: defaultCase(node);
082: }
083:
084: public void caseASTUnaryCondition(ASTUnaryCondition uc) {
085: defaultCase(uc);
086: }
087:
088: public void caseASTBinaryCondition(ASTBinaryCondition bc) {
089: defaultCase(bc);
090: }
091:
092: public void caseASTAndCondition(ASTAndCondition ac) {
093: defaultCase(ac);
094: }
095:
096: public void caseASTOrCondition(ASTOrCondition oc) {
097: defaultCase(oc);
098: }
099:
100: public void caseType(Type t) {
101: defaultCase(t);
102: }
103:
104: public void caseDefinitionStmt(DefinitionStmt s) {
105: defaultCase(s);
106: }
107:
108: public void caseReturnStmt(ReturnStmt s) {
109: defaultCase(s);
110: }
111:
112: public void caseInvokeStmt(InvokeStmt s) {
113: defaultCase(s);
114: }
115:
116: public void caseThrowStmt(ThrowStmt s) {
117: defaultCase(s);
118: }
119:
120: public void caseDVariableDeclarationStmt(DVariableDeclarationStmt s) {
121: defaultCase(s);
122: }
123:
124: public void caseStmt(Stmt s) {
125: defaultCase(s);
126: }
127:
128: public void caseValue(Value v) {
129: defaultCase(v);
130: }
131:
132: public void caseExpr(Expr e) {
133: defaultCase(e);
134: }
135:
136: public void caseRef(Ref r) {
137: defaultCase(r);
138: }
139:
140: public void caseBinopExpr(BinopExpr be) {
141: defaultCase(be);
142: }
143:
144: public void caseUnopExpr(UnopExpr ue) {
145: defaultCase(ue);
146: }
147:
148: public void caseNewArrayExpr(NewArrayExpr nae) {
149: defaultCase(nae);
150: }
151:
152: public void caseNewMultiArrayExpr(NewMultiArrayExpr nmae) {
153: defaultCase(nmae);
154: }
155:
156: public void caseInstanceOfExpr(InstanceOfExpr ioe) {
157: defaultCase(ioe);
158: }
159:
160: public void caseInvokeExpr(InvokeExpr ie) {
161: defaultCase(ie);
162: }
163:
164: public void caseInstanceInvokeExpr(InstanceInvokeExpr iie) {
165: defaultCase(iie);
166: }
167:
168: public void caseCastExpr(CastExpr ce) {
169: defaultCase(ce);
170: }
171:
172: public void caseArrayRef(ArrayRef ar) {
173: defaultCase(ar);
174: }
175:
176: public void caseInstanceFieldRef(InstanceFieldRef ifr) {
177: defaultCase(ifr);
178: }
179:
180: public void caseStaticFieldRef(StaticFieldRef sfr) {
181: defaultCase(sfr);
182: }
183: }
|