00001 package ca.mcgill.sable.soot.coffi; 00002 00003 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00004 * Jimple, a 3-address code Java(TM) bytecode representation. * 00005 * Copyright (C) 1997, 1998 Raja Vallee-Rai (kor@sable.mcgill.ca) * 00006 * All rights reserved. * 00007 * * 00008 * Modifications by Etienne Gagnon (gagnon@sable.mcgill.ca) are * 00009 * Copyright (C) 1998 Etienne Gagnon (gagnon@sable.mcgill.ca). All * 00010 * rights reserved. * 00011 * * 00012 * This work was done as a project of the Sable Research Group, * 00013 * School of Computer Science, McGill University, Canada * 00014 * (http://www.sable.mcgill.ca/). It is understood that any * 00015 * modification not identified as such is not covered by the * 00016 * preceding statement. * 00017 * * 00018 * This work is free software; you can redistribute it and/or * 00019 * modify it under the terms of the GNU Library General Public * 00020 * License as published by the Free Software Foundation; either * 00021 * version 2 of the License, or (at your option) any later version. * 00022 * * 00023 * This work is distributed in the hope that it will be useful, * 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00026 * Library General Public License for more details. * 00027 * * 00028 * You should have received a copy of the GNU Library General Public * 00029 * License along with this library; if not, write to the * 00030 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * 00031 * Boston, MA 02111-1307, USA. * 00032 * * 00033 * Java is a trademark of Sun Microsystems, Inc. * 00034 * * 00035 * To submit a bug report, send a comment, or get the latest news on * 00036 * this project and other Sable Research Group projects, please * 00037 * visit the web site: http://www.sable.mcgill.ca/ * 00038 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00039 00040 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00041 * Coffi, a bytecode parser for the Java(TM) language. * 00042 * Copyright (C) 1996, 1997 Clark Verbrugge (clump@sable.mcgill.ca). * 00043 * All rights reserved. * 00044 * * 00045 * This work was done as a project of the Sable Research Group, * 00046 * School of Computer Science, McGill University, Canada * 00047 * (http://www.sable.mcgill.ca/). It is understood that any * 00048 * modification not identified as such is not covered by the * 00049 * preceding statement. * 00050 * * 00051 * This work is free software; you can redistribute it and/or * 00052 * modify it under the terms of the GNU Library General Public * 00053 * License as published by the Free Software Foundation; either * 00054 * version 2 of the License, or (at your option) any later version. * 00055 * * 00056 * This work is distributed in the hope that it will be useful, * 00057 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00058 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00059 * Library General Public License for more details. * 00060 * * 00061 * You should have received a copy of the GNU Library General Public * 00062 * License along with this library; if not, write to the * 00063 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * 00064 * Boston, MA 02111-1307, USA. * 00065 * * 00066 * Java is a trademark of Sun Microsystems, Inc. * 00067 * * 00068 * To submit a bug report, send a comment, or get the latest news on * 00069 * this project and other Sable Research Group projects, please * 00070 * visit the web site: http://www.sable.mcgill.ca/ * 00071 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00072 00073 /* 00074 Reference Version 00075 ----------------- 00076 This is the latest official version on which this file is based. 00077 The reference version is: $CoffiVersion: 1.1 $ 00078 $SootVersion: 1.beta.4 $ 00079 00080 Change History 00081 -------------- 00082 A) Notes: 00083 00084 Please use the following template. Most recent changes should 00085 appear at the top of the list. 00086 00087 - Modified on [date (March 1, 1900)] by [name]. [(*) if appropriate] 00088 [description of modification]. 00089 00090 Any Modification flagged with "(*)" was done as a project of the 00091 Sable Research Group, School of Computer Science, 00092 McGill University, Canada (http://www.sable.mcgill.ca/). 00093 00094 You should add your copyright, using the following template, at 00095 the top of this file, along with other copyrights. 00096 00097 * * 00098 * Modifications by [name] are * 00099 * Copyright (C) [year(s)] [your name (or company)]. All rights * 00100 * reserved. * 00101 * * 00102 00103 B) Changes: 00104 00105 - Modified on November 2, 1998 by Raja Vallee-Rai (kor@sable.mcgill.ca) (*) 00106 Repackaged all source files and performed extensive modifications. 00107 First initial release of Soot. 00108 00109 - Modified on July 5, 1998 by Etienne Gagnon (gagnon@sable.mcgill.ca). (*) 00110 Changed caseDefault to defaultCase, to avoid name conflicts (and conform 00111 to the standard). 00112 00113 - Modified on 15-Jun-1998 by Raja Vallee-Rai (kor@sable.mcgill.ca). (*) 00114 First internal release (Version 0.1). 00115 */ 00116 00117 import ca.mcgill.sable.util.*; 00118 import ca.mcgill.sable.soot.*; 00119 00120 class FutureStmt extends ca.mcgill.sable.soot.jimple.AbstractStmt 00121 { 00122 public Object object; 00123 00124 List myEmptyList = Collections.unmodifiableList(new ArrayList()); 00125 00126 public FutureStmt() 00127 { 00128 } 00129 public FutureStmt(Object object) 00130 { 00131 this.object = object; 00132 } 00133 public void apply(Switch sw) 00134 { 00135 ((ca.mcgill.sable.soot.jimple.StmtSwitch) sw).defaultCase(this); 00136 } 00137 public List getDefBoxes() 00138 { 00139 return myEmptyList; 00140 } 00141 public List getUnitBoxes() 00142 { 00143 return myEmptyList; 00144 } 00145 public List getUseBoxes() 00146 { 00147 return myEmptyList; 00148 } 00149 protected String toString(boolean isBrief, Map stmtToName, String indentation) 00150 { 00151 return "<futurestmt>"; 00152 } 00153 }