Search in sources :

Example 11 with DocletTag

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);
}
Also used : DocletTag(com.thoughtworks.qdox.model.DocletTag)

Aggregations

DocletTag (com.thoughtworks.qdox.model.DocletTag)11 JavaClass (com.thoughtworks.qdox.model.JavaClass)5 JavaMethod (com.thoughtworks.qdox.model.JavaMethod)5 JavaDocBuilder (com.thoughtworks.qdox.JavaDocBuilder)3 AbstractInheritableJavaEntity (com.thoughtworks.qdox.model.AbstractInheritableJavaEntity)2 AbstractJavaEntity (com.thoughtworks.qdox.model.AbstractJavaEntity)2 StringReader (java.io.StringReader)2 JavaSource (com.thoughtworks.qdox.model.JavaSource)1 File (java.io.File)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Iterator (java.util.Iterator)1 List (java.util.List)1 StringTokenizer (java.util.StringTokenizer)1 Resource (org.apache.maven.model.Resource)1 MojoFailureException (org.apache.maven.plugin.MojoFailureException)1