001: /* Soot - a J*va Optimization Framework
002: * Copyright (C) 1997-1999 Raja Vallee-Rai
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: /*
021: * Modified by the Sable Research Group and others 1997-1999.
022: * See the 'credits' file distributed with Soot for the complete list of
023: * contributors. (Soot is distributed at http://www.sable.mcgill.ca/soot)
024: */
025:
026: package soot.jimple;
027:
028: public abstract class AbstractStmtSwitch implements StmtSwitch {
029: Object result;
030:
031: public void caseBreakpointStmt(BreakpointStmt stmt) {
032: defaultCase(stmt);
033: }
034:
035: public void caseInvokeStmt(InvokeStmt stmt) {
036: defaultCase(stmt);
037: }
038:
039: public void caseAssignStmt(AssignStmt stmt) {
040: defaultCase(stmt);
041: }
042:
043: public void caseIdentityStmt(IdentityStmt stmt) {
044: defaultCase(stmt);
045: }
046:
047: public void caseEnterMonitorStmt(EnterMonitorStmt stmt) {
048: defaultCase(stmt);
049: }
050:
051: public void caseExitMonitorStmt(ExitMonitorStmt stmt) {
052: defaultCase(stmt);
053: }
054:
055: public void caseGotoStmt(GotoStmt stmt) {
056: defaultCase(stmt);
057: }
058:
059: public void caseIfStmt(IfStmt stmt) {
060: defaultCase(stmt);
061: }
062:
063: public void caseLookupSwitchStmt(LookupSwitchStmt stmt) {
064: defaultCase(stmt);
065: }
066:
067: public void caseNopStmt(NopStmt stmt) {
068: defaultCase(stmt);
069: }
070:
071: public void caseRetStmt(RetStmt stmt) {
072: defaultCase(stmt);
073: }
074:
075: public void caseReturnStmt(ReturnStmt stmt) {
076: defaultCase(stmt);
077: }
078:
079: public void caseReturnVoidStmt(ReturnVoidStmt stmt) {
080: defaultCase(stmt);
081: }
082:
083: public void caseTableSwitchStmt(TableSwitchStmt stmt) {
084: defaultCase(stmt);
085: }
086:
087: public void caseThrowStmt(ThrowStmt stmt) {
088: defaultCase(stmt);
089: }
090:
091: public void defaultCase(Object obj) {
092: }
093:
094: public void setResult(Object result) {
095: this .result = result;
096: }
097:
098: public Object getResult() {
099: return result;
100: }
101: }
|