|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A "taggable" object. Implementing classes can have arbitrary labelled data attached to them. Currently, only classes, fields, methods and the Scene are Hosts. One example of a tag would be to store Boolean values, associated with array accesses, indicating whether bounds checks can be omitted.
Tag
Method Summary | |
void |
addAllTagsOf(Host h)
Adds all the tags from h to this host. |
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 |
removeAllTags()
Removes all the tags from this host. |
void |
removeTag(java.lang.String name)
Removes the first tag with the given name. |
Method Detail |
public java.util.List getTags()
public Tag getTag(java.lang.String aName)
public void addTag(Tag t)
public void removeTag(java.lang.String name)
public boolean hasTag(java.lang.String aName)
public void removeAllTags()
public void addAllTagsOf(Host h)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |