}
return null;
}
protected void addPropertyForTagOnly(ExecutableElement declaration, List<PropertyInfo> properties) {
TagAttribute tagAttribute = declaration.getAnnotation(TagAttribute.class);
if (tagAttribute != null) {
String simpleName = declaration.getSimpleName().toString();
if (simpleName.startsWith("set") || simpleName.startsWith("get")) {
String attributeStr = simpleName.substring(3, 4).toLowerCase(Locale.ENGLISH) + simpleName.substring(4);
if (tagAttribute.name().length() > 0) {
attributeStr = tagAttribute.name();
}
PropertyInfo propertyInfo = new PropertyInfo(attributeStr);
propertyInfo.setType(tagAttribute.type());
properties.add(propertyInfo);
}
}
}