* @param tags
* an array of tags
*/
private void checkTags(Doc doc, Tag[] tags) {
for (int i = 0; i < tags.length; i++) {
Tag tag = tags[i];
if (!tag.name().equalsIgnoreCase("text")) {
if (tag instanceof SeeTag) {
SeeTag seeTag = (SeeTag) tag;
// getErrorReporter().printNotice(doc.position(),"Ref:
// "+seeTag.name()+" M:'"+seeTag.referencedMemberName()+"'
// C:'"+seeTag.referencedClassName()+"'
// P:'"+seeTag.referencedPackage());
Doc r = seeTag.referencedMember();
if (r == null)
r = seeTag.referencedClass();
if (r == null)
r = seeTag.referencedPackage();
checkReference(doc, r,
RefCheckDoclet.WARNING_SEE_OR_LINK_REFERENCE);
return;
}
checkTags(doc, tag.firstSentenceTags());
checkTags(doc, tag.inlineTags());
}
}
}