methodparam
methodparam — Parameters to a method
Synopsis
Content Model
methodparam ::=
(modifier*,type?,
((parameter,initializer?)|
funcparams),
modifier*)
Attributes
Name | Type | Default | ||||
choice |
| "req" | ||||
rep |
| "norepeat" |
Description
In the syntax summary of a ConstructorSynopsis, DestructorSynopsis, or MethodSynopsis, MethodParam provides the description of a parameter to the method. Typically, this includes the data type of the parameter and its name, but may also include an initial value and other modifiers.
Processing expectations
Formatted inline. For a complete description of the processing expectations, see ClassSynopsis.
Parents
These elements contain methodparam: constructorsynopsis, destructorsynopsis, methodsynopsis.
Children
The following elements occur in methodparam: funcparams, initializer, modifier, parameter, type.
Attributes
choice
Choiceindicates whether theMethodParamis required (ReqorPlain) or optional (Opt). Arguments identified asPlainare required, but are shown without additional decoration.rep
A
Repvalue ofRepeatindicates that theMethodParamis reapeatable.