|
||||||||||
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
A CodeAttribute object holds PC -> Tag pairs. It represents abstracted attributes of Code_attribute such as LineNumberTable, ArrayBoundsCheck.
Field Summary | |
protected java.util.List |
mTags
|
protected java.util.List |
mUnits
|
Constructor Summary | |
CodeAttribute()
|
|
CodeAttribute(java.lang.String name)
Creates an attribute object with the given name. |
|
CodeAttribute(java.lang.String name,
java.util.List units,
java.util.List tags)
Create an attribute object with the name and lists of unit-tag pairs. |
Method Summary | |
byte[] |
decode(java.lang.String attr,
java.util.Hashtable labelToPc)
|
java.lang.String |
getJasminValue(java.util.Map instToLabel)
Generates Jasmin Value String |
java.lang.String |
getName()
Returns the attribute name. |
java.util.List |
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. |
java.lang.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 java.util.List mUnits
protected java.util.List mTags
Constructor Detail |
public CodeAttribute()
public CodeAttribute(java.lang.String name)
public CodeAttribute(java.lang.String name, java.util.List units, java.util.List tags)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setValue(byte[] v)
public byte[] getValue() throws AttributeValueException
AttributeValueException
public java.lang.String getJasminValue(java.util.Map instToLabel)
getJasminValue
in class JasminAttribute
public java.util.List getUnitBoxes()
public byte[] decode(java.lang.String attr, java.util.Hashtable labelToPc)
decode
in class JasminAttribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |