2004-11-20 | Paul Boddie | raw files shortlog changelog graph | Added a get_class method so that static and special methods can be appropriately dispatched using MethodRefInfo objects. | |
classfile.py (file) |
1.1 --- a/classfile.py Sat Nov 20 21:40:48 2004 +0100 1.2 +++ b/classfile.py Sat Nov 20 21:41:45 2004 +0100 1.3 @@ -117,6 +117,9 @@ 1.4 # Some name indexes are zero to indicate special conditions. 1.5 return None 1.6 1.7 + def get_class(self): 1.8 + return self.class_file.constants[self.class_index - 1] 1.9 + 1.10 class DescriptorUtils: 1.11 1.12 "Symbol parsing."