249 |
if ((field.isIncluded() || fieldHasSerialTag) && parser.addComments) { |
if ((field.isIncluded() || fieldHasSerialTag) && parser.addComments) { |
250 |
field.setRawCommentText(parser.getLastComment()); |
field.setRawCommentText(parser.getLastComment()); |
251 |
} |
} |
252 |
|
parser.ctx.fieldList.add(field); |
253 |
if (field.isIncluded()) { |
if (field.isIncluded()) { |
254 |
parser.ctx.fieldList.add(field); |
parser.ctx.filteredFieldList.add(field); |
255 |
} |
} |
256 |
if (fieldHasSerialTag) { |
if (fieldHasSerialTag) { |
257 |
parser.ctx.sfieldList.add(field); |
parser.ctx.sfieldList.add(field); |
291 |
|
|
292 |
parser.setLastComment(null); |
parser.setLastComment(null); |
293 |
|
|
294 |
if (execDoc.isIncluded()) { |
if (execDoc.isMethod()) { |
295 |
|
parser.ctx.methodList.add(execDoc); |
296 |
|
if (execDoc.isIncluded()) { |
297 |
|
parser.ctx.filteredMethodList.add(execDoc); |
298 |
|
} |
299 |
|
} |
300 |
|
else { |
301 |
|
parser.ctx.constructorList.add(execDoc); |
302 |
|
if (execDoc.isIncluded()) { |
303 |
|
parser.ctx.filteredConstructorList.add(execDoc); |
304 |
|
} |
305 |
|
} |
306 |
|
|
307 |
if (execDoc.isMethod()) { |
if (execDoc.isMethod() |
|
parser.ctx.methodList.add(execDoc); |
|
|
} |
|
|
else { |
|
|
parser.ctx.constructorList.add(execDoc); |
|
|
} |
|
|
} |
|
|
else if (execDoc.isMethod() |
|
308 |
&& (execDoc.name().equals("readObject") |
&& (execDoc.name().equals("readObject") |
309 |
|| execDoc.name().equals("writeObject"))) { |
|| execDoc.name().equals("writeObject"))) { |
310 |
|
|
710 |
|
|
711 |
//Debug.log(9,"ctx="+ctx+" fieldList="+ctx.fieldList+" classDoc="+ctx.classDoc); |
//Debug.log(9,"ctx="+ctx+" fieldList="+ctx.fieldList+" classDoc="+ctx.classDoc); |
712 |
ctx.classDoc.setFields((FieldDoc[])ctx.fieldList.toArray(new FieldDoc[ctx.fieldList.size()])); |
ctx.classDoc.setFields((FieldDoc[])ctx.fieldList.toArray(new FieldDoc[ctx.fieldList.size()])); |
713 |
|
ctx.classDoc.setFilteredFields((FieldDoc[])ctx.filteredFieldList.toArray(new FieldDoc[ctx.filteredFieldList.size()])); |
714 |
ctx.classDoc.setSerializableFields((FieldDoc[])ctx.sfieldList.toArray(new FieldDoc[ctx.sfieldList.size()])); |
ctx.classDoc.setSerializableFields((FieldDoc[])ctx.sfieldList.toArray(new FieldDoc[ctx.sfieldList.size()])); |
715 |
ctx.classDoc.setMethods((MethodDoc[])ctx.methodList.toArray(new MethodDoc[0])); |
ctx.classDoc.setMethods((MethodDoc[])ctx.methodList.toArray(new MethodDoc[0])); |
716 |
|
ctx.classDoc.setFilteredMethods((MethodDoc[])ctx.filteredMethodList.toArray(new MethodDoc[0])); |
717 |
ctx.classDoc.setMaybeSerMethodList(ctx.maybeSerMethodList); |
ctx.classDoc.setMaybeSerMethodList(ctx.maybeSerMethodList); |
718 |
ctx.classDoc.setConstructors((ConstructorDoc[])ctx.constructorList.toArray(new ConstructorDoc[0])); |
ctx.classDoc.setConstructors((ConstructorDoc[])ctx.constructorList.toArray(new ConstructorDoc[0])); |
719 |
|
ctx.classDoc.setFilteredConstructors((ConstructorDoc[])ctx.filteredConstructorList.toArray(new ConstructorDoc[0])); |
720 |
|
|
721 |
ctx.classDoc.setInnerClasses((ClassDocImpl[])ctx.innerClassesList.toArray(new ClassDocImpl[0])); |
ctx.classDoc.setInnerClasses((ClassDocImpl[])ctx.innerClassesList.toArray(new ClassDocImpl[0])); |
722 |
|
|
745 |
Stack contextStack = new Stack(); |
Stack contextStack = new Stack(); |
746 |
class Context { |
class Context { |
747 |
Context(ClassDocImpl classDoc) { this.classDoc=classDoc; } |
Context(ClassDocImpl classDoc) { this.classDoc=classDoc; } |
748 |
ClassDocImpl classDoc = null; |
ClassDocImpl classDoc = null; |
749 |
List fieldList = new ArrayList(); |
List fieldList = new LinkedList(); |
750 |
List sfieldList = new ArrayList(); |
List filteredFieldList = new LinkedList(); |
751 |
List methodList = new ArrayList(); |
List sfieldList = new LinkedList(); |
752 |
List maybeSerMethodList = new ArrayList(); |
List methodList = new LinkedList(); |
753 |
List constructorList = new ArrayList(); |
List filteredMethodList = new LinkedList(); |
754 |
List innerClassesList = new ArrayList(); |
List maybeSerMethodList = new LinkedList(); |
755 |
|
List constructorList = new LinkedList(); |
756 |
|
List filteredConstructorList = new LinkedList(); |
757 |
|
List innerClassesList = new LinkedList(); |
758 |
} |
} |
759 |
|
|
760 |
String lastComment = null; |
String lastComment = null; |
761 |
PackageDocImpl currentPackage = PackageDocImpl.DEFAULT_PACKAGE; |
PackageDocImpl currentPackage = PackageDocImpl.DEFAULT_PACKAGE; |
762 |
ClassDocImpl currentClass = null; |
ClassDocImpl currentClass = null; |
763 |
List ordinaryClassesList = new ArrayList(); |
List ordinaryClassesList = new LinkedList(); |
764 |
List allClassesList = new ArrayList(); |
List allClassesList = new LinkedList(); |
765 |
List interfacesList = new ArrayList(); |
List interfacesList = new LinkedList(); |
766 |
|
|
767 |
List importedClassesList = new ArrayList(); |
List importedClassesList = new LinkedList(); |
768 |
List importedStringList = new ArrayList(); |
List importedStringList = new LinkedList(); |
769 |
List importedPackagesList = new ArrayList(); |
List importedPackagesList = new LinkedList(); |
770 |
|
|
771 |
List referencedClassesList = new ArrayList(); |
List referencedClassesList = new LinkedList(); |
772 |
|
|
773 |
void packageOpened(String packageName) { |
void packageOpened(String packageName) { |
774 |
currentPackage=Main.getRootDoc().findOrCreatePackageDoc(packageName); |
currentPackage=Main.getRootDoc().findOrCreatePackageDoc(packageName); |