예제 #1
0
파일: class_file.py 프로젝트: kimi641/pyJVM
 def read(self, reader: ClassReader):
     self.readAndCheckMagic(reader)
     self.readAndCheckVersion(reader)
     self.constantPool = readConstantPool(reader)
     self.accessFlags = reader.readUint16()
     self.thisClass = reader.readUint16()
     self.superClass = reader.readUint16()
     self.interfaces = reader.readUint16s()
     self.fields = readMembers(reader, self.constantPool)
     self.methods = readMembers(reader, self.constantPool)
     self.attributes = readAttributes(reader, self.constantPool)
예제 #2
0
 def readInfo(self, reader:ClassReader):
     self.exceptionIndexTable = reader.readUint16s()