Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

BuildJimpleBodyOption.java

00001 package ca.mcgill.sable.soot.jimple;
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 Patrick Lam (plam@sable.mcgill.ca) are           *
00009  * Copyright (C) 1999 Patrick Lam.  All rights reserved.             *
00010  *                                                                   *
00011  * This work was done as a project of the Sable Research Group,      *
00012  * School of Computer Science, McGill University, Canada             *
00013  * (http://www.sable.mcgill.ca/).  It is understood that any         *
00014  * modification not identified as such is not covered by the         *
00015  * preceding statement.                                              *
00016  *                                                                   *
00017  * This work is distributed in the hope that it will be useful,      *
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of    *
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *
00020  * Library General Public License for more details.                  *
00021  *                                                                   *
00022  * You should have received a copy of the GNU Library General Public *
00023  * License along with this library; if not, write to the             *
00024  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,      *
00025  * Boston, MA  02111-1307, USA.                                      *
00026  *                                                                   *
00027  * Java is a trademark of Sun Microsystems, Inc.                     *
00028  *                                                                   *
00029  * To submit a bug report, send a comment, or get the latest news on *
00030  * this project and other Sable Research Group projects, please      *
00031  * visit the web site: http://www.sable.mcgill.ca/                   *
00032  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00033 
00034 /*
00035  Reference Version
00036  -----------------
00037  This is the latest official version on which this file is based.
00038  The reference version is: $SootVersion: 1.beta.4 $
00039 
00040  Change History
00041  --------------
00042  A) Notes:
00043 
00044  Please use the following template.  Most recent changes should
00045  appear at the top of the list.
00046 
00047  - Modified on [date (March 1, 1900)] by [name]. [(*) if appropriate]
00048    [description of modification].
00049 
00050  Any Modification flagged with "(*)" was done as a project of the
00051  Sable Research Group, School of Computer Science,
00052  McGill University, Canada (http://www.sable.mcgill.ca/).
00053 
00054  You should add your copyright, using the following template, at
00055  the top of this file, along with other copyrights.
00056 
00057  *                                                                   *
00058  * Modifications by [name] are                                       *
00059  * Copyright (C) [year(s)] [your name (or company)].  All rights     *
00060  * reserved.                                                         *
00061  *                                                                   *
00062 
00063  B) Changes:
00064 
00065  - Modified on February 3, 1999 by Patrick Lam (plam@sable.mcgill.ca) (*)
00066    Added changes in support of the Grimp intermediate
00067    representation (with aggregated-expressions).
00068 
00069  - Modified on November 2, 1998 by Raja Vallee-Rai (kor@sable.mcgill.ca) (*)
00070    Repackaged all source files and performed extensive modifications.
00071    First initial release of Soot.
00072 
00073  - Modified on November 2, 1998 by Raja Vallee-Rai (kor@sable.mcgill.ca). (*)
00074    First internal release (Version 0.1).
00075 */
00076 
00077 import ca.mcgill.sable.soot.*;
00078 import ca.mcgill.sable.util.*;
00079 import java.io.*;
00080 
00081 public class BuildJimpleBodyOption
00082 {
00083     public static final int NO_TYPING      = 0x0001,
00084                             NO_RENAMING    = 0x0002,
00085                             NO_SPLITTING   = 0x0004,
00086                             NO_CLEANUP     = 0x0008,
00087                             NO_PACKING     = 0x0010,
00088                             NO_AGGREGATING = 0x0020;
00089 
00090     public static boolean noAggregating(int m)
00091     {
00092         return (m & NO_AGGREGATING) != 0;
00093     }
00094     public static boolean noCleanup(int m)
00095     {
00096         return (m & NO_CLEANUP) != 0;
00097     }
00098     public static boolean noPacking(int m)
00099     {
00100         return (m & NO_PACKING) != 0;
00101     }
00102     public static boolean noRenaming(int m)
00103     {
00104         return (m & NO_RENAMING) != 0;
00105     }
00106     public static boolean noSplitting(int m)
00107     {
00108         return (m & NO_SPLITTING) != 0;
00109     }
00110     public static boolean noTyping(int m)
00111     {
00112         return (m & NO_TYPING) != 0;
00113     }
00114 }

Generated at Thu Feb 7 06:41:30 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001