soot.tagkit
Class GenericAttribute

java.lang.Object
  |
  +--soot.tagkit.GenericAttribute

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

Constructor Detail

GenericAttribute

public GenericAttribute(java.lang.String name,
                        byte[] value)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Tag
Returns the tag name.

getValue

public byte[] getValue()
Description copied from interface: Tag
Returns the tag raw data.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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 java.util.List getUnitBoxes()