7.13 InterfaceMethod Object
| Used on |
|
| Description | A method on an interface
|
Contained Lists |
| 1 |
| Name | parameter |
| Type | parameter
|
| Description | Defines the parameters for the method. Parameter names must be unique.
|
| Indexed property | name |
|
| |
| 2 |
| Name | exception |
| Type | String |
| Description | Defines the exception(s) thrown by the method.
In the JeeWiz editor, multiple thrown exceptions may be specified in the 'exception' property using a comma separated list.
In XML, you can use one or more nested elements as an alternative to the 'exception=' property.
Any duplicate exceptions are ignored.
|
| Unique | false |
|
| |
| 3 |
| Name | typeParameter |
| Type | typeParameter
|
| Description | A list of type-parameters on the method. For example, in the definition in Java 5 arrays:
static List asList( T... a )
the first would be represented by a type-parameter list with one TypeParameter entry - name="T", and no extends.
In the Java Language Specification (JLS),
a type parameter is also referred to as "type variable", and this list is referred to as the "formal type parameters" for the method.
They need not be provided explicitly when a generic method is invoked. Instead, they are almost always inferred.
By definition, a method is generic if there are one or more type parameters.
The parameters specified here are used to generate the method declaration.
|
| GenerateAllList | false |
|
|
Inherited properties |
| template |
(base property)
| |
| text |
(base property)
| |
| jwpattern |
(base property)
| |
|
7.13.1 Property 'description'
|
| Description | Optional description.
Use this to
- document the meaning of a particular item
- specify functionality at the design stage for implementation later.
|
| Type | String |
7.13.2 Property 'name'
|
| Description | Specifies the name of the method.
|
| Type | String |
| Required | true |
7.13.3 Property 'returnType'
|
| Description | Specifies the method's return type. The default is 'void'.
For value-returning methods, the return type may be any primitive type or interface/class name,
whether alone or qualified by a package name.
|
| Type | String |
| Default | void |
|