Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

OT Bytecode Attributes/CallinPrecedence

< OT Bytecode Attributes
Revision as of 08:10, 4 July 2010 by (Talk | contribs) (New page: =Attribute CallinPrecedence= ==Intent== Represent '''precedence''' declarations {{otjld|4|.8}} in the byte code. ==Location== A team class containing one or more precedence declarations,...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Attribute CallinPrecedence


Represent precedence declarations OTJLD §4.8 in the byte code.


A team class containing one or more precedence declarations, either directly in the team or nested within a role.


A list of callin names (OTJLD §4.1.e). Each callin name is qualified with the relative name of the declaring role type as seen from the current team class. All precedence declarations (indirectly) contained within a team including inherited declarations are merged into a single CallinPrecedence attribute.


The OTRE uses this attribute in order to sort the calls to multiple callin wrappers within a given base method chaining wrapper. Note, that for after callins the list is traversed back-to-front (see precedence after in OTJLD §4.8.a).


   CallinPrecedence {
     u2 attribute_name_index;
     u4 attribute_length;
     u2 callins_count;
     u2 callin_name_indices[callins_count];

The items of the CallinPrecedence structure are as follows:

  • attribute_name_index
The constant_pool entry at that index must be a CONSTANT_Utf8_info representing the string "CallinPrecedence".
  • attribute_length
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.
  • callins_count
The number of callin names in the array
  • callin_name_indices[]
Each element in the array is a constant_pool entry of type CONSTANT_Utf8_info representing a callin binding by its qualified name as described above.

Back to the top