346 |
for (Iterator it=fields.iterator(); it.hasNext(); ) { |
for (Iterator it=fields.iterator(); it.hasNext(); ) { |
347 |
FieldDocImpl field=(FieldDocImpl)it.next(); |
FieldDocImpl field=(FieldDocImpl)it.next(); |
348 |
boolean fieldHasSerialTag=!field.isTransient() && !field.isStatic(); //field.hasSerialTag(); |
boolean fieldHasSerialTag=!field.isTransient() && !field.isStatic(); //field.hasSerialTag(); |
349 |
if ((field.isIncluded() || fieldHasSerialTag) && parser.addComments) { |
if ((field.isIncluded() || fieldHasSerialTag) && parser.getAddComments()) { |
350 |
field.setRawCommentText(parser.getLastComment()); |
field.setRawCommentText(parser.getLastComment()); |
351 |
} |
} |
352 |
parser.ctx.fieldList.add(field); |
parser.ctx.fieldList.add(field); |
386 |
parser.ctx.classDoc.containingPackage(), |
parser.ctx.classDoc.containingPackage(), |
387 |
source, startIndex, endIndex); |
source, startIndex, endIndex); |
388 |
|
|
389 |
if (parser.addComments) |
if (parser.getAddComments()) |
390 |
execDoc.setRawCommentText(parser.getLastComment()); |
execDoc.setRawCommentText(parser.getLastComment()); |
391 |
|
|
392 |
parser.setLastComment(null); |
parser.setLastComment(null); |
561 |
int process(Parser parser, char[] source, int startIndex, int endIndex) throws ParseException, IOException { |
int process(Parser parser, char[] source, int startIndex, int endIndex) throws ParseException, IOException { |
562 |
|
|
563 |
parser.classOpened(source, startIndex, endIndex); |
parser.classOpened(source, startIndex, endIndex); |
564 |
if (parser.addComments) |
if (parser.getAddComments()) |
565 |
parser.ctx.classDoc.setRawCommentText(parser.getLastComment()); |
parser.ctx.classDoc.setRawCommentText(parser.getLastComment()); |
566 |
parser.setLastComment(null); |
parser.setLastComment(null); |
567 |
|
|
568 |
int rc=parser.parse(source, endIndex, parser.classLevelComponents); |
int rc=parser.parse(source, endIndex, parser.getClassLevelComponents()); |
569 |
return rc; |
return rc; |
570 |
} |
} |
571 |
|
|
621 |
} |
} |
622 |
} |
} |
623 |
|
|
624 |
static boolean addComments=false; |
private boolean addComments = false; |
625 |
|
|
626 |
|
public boolean getAddComments() |
627 |
|
{ |
628 |
|
return this.addComments; |
629 |
|
} |
630 |
|
|
631 |
public static final String WHITESPACE=" \t\r\n"; |
public static final String WHITESPACE=" \t\r\n"; |
632 |
|
|
661 |
return result; |
return result; |
662 |
} |
} |
663 |
|
|
664 |
static SourceComponent[] sourceLevelComponents; |
private SourceComponent[] sourceLevelComponents; |
665 |
static SourceComponent[] classLevelComponents; |
private SourceComponent[] classLevelComponents; |
666 |
|
|
667 |
|
public SourceComponent[] getClassLevelComponents() |
668 |
|
{ |
669 |
|
return this.classLevelComponents; |
670 |
|
} |
671 |
|
|
672 |
public Parser() { |
public Parser() { |
673 |
try { |
try { |
699 |
} |
} |
700 |
} |
} |
701 |
|
|
702 |
public static int getNumberOfProcessedFiles() { |
public int getNumberOfProcessedFiles() { |
703 |
return processedFiles.size(); |
return processedFiles.size(); |
704 |
} |
} |
705 |
|
|