583 |
|
|
584 |
static Set processedFiles = new HashSet(); |
static Set processedFiles = new HashSet(); |
585 |
|
|
586 |
void processSourceFile(File file, boolean addComments, String encoding) throws IOException, ParseException { |
ClassDocImpl processSourceFile(File file, boolean addComments, String encoding) |
587 |
|
throws IOException, ParseException |
588 |
|
{ |
589 |
|
this.currentPackage = PackageDocImpl.DEFAULT_PACKAGE; |
590 |
|
this.outerClass = null; |
591 |
|
|
592 |
this.addComments=addComments; |
this.addComments=addComments; |
593 |
|
|
594 |
if (processedFiles.contains(file)) return; |
if (processedFiles.contains(file)) { |
595 |
|
return null; |
596 |
|
} |
597 |
processedFiles.add(file); |
processedFiles.add(file); |
598 |
|
|
599 |
Debug.log(1,"Processing file "+file); |
Debug.log(1,"Processing file "+file); |
624 |
Debug.log(1,"-->contextStack not empty! size is "+contextStack.size()); |
Debug.log(1,"-->contextStack not empty! size is "+contextStack.size()); |
625 |
} |
} |
626 |
*/ |
*/ |
627 |
|
|
628 |
|
return outerClass; |
629 |
} |
} |
630 |
|
|
631 |
int parse(char[] source, int index, SourceComponent[] componentTypes) throws ParseException, IOException { |
int parse(char[] source, int index, SourceComponent[] componentTypes) throws ParseException, IOException { |
702 |
|
|
703 |
currentPackage.addClass(classDoc); |
currentPackage.addClass(classDoc); |
704 |
|
|
705 |
currentClass=classDoc; |
currentClass = classDoc; |
706 |
|
|
707 |
|
if (null == outerClass) { |
708 |
|
outerClass = classDoc; |
709 |
|
} |
710 |
|
|
711 |
if (classDoc.superclass()!=null) |
if (classDoc.superclass()!=null) |
712 |
referencedClassesList.add(classDoc.superclass()); |
referencedClassesList.add(classDoc.superclass()); |
780 |
String lastComment = null; |
String lastComment = null; |
781 |
PackageDocImpl currentPackage = PackageDocImpl.DEFAULT_PACKAGE; |
PackageDocImpl currentPackage = PackageDocImpl.DEFAULT_PACKAGE; |
782 |
ClassDocImpl currentClass = null; |
ClassDocImpl currentClass = null; |
783 |
|
ClassDocImpl outerClass = null; |
784 |
List ordinaryClassesList = new LinkedList(); |
List ordinaryClassesList = new LinkedList(); |
785 |
List allClassesList = new LinkedList(); |
List allClassesList = new LinkedList(); |
786 |
List interfacesList = new LinkedList(); |
List interfacesList = new LinkedList(); |
787 |
|
|
788 |
List importedClassesList = new LinkedList(); |
List importedClassesList = new LinkedList(); |
789 |
List importedStringList = new LinkedList(); |
List importedStringList = new LinkedList(); |
790 |
List importedPackagesList = new LinkedList(); |
List importedPackagesList = new LinkedList(); |
791 |
|
|
792 |
List referencedClassesList = new LinkedList(); |
List referencedClassesList = new LinkedList(); |