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

SliceLocal.java

00001 package edu.ksu.cis.bandera.pdgslicer.datastructure;
00002 
00003 import ca.mcgill.sable.soot.*;
00004 import ca.mcgill.sable.soot.jimple.*;
00005 
00006 public class SliceLocal extends SliceVariable {
00007     private SootMethod sm;
00008     private Local local;
00009 /**
00010  * 
00011  * @param sootClass ca.mcgill.sable.soot.SootClass
00012  * @param sootMethod ca.mcgill.sable.soot.SootMethod
00013  * @param local ca.mcgill.sable.soot.jimple.Local
00014  */
00015 public SliceLocal(SootClass sootClass, SootMethod sootMethod, Local local) {
00016     super(sootClass);
00017     this.sm = sootMethod;
00018     this.local = local;
00019 }
00020 /**
00021  * 
00022  * @return boolean
00023  * @param object java.lang.Object
00024  */
00025 public boolean equals(Object object) {
00026     if (object instanceof SliceLocal) {
00027         SliceLocal sloc = (SliceLocal) object;
00028         return local.equals(sloc.getLocal()) && sm==sloc.getSootMethod() && sc==sloc.getSootClass();
00029     } else {
00030         return false;
00031     }
00032 }
00033 /**
00034  * 
00035  * @return ca.mcgill.sable.soot.jimple.Local
00036  */
00037 public Local getLocal() {
00038     return local;
00039 }
00040 /**
00041  * 
00042  * @return ca.mcgill.sable.soot.SootMethod
00043  */
00044 public SootMethod getSootMethod() {
00045     return sm;
00046 }
00047 /**
00048  * 
00049  * @return int
00050  */
00051 public int hashCode() {
00052     return local.hashCode();
00053 }
00054 /**
00055  * Insert the method's description here.
00056  * Creation date: (00-7-2 22:43:03)
00057  * @param loc ca.mcgill.sable.soot.jimple.Local
00058  */
00059 public void setLocal(Local loc) {
00060     local = loc;
00061 }
00062 /**
00063  * Insert the method's description here.
00064  * Creation date: (00-7-2 22:43:45)
00065  * @param smd ca.mcgill.sable.soot.SootMethod
00066  */
00067 public void setSootMethod(SootMethod smd) {
00068     sm = smd;
00069 }
00070 /**
00071  * 
00072  * @return java.lang.String
00073  */
00074 public String toString() {
00075     return local.toString()+" :: " + getSootMethod();
00076 }
00077 }

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