JeeWiz Home

 
  
 
Contents  >   7.  GigaSystemBuilder Profile Reference
 


7.13 InterfaceMethod Object

Used on
interface
DescriptionA 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'
 7.13.2  Property 'name'
 7.13.3  Property 'returnType'

7.13.1  Property 'description'
DescriptionOptional description.

Use this to
  1. document the meaning of a particular item
  2. specify functionality at the design stage for implementation later.
TypeString

7.13.2  Property 'name'
DescriptionSpecifies the name of the method.
TypeString
Requiredtrue

7.13.3  Property 'returnType'
DescriptionSpecifies 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.
TypeString
Defaultvoid

Copyright (c) 2001-2009 New Technology/enterprise Ltd.