JavaClass function ( ) { readID ( ) ; readVersion ( ) ; readConstantPool ( ) ; readClassInfo ( ) ; readInterfaces ( ) ; readFields ( ) ; readMethods ( ) ; readAttributes ( ) ; return new JavaClass ( class_name_index , superclass_name_index , access_flags , constant_pool , interfaces , attributes ) ; }
parse the given java class file and return an object that represents the contained data , i.e. , constants , methods , fields and commands . a classformatexception is raised , if the file is not a valid . class file . this does not include verification of the byte code as it is performed by the java interpreter . concode_field_sep int BUFSIZE concode_elem_sep int class_name_index concode_elem_sep int[] interfaces concode_elem_sep DataInputStream file concode_elem_sep String file_name concode_elem_sep FieldOrMethod[] methods concode_elem_sep int MAGIC concode_elem_sep Attribute[] attributes concode_elem_sep int access_flags concode_elem_sep FieldOrMethod[] fields concode_elem_sep int superclass_name_index concode_elem_sep ConstantPool constant_pool concode_field_sep void readClassInfo concode_elem_sep void readFields concode_elem_sep void readVersion concode_elem_sep void readConstantPool concode_elem_sep void readID concode_elem_sep void readInterfaces concode_elem_sep void readAttributes concode_elem_sep void readMethods