Previous: The MethodSpecification attribute, Up: Method attributes


7.4.2 ParameterTable Attribute

The ParameterTable attribute represents the BML related information about the method parameters. The structure of the attribute is the following:

     ParameterTable_attribute {
       u2 attribute_name_index;
       u4 attribute_length;
       u2 parameters_count;
       {
         u2 name_index;
         u2 BML_flags;
         u2 index;
       } parameters[parameters_count];
     }

The meaning of the fields is the following:

Note that for methods with The Code attribute containing The LocalVariableTable attribute the parameter's names can already be stored there. In this case the two names must be equal. For methods without the Code attribute (e.g. abstract or native) however, the parameter's name is only stored in this attribute.

The index field in each parameter description must correspond to the index by which this parameter is referenced in the code (if it is present) and BML expressions in the method specification and other formulas in the method's code.

The order of parameters is not specified, but the description of all paramters must be present.