soot.tagkit
Class GenericAttribute

java.lang.Object
  extended by soot.tagkit.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 Summary
GenericAttribute(String name, byte[] value)
           
 
Method Summary
 String getName()
          Returns the tag name.
 List getUnitBoxes()
           
 byte[] getValue()
          Returns the tag raw data.
 void setValue(byte[] value)
          Sets the value of the attribute from a byte[].
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

toString

public String toString()
Overrides:
toString in class Object

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

getUnitBoxes

public List getUnitBoxes()