1 25 package org.objectweb.easybeans.tests.taglets; 26 27 import com.sun.javadoc.Tag; 28 import com.sun.tools.doclets.Taglet; 29 30 36 public class BaseTaglet implements Taglet{ 37 38 41 private String strName = null; 42 43 44 48 public BaseTaglet(final String name){ 49 strName = name; 50 } 51 52 58 public boolean inField() { 59 return true; 60 } 61 62 69 public boolean inConstructor() { 70 return true; 71 } 72 73 79 public boolean inMethod() { 80 return true; 81 } 82 83 89 public boolean inOverview() { 90 return true; 91 } 92 93 99 public boolean inPackage() { 100 return true; 101 } 102 103 109 public boolean inType() { 110 return true; 111 } 112 113 119 public boolean isInlineTag() { 120 return false; 121 } 122 123 124 125 129 public String getName() { 130 return strName; 131 } 132 133 139 public String toString(final Tag tag) { 140 return tag.text(); 141 } 142 143 149 public String toString(final Tag[] tags) { 150 if (tags.length == 0) { 151 return null; 152 } 153 String result = ""; 154 for (int i = 0; i < tags.length; i++) { 155 result += toString(tags[i]); 156 } 157 return result; 158 } 159 } 160 | Popular Tags |