OT Bytecode Attributes/PlayedBy
< OT Bytecode Attributes
Revision as of 03:33, 7 April 2010 by Resix.cs.tu-berlin.de (Talk | contribs) (New page: =Attribute PlayedBy= ===Intent=== The PlayedBy attribute is a fixed-length attribute used in the attributes table of the ClassFile structure. ===Location:=== A role class which, or which...)
Attribute PlayedBy
Intent
The PlayedBy attribute is a fixed-length attribute used in the attributes table of the ClassFile structure.
Location:
A role class which, or which super role class, is bound to a base class.
Content:
The name of the bound base class.
Purpose:
The OTRE uses this attribute to
Format:
PlayedBy { u2 attribute_name_index; u4 attribute_length; u2 base_class_name_index; }
The items of the PlayedBy structure are as follows:
- attribute_name_index
- The constant_pool entry at that index must be a CONSTANT_Utf8_info representing the string "CallinRoleBaseBindings".
- attribute_length
- The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.
- base_class_name_index
- The constant_pool index representing the fully qualified name of the base class, as given in the source code from which this class file was compiled.