Module jvm :: Class JBC
[hide private]
[frames] | no frames]

Class JBC

source code

JBC manages each bytecode with the value, name, raw buffer and special functions

Instance Methods [hide private]
 
__init__(self, class_manager, op_name, raw_buff, special=None) source code
 
_load(self) source code
 
reload(self, raw_buff)
Reload the bytecode with a new raw buffer
source code
 
set_cm(self, cm) source code
 
get_length(self)
Return the length of the bytecode
source code
 
get_raw(self)
Return the current raw buffer of the bytecode
source code
 
get_name(self)
Return the name of the bytecode
source code
 
get_operands(self)
Return the operands of the bytecode
source code
 
get_formatted_operands(self) source code
 
adjust_r(self, pos, pos_modif, len_modif)
Adjust the bytecode (if necessary (in this cas the bytecode is a branch bytecode)) when a bytecode has been removed
source code
 
adjust_i(self, pos, pos_modif, len_modif)
Adjust the bytecode (if necessary (in this cas the bytecode is a branch bytecode)) when a bytecode has been inserted
source code
 
show_buff(self, pos) source code
 
show(self, pos)
Show the bytecode at a specific position
source code
Method Details [hide private]

show(self, pos)

source code 

Show the bytecode at a specific position

pos - the position into the bytecodes (integer)