Next: Productions from 8.6 and
Up: Productions from 8: Class
Previous: Productions from 8.3: Field
Productions from 8.4: Method Declarations[46]
:
MethodDeclaration:
MethodHeader MethodBody .
MethodHeader:
Modifiers Type MethodDeclarator Throws /
Modifiers Void MethodDeclarator Throws .
Void: 'void' .
MethodDeclarator:
MethodIdDef '(' FormalParameters ')' /
MethodDeclarator '[' ']' .
MethodIdDef:
Identifier .
FormalParameters:
[FormalParameterList] .
FormalParameterList:
FormalParameter /
FormalParameterList ',' FormalParameter .
FormalParameter:
['final'] Type VariableDeclaratorId .
Throws:
/ 'throws' ThrownTypeList .
ThrownTypeList:
ThrownType /
ThrownTypeList ',' ThrownType .
ThrownType: TypeName .
MethodBody:
'{' StatementsOpt '}' /
';' .
This macro is invoked in definition 38.
2008-09-11