The Interface-ID Paragraph
The Interface-ID paragraph indicates that this Identification
Division is introducing an interface definition, specifies the name that
identifies the interface and assigns interface attributes to the interface.
General Format
INTERFACE-ID. interface-name-1 [ AS literal-1 ] [ INHERITS FROM { interface-name-2 } ... ] [ USING { parameter-name-1 } ... ] .
Directives
- In addition to the Compiler directives which provide flagging and
modify the reserved word list, the following directives may impact either the
syntax or the semantics described in this section.
-
ACTUAL-PARAMS - specifies the parameters to be used in
the creation of an interface from a parameterized class or interface
Syntax Rules
- Literal-1 must be an alphanumeric literal and must not be a
figurative constant.
- Interface-name-2 must be the name of an interface specified in
the Repository paragraph of this source element.
- Interface-name-2 must not inherit directly or indirectly from
interface-name-1.
- Parameter-name-1 must be a name specified in a class-specifier or
an interface-specifier in the Repository paragraph of this interface
definition.
- If a given method-name is inherited from more than one interface,
the method prototype in each inherited interface must be such that this
interface conforms to all inherited interfaces.
General Rules
- Interface-name-1 names the interface declared by this interface
definition. However, literal-1, if specified, is the name of the interface that
is externalized to the operating environment.
- The INHERITS phrase specifies the name of the interface that is
inherited by interface-name-1 as described in the topic
Interface
Inheritance in the chapter Language
Fundamentals.
- The USING phrase specifies that this is a parameterized
interface. Parameter-name-1 is the name given to the formal parameter.
- Parameter-name-1 must be specified within this interface
definition only where a class-name or an interface-name is permitted.