Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » constructor declaration not a declaration ?
constructor declaration not a declaration ? [message #261121] Fri, 10 July 2009 09:36 Go to next message
Romain Dervaux is currently offline Romain DervauxFriend
Messages: 40
Registered: July 2009
Member
Hi

I just notice that the simple name of a constructor declaration is a not
considered as a declaration (see
org.eclipse.jdt.core.dom.SimpleName#isDeclaration())

That's strange.
What is the reason for that ?
Re: constructor declaration not a declaration ? [message #261135 is a reply to message #261121] Sat, 11 July 2009 04:31 Go to previous message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Romain Dervaux" <romain.dervaux@free.fr> wrote in message
news:h37239$ui9$1@build.eclipse.org...
> Hi
>
> I just notice that the simple name of a constructor declaration is a not
> considered as a declaration (see
> org.eclipse.jdt.core.dom.SimpleName#isDeclaration())
>
> That's strange.
> What is the reason for that ?

The SimpleName is just one part of the declaration (specifically, it's the
identifier). Consider that there could be multiple constructor
declarations, all with the same simple name, distinguished by their
parameters. See MethodDeclaration.
Previous Topic:Merge results of annotation processor (AbstractProcessor, AnnotationProcessor)
Next Topic:IContainer for LaunchConfigurations
Goto Forum:
  


Current Time: Sun Oct 20 13:19:09 GMT 2024

Powered by FUDForum. Page generated in 0.02886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top