PackageDeclaration: package Name ;For JLS3, annotations and doc comment were added:
PackageDeclaration: [ Javadoc ] { Annotation } package Name ;Note that the standard AST parser only recognizes a Javadoc comment immediately preceding the package declaration when it occurs in the special
package-info.java
compilation unit (JLS3 7.4.1.1). The Javadoc comment in that file contains the package description.
@since 2.0
|
|
|
|