Next: Constraint Attribute, Previous: ModelMethod Attribute, Up: Class Attributes
This attribute describes the class invariants. It has the following structure:
ClassInvariant_attribute { u2 attribute_name_index; u4 attribute_length; u2 access_flags; formula_info invariant; }
The meaning of the fields is as follows:
ACC_PUBLIC
, ACC_PROTECTED
,
ACC_PRIVATE
and ACC_STATIC
. All other flags must be
cleared. Only one of ACC_PUBLIC
, ACC_PROTECTED
,
ACC_PRIVATE
can be set.