soot.tagkit
Class AbstractHost

java.lang.Object
  |
  +--soot.tagkit.AbstractHost
Direct Known Subclasses:
AbstractUnit, Body, SootClass, SootField, SootMethod

public class AbstractHost
extends java.lang.Object
implements Host

This class is the reference implementation for the Host interface, which allows arbitrary taggable data to be stored with Soot objects.


Constructor Summary
AbstractHost()
           
 
Method Summary
 void addTag(Tag t)
          Adds a tag.
 Tag getTag(java.lang.String aName)
          Returns the tag with the given name.
 java.util.List getTags()
          Gets a list of tags associated with the current object.
 boolean hasTag(java.lang.String aName)
          Returns true if this host has a tag with the given name.
 void removeTag(java.lang.String aName)
          Removes the first tag with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHost

public AbstractHost()
Method Detail

getTags

public java.util.List getTags()
Description copied from interface: Host
Gets a list of tags associated with the current object.
Specified by:
getTags in interface Host

removeTag

public void removeTag(java.lang.String aName)
Description copied from interface: Host
Removes the first tag with the given name.
Specified by:
removeTag in interface Host

getTag

public Tag getTag(java.lang.String aName)
Description copied from interface: Host
Returns the tag with the given name.
Specified by:
getTag in interface Host

hasTag

public boolean hasTag(java.lang.String aName)
Description copied from interface: Host
Returns true if this host has a tag with the given name.
Specified by:
hasTag in interface Host

addTag

public void addTag(Tag t)
Description copied from interface: Host
Adds a tag.
Specified by:
addTag in interface Host