Question about ClassDeclaration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Question about ClassDeclaration

zifu yang
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

_______________________________________________
jdt-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jdt-dev