Previous | Table of Contents | Next |
The interface body contains the following kinds of declarations:
• Constant declarations, which specify the constants that the interface exports; constant declaration syntax is described in Section 3.10, “Constant Declaration,? on page 3-32.
• Type declarations, which specify the type definitions that the interface exports; type declaration syntax is described in Section 3.11, “Type Declaration,? on page 3-36.
• Exception declarations, which specify the exception structures that the interface exports; exception declaration syntax is described in Section 3.12, “Exception Declaration,? on page 3-49.
• Attribute declarations, which specify the associated attributes exported by the interface; attribute declaration syntax is described in Section 3.14, “Attribute Declaration,? on page 3-53.
• Operation declarations, which specify the operations that the interface exports and the format of each, including operation name, the type of data returned, the types of all parameters of an operation, legal exceptions that may be returned as a result of an invocation, and contextual information that may affect method dispatch; operation declaration syntax is described in Section 3.13, “Operation Declaration,? on page 3-50.
Empty interfaces are permitted (that is, those containing no declarations).
Some implementations may require interface-specific pragmas to precede the interface body.