Next: SecondConstantPool Attribute, Previous: InitiallyClause Attribute, Up: Class Attributes
This atribute describes a “represents” clause, saying what is the meaning of a particular model field. It has the following structure:
RepresentsClause_attribute { u2 attribute_name_index; u4 attribute_length; u2 access_flags; expression_info field; expression_info spec; }
The meaning of the fields is as follows:
ACC_PUBLIC
, ACC_PROTECTED
,
ACC_PRIVATE
and ACC_STATIC
. Only one of ACC_PUBLIC
, ACC_PROTECTED
,
ACC_PRIVATE
can be set.
The field must be an expression referering to a model field defined in the class or its superclass.