Next: , Previous: Method attributes, Up: Method attributes


7.4.1 MethodSpecification Attribute

This attribute contains the specification of a single method not referring to its components (e.g. line numbers).

     spec_info {
       formula_info spec_requires;
       u2 assignable_count;
       assignable_info assignable[assignable_count];
       formula_info ensures_formula;
       u2 exsures_count;
       {
         u2 exception_index;
         formula_info exsures_formula;
       } exsures[exsures_count];
     }
     
     MethodSpecification_attribute {
       u2 attribute_name_index;
       u4 attribute_length;
       u2 BML_flags;
       formula_info requires;
       u2 spec_count
       spec_info spec[spec_count];
     }

[alx: this corresponds to JMLMethod_attribute, significant differences with D3.1]

The meaning of the fields is the following: