Lines Matching refs:taglet
225 //If the current and previous last taglet are not equal, that
348 * Check the taglet to see if it is a legacy taglet. Also
351 private void checkTaglet(Object taglet) {
352 if (taglet instanceof Taglet) {
353 checkTagName(((Taglet) taglet).getName());
354 } else if (taglet instanceof com.sun.tools.doclets.Taglet) {
355 com.sun.tools.doclets.Taglet legacyTaglet = (com.sun.tools.doclets.Taglet) taglet;
360 throw new IllegalArgumentException("Given object is not a taglet.");
383 Taglet taglet;
399 if ((taglet = customTags.get(name)) != null) {
400 if (areInlineTags && ! taglet.isInlineTag()) {
401 printTagMisuseWarn(taglet, tags[i], "inline");
403 if ((doc instanceof RootDoc) && ! taglet.inOverview()) {
404 printTagMisuseWarn(taglet, tags[i], "overview");
405 } else if ((doc instanceof PackageDoc) && ! taglet.inPackage()) {
406 printTagMisuseWarn(taglet, tags[i], "package");
407 } else if ((doc instanceof ClassDoc) && ! taglet.inType()) {
408 printTagMisuseWarn(taglet, tags[i], "class");
409 } else if ((doc instanceof ConstructorDoc) && ! taglet.inConstructor()) {
410 printTagMisuseWarn(taglet, tags[i], "constructor");
411 } else if ((doc instanceof FieldDoc) && ! taglet.inField()) {
412 printTagMisuseWarn(taglet, tags[i], "field");
413 } else if ((doc instanceof MethodDoc) && ! taglet.inMethod()) {
414 printTagMisuseWarn(taglet, tags[i], "method");
421 * Given the taglet, the tag and the type of documentation that the tag
423 * @param taglet the taglet representing the misused tag.
427 private void printTagMisuseWarn(Taglet taglet, Tag tag, String holderType) {
429 if (taglet.inOverview()) {
432 if (taglet.inPackage()) {
435 if (taglet.inType()) {
438 if (taglet.inConstructor()) {
441 if (taglet.inField()) {
444 if (taglet.inMethod()) {
447 if (taglet.isInlineTag()) {
463 "@" + taglet.getName(), holderType, combined_locations.toString());
764 * Given the name of a tag, return the corresponding taglet.
767 * @param name the name of the taglet to retrieve.
768 * @return return the corresponding taglet. Return null if the tag is