-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
1.4.0
-
generic
-
generic
Name: eaC66865 Date: 12/06/2002
Doug Kramer wrote:
> Eric Armstrong wrote:
> >
> > A: No Classdoc.isInnerClass()
> > -------------------------------------
> >
> > > 1. PackageDoc.allClasses() includes nested classes
> > > As a result, it duplicates information returned by
> > > ClassDoc.innerClasses(), for classes in the package.
> >
> > It turns out that ClassDoc does not have an isNested()
> > method, although it is pretty complete in all other respects.
> >
> > So ClassDoc.name().contains(".") is the only way to tell
> > if a class is an inner class.
>
> The proper way to do this is to test whether containingClass()
> is null. Perhaps this could be added to the ClassDoc
> class comment.
======================================================================