Next: , Previous: InitiallyClause Attribute, Up: Class Attributes


7.2.9 RepresentsClause Attribute

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:

The field must be an expression referering to a model field defined in the class or its superclass.