|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.AbstractHost
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 |
destroyTag(java.lang.String aName)
Remove the tag with the given name. |
Tag |
getTag(java.lang.String aName)
Returns the tag with the given name. |
java.util.List |
getTags()
Get a list of tags associated with the current object. |
java.lang.Object |
getTagValue(java.lang.String aName)
Returns the value attached to the given tag. |
boolean |
hasTag(java.lang.String aName)
Returns true if this host has a tag with the given name. |
void |
incTagValue(java.lang.String aName)
Increments the given tag, if it is either Long or Double. |
void |
incTagValue(java.lang.String aName,
double inc)
Increments the given tag by the given amount. |
void |
incTagValue(java.lang.String aName,
long inc)
Increments the given tag by the given amount. |
Tag |
newTag(java.lang.String aName)
Creates a new Tag object, attaches it to the tags list, and returns it. |
Tag |
newTag(java.lang.String aName,
java.lang.Object v)
Creates a new Tag object with given initial value, attaches it to the tags list, and returns it. |
void |
setTagValue(java.lang.String aName,
java.lang.Object v)
Sets the value associated with the given tag. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AbstractHost()
Method Detail |
public java.util.List getTags()
public void destroyTag(java.lang.String aName)
public Tag getTag(java.lang.String aName)
public boolean hasTag(java.lang.String aName)
public java.lang.Object getTagValue(java.lang.String aName)
public void setTagValue(java.lang.String aName, java.lang.Object v)
public void incTagValue(java.lang.String aName)
public void incTagValue(java.lang.String aName, long inc)
public void incTagValue(java.lang.String aName, double inc)
public Tag newTag(java.lang.String aName, java.lang.Object v)
public Tag newTag(java.lang.String aName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |