Next: , Previous: The LocalVariableModifiers attribute, Up: Code attributes


7.5.2 LocalGhostVariables Attribute

This attribute describes the local ghost variables defined in the code. The structure of the attribute data and the meaning of the fields is very similar to The LocalVariableTable attribute. The structure is the following:

     LocalGhostVariables_attribute {
       u2 attribute_name_index;
       u4 attribute_length;
       u2 local_ghost_variables_count;
       {
         u2 start_pc;
         u2 start_order;
         u2 end_pc;
         u2 end_order;
         u2 name_index;
         u2 descriptor_index;
         u2 index;
         expression init_value;
       } local_ghost_variables[local_ghost_variables_count];
     }

JCh: [FIXME] annotations?

The meaning of the fields is the following: