[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[jdt-dev] Question about ClassDeclaration
|
- From: zifu yang <zifu.yang@xxxxxxxxx>
- Date: Tue, 8 Nov 2005 10:58:11 -0600
- Delivered-to: jdt-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ou4E0mnjtI/UmPjVRQ0x6PsM16meX5dOOhgsNN0SINZEgnQalRFcK9WJLgmrV7brilIr915ZDz7/WiH80nfuk1a/9Cav8Xm4b6EMhXwkQIrqs0P83tX7wNHDM+QBo1ZEQSw6XCNe/Fiv9k8mShd5BSRyLW+EXXZRCsalIO12ZYA=
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