public TagInfo generateTagInfo(String className, TagLibraryInfo taglib)
{
init(className);
TldTag tag = new TldTag();
for (int i = 0; i < _attributes.size(); i++) {
TldAttribute attr = _attributes.get(i);
tag.addAttribute(attr);
}
for (int i = 0; i < _variables.size(); i++) {
TldVariable var = _variables.get(i);
try {
tag.addVariable(var);
} catch (Exception e) {
log.log(Level.WARNING, e.toString(), e);
}
}
String bodyContent = _bodyContent;
if (bodyContent == null)
bodyContent = "scriptless";
return new TagInfoExt(tag.getName(),
_fullClassName,
bodyContent,
getDescription(),
taglib,
null,
tag.getAttributes(),
getDisplayName(),
getSmallIcon(),
getLargeIcon(),
tag.getVariables(),
_dynamicAttributes != null,
_dynamicAttributes,
null);
}