Java Reference
In-Depth Information
;
{Modifier} MemberDecl
[
static
] Block
MemberDecl:
MethodOrFieldDecl
void
Identifier VoidMethodDeclaratorRest
Identifier ConstructorDeclaratorRest
GenericMethodOrConstructorDecl
ClassDeclaration
InterfaceDeclaration
MethodOrFieldDecl:
Type Identifier MethodOrFieldRest
MethodOrFieldRest:
FieldDeclaratorsRest
;
MethodDeclaratorRest
FieldDeclaratorsRest:
VariableDeclaratorRest {
,
VariableDeclarator }
MethodDeclaratorRest:
FormalParameters {
[]
} [
throws
QualifiedIdentifierList] (Block |
;
)
VoidMethodDeclaratorRest:
FormalParameters [
throws
QualifiedIdentifierList] (Block |
;
)
ConstructorDeclaratorRest:
FormalParameters [
throws
QualifiedIdentifierList] Block
GenericMethodOrConstructorDecl:
TypeParameters GenericMethodOrConstructorRest
GenericMethodOrConstructorRest:
(Type |
void
) Identifier MethodDeclaratorRest
Identifier ConstructorDeclaratorRest
InterfaceBody:
{
{ InterfaceBodyDeclaration }
}
InterfaceBodyDeclaration:
;
{Modifier} InterfaceMemberDecl
InterfaceMemberDecl:
InterfaceMethodOrFieldDecl
void
Identifier VoidInterfaceMethodDeclaratorRest
InterfaceGenericMethodDecl
ClassDeclaration
InterfaceDeclaration