CompilationUnit:
PackageDeclaration ImportDeclarations TypeDeclarations
ImportDeclarations:
ImportDeclaration
ImportDeclarations ImportDeclaration
TypeDeclarations:
TypeDeclaration
TypeDeclarations TypeDeclaration
PackageDeclaration:
package
Name;
ImportDeclaration:
SingleTypeImportDeclaration
TypeImportOnDemandDeclaration
SingleTypeImportDeclaration:
import
Name;
TypeImportOnDemandDeclaration:
import
Name.
*
;
TypeDeclaration:
ClassDeclaration
InterfaceDeclaration
;