mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 12:17:37 +02:00
Added some accessors to CodeItem
git-svn-id: https://smali.googlecode.com/svn/trunk@145 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -116,6 +116,14 @@ public class CodeItem extends OffsettedItem<CodeItem> {
|
||||
return ItemType.TYPE_CODE_ITEM;
|
||||
}
|
||||
|
||||
public int getRegisterCount() {
|
||||
return registersCountField.getCachedValue();
|
||||
}
|
||||
|
||||
public List<InstructionField> getInstructions() {
|
||||
return (List<InstructionField>)instructionList.clone();
|
||||
}
|
||||
|
||||
public void copyTo(DexFile dexFile, CodeItem copy)
|
||||
{
|
||||
for (int i = 0; i < fields.length-2; i++) {
|
||||
|
Reference in New Issue
Block a user