Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4790215

Doclet API: How to test if ClassDoc is nested

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools



      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.

      ======================================================================

            sseligmasunw Scott Seligman (Inactive)
            earmstrosunw Eric Armstrong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: