Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Question about ClassDeclaration

I see the following comments in BodyDeclaration.java.
But it looks ClassDeclaration is not implemented.
 
And in the ASTVisitor, I expected some node called ClassDeclarationNode. But I didn't see that.
So in a traversal, how can I visit the a class declaration?
 
For JLS3, a number of new node types were introduced:
 * BodyDeclaration:
 *  ClassDeclaration
 *  InterfaceDeclaration
 *  EnumDeclaration
 *  MethodDeclaration
 *   ConstructorDeclaration
 *   FieldDeclaration
 *   Initializer
 *  EnumConstantDeclaration
 *  AnnotationTypeDeclaration
 *  AnnotationTypeMemberDeclaration
--
best regards,
Zifu Yang

Back to the top