Package soot.tagkit

Class AbstractHost

    • Field Detail

      • line

        protected int line
      • col

        protected int col
      • mTagList

        protected List<Tag> mTagList
    • Constructor Detail

      • AbstractHost

        public AbstractHost()
    • Method Detail

      • getTags

        public List<Tag> getTags()
        Get the List of Tags on this Host. This list should not be modified!
        Specified by:
        getTags in interface Host
        Returns:
      • removeTag

        public void removeTag​(String aName)
        Remove the Tag named aName from this Host.
        Specified by:
        removeTag in interface Host
        Parameters:
        aName -
      • getTag

        public Tag getTag​(String aName)
        Return the Tag named aName from this Host or null if there is no such Tag.
        Specified by:
        getTag in interface Host
        Parameters:
        aName -
        Returns:
      • hasTag

        public boolean hasTag​(String aName)
        Check if this Host has a Tag named aName.
        Specified by:
        hasTag in interface Host
        Parameters:
        aName -
        Returns:
      • addTag

        public void addTag​(Tag t)
        Add the given Tag to this Host.
        Specified by:
        addTag in interface Host
        Parameters:
        t -
      • 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 the given Host to this Host.
        Specified by:
        addAllTagsOf in interface Host
        Parameters:
        h -
      • getJavaSourceStartLineNumber

        public int getJavaSourceStartLineNumber()
        Description copied from interface: Host
        Returns the Java source line number if available. Returns -1 if not.
        Specified by:
        getJavaSourceStartLineNumber in interface Host
      • getJavaSourceStartColumnNumber

        public int getJavaSourceStartColumnNumber()
        Description copied from interface: Host
        Returns the Java source line column if available. Returns -1 if not.
        Specified by:
        getJavaSourceStartColumnNumber in interface Host