Interface ASTTopLevelDeclaration

All Superinterfaces:
GenericNode<JavaNode>, JavaNode, JjtreeNode<JavaNode>, Node, Reportable, TextAvailableNode
All Known Subinterfaces:
ASTTypeDeclaration
All Known Implementing Classes:
ASTAnnotationTypeDeclaration, ASTAnonymousClassDeclaration, ASTClassDeclaration, ASTEmptyDeclaration, ASTEnumDeclaration, ASTImplicitClassDeclaration, ASTImportDeclaration, ASTPackageDeclaration, ASTRecordDeclaration

public interface ASTTopLevelDeclaration extends JavaNode
Marker interface for nodes that can appear on the top-level of a file. In these contexts, they are children of the CompilationUnit node. Note that both TypeDeclaration and EmptyDeclaration can appear also in a type body.

 BodyDeclaration ::= TypeDeclaration
                   | ImportDeclaration
                   | PackageDeclaration
                   | EmptyDeclaration