Not including inner classes

I have a custom doclet and need to exclude inner classes from the ClassDoc array, is there a method I'm missing like isInnerClass() or something?

I was thinking of writing a method that would take in a class & check to see if it's included in an exclude list but not sure if this is a crappy way to do it.

My custom doclet takes care of the inner classes in a different way and which is why i need to exclude them.

Hope I've explained this clearly, thanks for the help.

//classes got from RootDoc classes method()

for (int i = 0; i < classes.length; i++)

{

System.out.println("classes.length: " + classes.length);

//Check for inner class here, if it's an inner class don't go into this method, so something like this:.

if (!classes[i].isInnerClass()){

printClass(classes[i]);

}

try

{

if (out !=null)

{

out.close();

out =null;

}

}

catch (IOException ex)

{

System.out.println("IO Exception:\n" + ex.getMessage());

}

}

null

[1728 byte] By [Rebels_Mascota] at [2007-10-2 19:44:47]
# 1
You should test if the the method ProgramElementDoc.containingClass() returns not null result.Leonid Rudy http://www.docflex.com
leonid_rudya at 2007-7-13 22:23:19 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Leonid!!!!Once again your my saviour!!!! Thanks a million that worked.
Rebels_Mascota at 2007-7-13 22:23:19 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...