56 |
|
|
57 |
import java.text.MessageFormat; |
import java.text.MessageFormat; |
58 |
|
|
59 |
|
import java.util.Arrays; |
60 |
import java.util.Comparator; |
import java.util.Comparator; |
61 |
import java.util.HashMap; |
import java.util.HashMap; |
62 |
import java.util.Iterator; |
import java.util.Iterator; |
703 |
Tag[] tagletTags = (Tag[])tagsOfThisType.toArray(new Tag[tagsOfThisType.size()]); |
Tag[] tagletTags = (Tag[])tagsOfThisType.toArray(new Tag[tagsOfThisType.size()]); |
704 |
|
|
705 |
String tagletString; |
String tagletString; |
706 |
if (taglet instanceof GnuExtendedTaglet) { |
if (taglet instanceof StandardTaglet) { |
707 |
|
tagletString = renderTag(tagName, tagletTags, context); |
708 |
|
} |
709 |
|
else if (taglet instanceof GnuExtendedTaglet) { |
710 |
tagletString = ((GnuExtendedTaglet)taglet).toString(tagletTags, context); |
tagletString = ((GnuExtendedTaglet)taglet).toString(tagletTags, context); |
711 |
} |
} |
712 |
else { |
else { |
1069 |
|
|
1070 |
protected boolean omitPackageQualifier(PackageDoc packageDoc) |
protected boolean omitPackageQualifier(PackageDoc packageDoc) |
1071 |
{ |
{ |
1072 |
if (null == optionNoQualifier) { |
if (!optionNoQualifier.isSpecified()) { |
1073 |
return false; |
return false; |
1074 |
} |
} |
1075 |
else { |
else { |
1166 |
} |
} |
1167 |
return interfaceRelations; |
return interfaceRelations; |
1168 |
} |
} |
|
} |
|
1169 |
|
|
1170 |
|
private Map sortedMethodMap = new HashMap(); |
1171 |
|
|
1172 |
|
protected MethodDoc[] getSortedMethods(ClassDoc classDoc) |
1173 |
|
{ |
1174 |
|
MethodDoc[] result = (MethodDoc[])sortedMethodMap.get(classDoc); |
1175 |
|
if (null == result) { |
1176 |
|
MethodDoc[] methods = classDoc.methods(); |
1177 |
|
result = (MethodDoc[])methods.clone(); |
1178 |
|
Arrays.sort(result); |
1179 |
|
return result; |
1180 |
|
} |
1181 |
|
return result; |
1182 |
|
} |
1183 |
|
|
1184 |
|
private Map sortedConstructorMap = new HashMap(); |
1185 |
|
|
1186 |
/** missing: |
protected ConstructorDoc[] getSortedConstructors(ClassDoc classDoc) |
1187 |
|
{ |
1188 |
|
ConstructorDoc[] result = (ConstructorDoc[])sortedConstructorMap.get(classDoc); |
1189 |
|
if (null == result) { |
1190 |
|
ConstructorDoc[] constructors = classDoc.constructors(); |
1191 |
|
result = (ConstructorDoc[])constructors.clone(); |
1192 |
|
Arrays.sort(result); |
1193 |
|
return result; |
1194 |
|
} |
1195 |
|
return result; |
1196 |
|
} |
1197 |
|
|
1198 |
+ " -title <text> Title for this set of API documentation (deprecated, -doctitle should be used instead).\n" |
private Map sortedFieldMap = new HashMap(); |
1199 |
|
|
1200 |
*/ |
protected FieldDoc[] getSortedFields(ClassDoc classDoc) |
1201 |
|
{ |
1202 |
|
FieldDoc[] result = (FieldDoc[])sortedFieldMap.get(classDoc); |
1203 |
|
if (null == result) { |
1204 |
|
FieldDoc[] fields = classDoc.fields(); |
1205 |
|
result = (FieldDoc[])fields.clone(); |
1206 |
|
Arrays.sort(result); |
1207 |
|
return result; |
1208 |
|
} |
1209 |
|
return result; |
1210 |
|
} |
1211 |
|
|
1212 |
|
private Map sortedInnerClassMap = new HashMap(); |
1213 |
|
|
1214 |
|
protected ClassDoc[] getSortedInnerClasses(ClassDoc classDoc) |
1215 |
|
{ |
1216 |
|
ClassDoc[] result = (ClassDoc[])sortedInnerClassMap.get(classDoc); |
1217 |
|
if (null == result) { |
1218 |
|
ClassDoc[] innerClasses = classDoc.innerClasses(); |
1219 |
|
result = (ClassDoc[])innerClasses.clone(); |
1220 |
|
Arrays.sort(result); |
1221 |
|
return result; |
1222 |
|
} |
1223 |
|
return result; |
1224 |
|
} |
1225 |
|
|
1226 |
|
protected abstract String renderTag(String tagName, Tag[] tags, TagletContext context); |
1227 |
|
|
1228 |
|
protected String getDocletVersion() |
1229 |
|
{ |
1230 |
|
return "0.7.1-cvs"; |
1231 |
|
} |
1232 |
|
} |