25 |
import java.io.*; |
import java.io.*; |
26 |
import java.lang.reflect.*; |
import java.lang.reflect.*; |
27 |
|
|
28 |
public class RootDocImpl extends DocImpl implements RootDoc { |
public class RootDocImpl extends DocImpl implements GjdocRootDoc { |
29 |
|
|
30 |
private ErrorReporter reporter = new ErrorReporter(); |
private ErrorReporter reporter = new ErrorReporter(); |
31 |
|
|
203 |
} |
} |
204 |
else { |
else { |
205 |
|
|
|
printNotice("For now, please make sure that you include the core source directory\nin -sourcepath"); |
|
206 |
Debug.log(1, "Sourcepath is "+sourcePath); |
Debug.log(1, "Sourcepath is "+sourcePath); |
207 |
|
|
208 |
// Core docs not included in source-path: |
// Core docs not included in source-path: |
369 |
if (null==rc) { |
if (null==rc) { |
370 |
rc=new PackageDocImpl(packageName); |
rc=new PackageDocImpl(packageName); |
371 |
if (specifiedPackageNames.contains(packageName)) { |
if (specifiedPackageNames.contains(packageName)) { |
372 |
File packageDocFile=findSourceFile(packageName.replace('.',File.separatorChar)+File.separatorChar+"package.html"); |
String packageDirectoryName = packageName.replace('.', File.separatorChar); |
373 |
if (null!=packageDocFile) { |
File packageDirectory = findSourceFile(packageDirectoryName); |
374 |
|
File packageDocFile = new File(packageDirectory, "package.html"); |
375 |
|
rc.setPackageDirectory(packageDirectory); |
376 |
|
if (null!=packageDocFile && packageDocFile.exists()) { |
377 |
try { |
try { |
378 |
long packageDocSize=packageDocFile.length(); |
long packageDocSize=packageDocFile.length(); |
379 |
char[] packageDocBuf=new char[(int)(packageDocSize)]; |
char[] packageDocBuf=new char[(int)(packageDocSize)]; |
401 |
if (start != -1 && start < end) |
if (start != -1 && start < end) |
402 |
html = html.substring(start, end); |
html = html.substring(start, end); |
403 |
} |
} |
|
|
|
404 |
rc.setRawCommentText(html.trim()); |
rc.setRawCommentText(html.trim()); |
405 |
} |
} |
406 |
catch (IOException e) { |
catch (IOException e) { |
716 |
public void finalize() throws Throwable { |
public void finalize() throws Throwable { |
717 |
super.finalize(); |
super.finalize(); |
718 |
} |
} |
719 |
|
|
720 |
|
public void flush() |
721 |
|
{ |
722 |
|
rawCommentCache = null; |
723 |
|
customOptionArr = null; |
724 |
|
specifiedClassNames = null; |
725 |
|
specifiedPackageNames = null; |
726 |
|
classesList = null; |
727 |
|
classDocMap = null; |
728 |
|
packageDocMap = null; |
729 |
|
classes = null; |
730 |
|
specifiedClasses = null; |
731 |
|
specifiedPackages = null; |
732 |
|
scheduledClasses = null; |
733 |
|
sourcePath = null; |
734 |
|
} |
735 |
} |
} |