From 7d37656282f7b1c3d145a0666ad94f4cd491ff8d Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Fri, 13 Jul 2012 18:31:13 -0700 Subject: [PATCH] Add getters for inWords and outWords in CodeItem --- dexlib/src/main/java/org/jf/dexlib/CodeItem.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java index 97801bd3..e56bfb58 100644 --- a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java +++ b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java @@ -364,6 +364,20 @@ public class CodeItem extends Item { return debugInfo; } + /** + * @return the number of 2-byte words that the parameters to the method containing this code take + */ + public int getInWords() { + return inWords; + } + + /** + * @return the maximum number of 2-byte words for the arguments of any method call in this code + */ + public int getOutWords() { + return outWords; + } + /** * Sets the MethodIdItem of the method that this CodeItem is associated with * @param encodedMethod the EncodedMethod of the method that this CodeItem is associated