soot.tagkit
Class AbstractHost

java.lang.Object
  extended by soot.tagkit.AbstractHost
All Implemented Interfaces:
Host
Direct Known Subclasses:
AbstractUnit, AbstractValueBox, Body, JPegStmt, SootClass, SootField, SootMethod

public class AbstractHost
extends 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 addAllTagsOf(Host h)
          Adds all the tags from h to this host.
 void addTag(Tag t)
          add tag t to this host
 Tag getTag(String aName)
          get the Tag object named aName
 List<Tag> getTags()
          get the list of tags.
 boolean hasTag(String aName)
          look if this host has a tag named aName
 void removeAllTags()
          Removes all the tags from this host.
 void removeTag(String aName)
          remove the tag named aName
 
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 List<Tag> getTags()
get the list of tags. This list should not be modified!

Specified by:
getTags in interface Host

removeTag

public void removeTag(String aName)
remove the tag named aName

Specified by:
removeTag in interface Host

getTag

public Tag getTag(String aName)
get the Tag object named aName

Specified by:
getTag in interface Host

hasTag

public boolean hasTag(String aName)
look if this host has a tag named aName

Specified by:
hasTag in interface Host

addTag

public void addTag(Tag t)
add tag t to this host

Specified by:
addTag in interface Host

removeAllTags

public void removeAllTags()
Removes all the tags from this host.

Specified by:
removeAllTags in interface Host

addAllTagsOf

public void addAllTagsOf(Host h)
Adds all the tags from h to this host.

Specified by:
addAllTagsOf in interface Host