|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.tagkit.JasminAttribute soot.tagkit.CodeAttribute
public class CodeAttribute
A CodeAttribute object holds PC -> Tag pairs. It represents abstracted attributes of Code_attribute such as LineNumberTable, ArrayBoundsCheck.
Field Summary | |
---|---|
protected List<Tag> |
mTags
|
protected List<Unit> |
mUnits
|
Constructor Summary | |
---|---|
CodeAttribute()
|
|
CodeAttribute(String name)
Creates an attribute object with the given name. |
|
CodeAttribute(String name,
List<Unit> units,
List<Tag> tags)
Create an attribute object with the name and lists of unit-tag pairs. |
Method Summary | |
---|---|
byte[] |
decode(String attr,
Hashtable labelToPc)
|
String |
getJasminValue(Map instToLabel)
Generates Jasmin Value String |
String |
getName()
Returns the attribute name. |
List<UnitBox> |
getUnitBoxes()
Returns a list of unit boxes that have tags attached. |
byte[] |
getValue()
Also only used as setValue(). |
void |
setValue(byte[] v)
Only used by SOOT to read in an existing attribute without interpret it. |
String |
toString()
Returns the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List<Unit> mUnits
protected List<Tag> mTags
Constructor Detail |
---|
public CodeAttribute()
public CodeAttribute(String name)
public CodeAttribute(String name, List<Unit> units, List<Tag> tags)
Method Detail |
---|
public String toString()
toString
in class Object
public String getName()
public void setValue(byte[] v)
public byte[] getValue() throws AttributeValueException
AttributeValueException
public String getJasminValue(Map instToLabel)
getJasminValue
in class JasminAttribute
public List<UnitBox> getUnitBoxes()
public byte[] decode(String attr, Hashtable labelToPc)
decode
in class JasminAttribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |