7.2.4 ModelField Attribute
This attribute contains the information about model fields of the
class. The format of the attribute is the following:
ModelField_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 fields_count;
{
u2 access_flags;
u2 bml_flags;
u2 name_index;
u2 descriptor_index;
expression value;
} fields[fields_count];
}
The meaning of the fields:
- attribute_name_index - index in the constant pool of the attribute name (org.bmlspecs.ModelField)
- attribute_length - length in bytes of the whole structure
- fields_count - number of fields in the field table
- fields - the fields table, where each element has the following meaning:
- access_flag - public/private flag
- bml_flag - allowed flags:
BML_NON_NULL
, BML_NULLABLE
- name_index - index in the second constant pool where the field's name is stored
- descriptor_index - index in the second constant pool where the field's type is stored
- value - the value of the field