Package soot.tagkit
Class AbstractHost
- java.lang.Object
-
- 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
Constructors Constructor Description AbstractHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllTagsOf(Host h)voidaddTag(Tag t)intgetJavaSourceStartColumnNumber()Returns the Java source line column if available.intgetJavaSourceStartLineNumber()Returns the Java source line number if available.TaggetTag(String aName)List<Tag>getTags()booleanhasTag(String aName)voidremoveAllTags()Removes all the tags fromthisHost.voidremoveTag(String aName)
-
-
-
Method Detail
-
removeTag
public void removeTag(String aName)
-
hasTag
public boolean hasTag(String aName)
-
removeAllTags
public void removeAllTags()
Removes all the tags fromthisHost.- Specified by:
removeAllTagsin interfaceHost
-
addAllTagsOf
public void addAllTagsOf(Host h)
- Specified by:
addAllTagsOfin interfaceHost- Parameters:
h-
-
getJavaSourceStartLineNumber
public int getJavaSourceStartLineNumber()
Description copied from interface:HostReturns the Java source line number if available. Returns -1 if not.- Specified by:
getJavaSourceStartLineNumberin interfaceHost
-
getJavaSourceStartColumnNumber
public int getJavaSourceStartColumnNumber()
Description copied from interface:HostReturns the Java source line column if available. Returns -1 if not.- Specified by:
getJavaSourceStartColumnNumberin interfaceHost
-
-