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

SliceField.java

00001 package edu.ksu.cis.bandera.pdgslicer.datastructure;
00002 
00003 import ca.mcgill.sable.soot.*;
00004 
00005 public class SliceField extends SliceVariable {
00006     private SootField sf;
00007 /**
00008  * 
00009  * @param sootClass ca.mcgill.sable.soot.SootClass
00010  * @param sootField ca.mcgill.sable.soot.SootField
00011  */
00012 public SliceField(SootClass sootClass, SootField sootField) {
00013     super(sootClass);
00014     this.sf = sootField;
00015 }
00016 /**
00017  * 
00018  * @return boolean
00019  * @param object java.lang.Object
00020  */
00021 public boolean equals(Object object) {
00022     if (object instanceof SliceField) {
00023         SliceField sfd = (SliceField) object;
00024         return sf.equals(sfd.getSootField()) && sc==sfd.getSootClass();
00025     } else {
00026         return false;
00027     }
00028 }
00029 /**
00030  * 
00031  * @return ca.mcgill.sable.soot.SootField
00032  */
00033 public SootField getSootField() {
00034     return sf;
00035 }
00036 /**
00037  * 
00038  * @return int
00039  */
00040 public int hashCode() {
00041     return sf.hashCode();
00042 }
00043 /**
00044  * Insert the method's description here.
00045  * Creation date: (00-7-2 22:42:20)
00046  * @param sfd ca.mcgill.sable.soot.SootField
00047  */
00048 public void setSootField(SootField sfd) {
00049     sf = sfd;
00050 }
00051 /**
00052  * 
00053  * @return java.lang.String
00054  */
00055 public String toString() {
00056     return sf.toString() + " :: " + getSootClass();
00057 }
00058 }

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