Package soot.tagkit

Class GenericAttribute

  • All Implemented Interfaces:
    Attribute, Tag

    public class GenericAttribute
    extends Object
    implements Attribute
    Represents a general attribute which can be attached to implementations of Host. It can be directly used to add attributes of class files, fields, and methods.
    See Also:
    CodeAttribute
    • Constructor Detail

      • GenericAttribute

        public GenericAttribute​(String name,
                                byte[] value)
    • Method Detail

      • getName

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

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

        public void setValue​(byte[] value)
        Description copied from interface: Attribute
        Sets the value of the attribute from a byte[].
        Specified by:
        setValue in interface Attribute