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

