Add getters for inWords and outWords in CodeItem

This commit is contained in:
Ben Gruver 2012-07-13 18:31:13 -07:00
parent 66b89545a4
commit 7d37656282

View File

@ -364,6 +364,20 @@ public class CodeItem extends Item<CodeItem> {
return debugInfo; 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 <code>MethodIdItem</code> of the method that this <code>CodeItem</code> is associated with * Sets the <code>MethodIdItem</code> of the method that this <code>CodeItem</code> is associated with
* @param encodedMethod the <code>EncodedMethod</code> of the method that this <code>CodeItem</code> is associated * @param encodedMethod the <code>EncodedMethod</code> of the method that this <code>CodeItem</code> is associated