# HG changeset patch # User Paul Boddie # Date 1100983305 -3600 # Node ID d80561b75651bab90f0e581dcc2cde6b6dec6388 # Parent a2fd4b2c2b3bc7196b2ff1ffd39c543b49ed9515 Added a get_class method so that static and special methods can be appropriately dispatched using MethodRefInfo objects. diff -r a2fd4b2c2b3b -r d80561b75651 classfile.py --- a/classfile.py Sat Nov 20 21:40:48 2004 +0100 +++ b/classfile.py Sat Nov 20 21:41:45 2004 +0100 @@ -117,6 +117,9 @@ # Some name indexes are zero to indicate special conditions. return None + def get_class(self): + return self.class_file.constants[self.class_index - 1] + class DescriptorUtils: "Symbol parsing."