soot.tagkit
Class GenericAttribute
java.lang.Object
|
+--soot.tagkit.GenericAttribute
- All Implemented Interfaces:
- Attribute, Tag
- 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
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 |
GenericAttribute
public GenericAttribute(java.lang.String name,
byte[] value)
getName
public java.lang.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 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()