use of com.thoughtworks.qdox.model.DocletTag in project sling by apache.
the class CollectionDescriptor method fromMethod.
static CollectionDescriptor fromMethod(Log log, JavaMethod method) {
DocletTag tag = method.getTagByName(TAG_COLLECTION_DESCRIPTOR);
if (tag == null) {
return null;
}
// field name is the method name, unless overwritten with the fieldName
// tag
String fieldName = tag.getNamedParameter(FIELD_NAME);
if (fieldName == null) {
fieldName = getFieldFromMethod(method);
}
return new CollectionDescriptor(log, tag, fieldName);
}
Aggregations