Package soot.tagkit
Class CodeAttribute
- java.lang.Object
-
- soot.tagkit.JasminAttribute
-
- soot.tagkit.CodeAttribute
-
public class CodeAttribute extends JasminAttribute
A CodeAttribute object holds PC -> Tag pairs. It represents abstracted attributes of Code_attribute such as LineNumberTable, ArrayBoundsCheck.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decode(String attr, Hashtable<String,Integer> labelToPc)StringgetJasminValue(Map<Unit,String> instToLabel)Generates Jasmin Value StringStringgetName()Returns the attribute name.List<UnitBox>getUnitBoxes()Returns a list of unit boxes that have tags attached.byte[]getValue()Also only used as setValue().voidsetValue(byte[] v)Only used by SOOT to read in an existing attribute without interpret it.StringtoString()Returns the name.
-
-
-
Constructor Detail
-
CodeAttribute
public CodeAttribute()
-
CodeAttribute
public CodeAttribute(String name)
Creates an attribute object with the given name.
-
-
Method Detail
-
getName
public String getName()
Returns the attribute name.
-
setValue
public void setValue(byte[] v)
Only used by SOOT to read in an existing attribute without interpret it.
-
getValue
public byte[] getValue() throws AttributeValueExceptionAlso only used as setValue().- Throws:
AttributeValueException
-
getJasminValue
public String getJasminValue(Map<Unit,String> instToLabel)
Generates Jasmin Value String- Specified by:
getJasminValuein classJasminAttribute
-
getUnitBoxes
public List<UnitBox> getUnitBoxes()
Returns a list of unit boxes that have tags attached.
-
-