public class CodeAttribute extends JasminAttribute
| Modifier and Type | Field and Description |
|---|---|
protected List<Tag> |
mTags |
protected List<Unit> |
mUnits |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(String attr,
Hashtable<String,Integer> labelToPc) |
String |
getJasminValue(Map<Unit,String> 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.
|
public CodeAttribute()
public CodeAttribute(String name)
public String getName()
public void setValue(byte[] v)
public byte[] getValue()
throws AttributeValueException
AttributeValueExceptionpublic String getJasminValue(Map<Unit,String> instToLabel)
getJasminValue in class JasminAttributepublic List<UnitBox> getUnitBoxes()
Copyright © 2020 Soot OSS. All rights reserved.