Package soot.tagkit

Class AnnotationTag

  • All Implemented Interfaces:
    Tag

    public class AnnotationTag
    extends Object
    implements Tag
    Represents the annotation attribute attached to a class, method, field, method param - they could have many annotations each for Java 1.5.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Tag
        Returns the tag name.
        Specified by:
        getName in interface Tag
      • getInfo

        public String getInfo()
      • getType

        public String getType()
      • getValue

        public byte[] getValue()
        Description copied from interface: Tag
        Returns the tag raw data.
        Specified by:
        getValue in interface Tag
      • addElem

        public void addElem​(AnnotationElem elem)
        Adds one element to the list
        Parameters:
        elem - the element
      • setElems

        public void setElems​(List<AnnotationElem> list)
        Overwrites the elements stored previously
        Parameters:
        list - the new list of elements
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object