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

ValueVariant.java

00001 package edu.ksu.cis.bandera.bofa;
00002 
00003 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00004  * Bandera, a Java(TM) analysis and transformation toolkit           *
00005  * Copyright (C) 1998, 1999   Shawn Laubach (laubach@acm.org)        *
00006  * All rights reserved.                                              *
00007  *                                                                   *
00008  * This work was done as a project in the SAnToS Laboratory,         *
00009  * Department of Computing and Information Sciences, Kansas State    *
00010  * University, USA (http://www.cis.ksu.edu/santos).                  *
00011  * It is understood that any modification not identified as such is  *
00012  * not covered by the preceding statement.                           *
00013  *                                                                   *
00014  * This work is free software; you can redistribute it and/or        *
00015  * modify it under the terms of the GNU Library General Public       *
00016  * License as published by the Free Software Foundation; either      *
00017  * version 2 of the License, or (at your option) any later version.  *
00018  *                                                                   *
00019  * This work is distributed in the hope that it will be useful,      *
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of    *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *
00022  * Library General Public License for more details.                  *
00023  *                                                                   *
00024  * You should have received a copy of the GNU Library General Public *
00025  * License along with this toolkit; if not, write to the             *
00026  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,      *
00027  * Boston, MA  02111-1307, USA.                                      *
00028  *                                                                   *
00029  * Java is a trademark of Sun Microsystems, Inc.                     *
00030  *                                                                   *
00031  * To submit a bug report, send a comment, or get the latest news on *
00032  * this project and other SAnToS projects, please visit the web-site *
00033  *                http://www.cis.ksu.edu/santos                      *
00034  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00035 
00036 import ca.mcgill.sable.soot.*;
00037 import ca.mcgill.sable.soot.jimple.Value;
00038 import ca.mcgill.sable.soot.jimple.Stmt;
00039 
00040 /* 
00041  * ValueVariant.java 
00042  * $Id: ValueVariant.java,v 1.1.1.1 2002/01/24 03:42:08 pserver Exp $
00043  */
00044 
00045 /**
00046  * This class represents the values that may flow in the flow graph.
00047  * @author <A HREF="http://www.cis.ksu.edu/~hatcliff">John Hatcliff</A>
00048  * @author
00049  * <a href="http://www.cis.ksu.edu/~rvprasad">Venkatesh Prasad Ranganath</a>
00050  * @version $Name:  $($Revision: 1.1.1.1 $)
00051  */
00052 public class ValueVariant
00053 {
00054     /** 
00055      * The class of the value variant.  The type in simple words.
00056      */
00057     private ClassToken classToken;
00058 
00059     /** 
00060      * Index associated with the value variant. 
00061      */
00062     private Index      valueIndex;
00063 
00064     /** 
00065      * Expression in which the value variant gets created. 
00066      */
00067     private Value expr;
00068 
00069     /** 
00070      * Statement in which the value variant gets created. 
00071      */
00072     private Stmt stmt;
00073 
00074     /**
00075      * Constructor of the class.
00076      *
00077      * @param classToken the class token associated with the enclosing class.
00078      * @param valueIndex the associated index
00079      * @param expr a <code>Value</code> value
00080      * @param stmt the statement in which the value variant was created.
00081      */
00082     public ValueVariant(ClassToken classToken, Index valueIndex, Value expr,
00083                         Stmt stmt)
00084     {
00085         this.classToken = classToken;
00086         this.valueIndex = valueIndex;
00087         this.expr = expr;
00088         this.stmt = stmt;
00089     }
00090     /**
00091      * Provides the class in which the variant was created.
00092      *
00093      * @return the class token corresponding to the class in which the variant
00094      * was created. 
00095      */ 
00096     public ClassToken getClassToken()
00097     {
00098         return classToken;
00099     }
00100     /** 
00101      * Provides the statement in which the variant was created. 
00102      *
00103      * @return the statement in which the variant was created. 
00104      */
00105     public Value getExpr()
00106     {
00107         return expr;
00108     }
00109     /**
00110      * Provides the associated index.
00111      *
00112      * @return the associated index. 
00113      */
00114     public Index getIndex()
00115     {
00116         return valueIndex;
00117     }
00118     /** 
00119      * Provides the statement in which the variant was created. 
00120      *
00121      * @return the statement in which the variant was created. 
00122      */
00123     public Stmt getStmt()
00124     {
00125         return stmt;
00126     }
00127 }

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