KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > jimple > AbstractStmtSwitch


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 1997-1999 Raja Vallee-Rai
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  * Modified by the Sable Research Group and others 1997-1999.
22  * See the 'credits' file distributed with Soot for the complete list of
23  * contributors. (Soot is distributed at http://www.sable.mcgill.ca/soot)
24  */

25
26
27
28
29
30 package soot.jimple;
31
32 import soot.*;
33
34 public abstract class AbstractStmtSwitch implements StmtSwitch
35 {
36     Object JavaDoc result;
37
38     public void caseBreakpointStmt(BreakpointStmt stmt)
39     {
40         defaultCase(stmt);
41     }
42
43     public void caseInvokeStmt(InvokeStmt stmt)
44     {
45         defaultCase(stmt);
46     }
47
48     public void caseAssignStmt(AssignStmt stmt)
49     {
50         defaultCase(stmt);
51     }
52
53     public void caseIdentityStmt(IdentityStmt stmt)
54     {
55         defaultCase(stmt);
56     }
57
58     public void caseEnterMonitorStmt(EnterMonitorStmt stmt)
59     {
60         defaultCase(stmt);
61     }
62
63     public void caseExitMonitorStmt(ExitMonitorStmt stmt)
64     {
65         defaultCase(stmt);
66     }
67
68     public void caseGotoStmt(GotoStmt stmt)
69     {
70         defaultCase(stmt);
71     }
72
73     public void caseIfStmt(IfStmt stmt)
74     {
75         defaultCase(stmt);
76     }
77
78     public void caseLookupSwitchStmt(LookupSwitchStmt stmt)
79     {
80         defaultCase(stmt);
81     }
82
83     public void caseNopStmt(NopStmt stmt)
84     {
85         defaultCase(stmt);
86     }
87
88     public void caseRetStmt(RetStmt stmt)
89     {
90         defaultCase(stmt);
91     }
92
93     public void caseReturnStmt(ReturnStmt stmt)
94     {
95         defaultCase(stmt);
96     }
97
98     public void caseReturnVoidStmt(ReturnVoidStmt stmt)
99     {
100         defaultCase(stmt);
101     }
102
103     public void caseTableSwitchStmt(TableSwitchStmt stmt)
104     {
105         defaultCase(stmt);
106     }
107
108     public void caseThrowStmt(ThrowStmt stmt)
109     {
110         defaultCase(stmt);
111     }
112
113     public void defaultCase(Object JavaDoc obj)
114     {
115     }
116
117     public void setResult(Object JavaDoc result)
118     {
119         this.result = result;
120     }
121
122     public Object JavaDoc getResult()
123     {
124         return result;
125     }
126 }
127
128
Popular Tags