@Component(role=MojoDescriptorExtractor.class, hint="java-javadoc") public class JavaJavadocMojoDescriptorExtractor extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoDescriptorExtractor, JavadocMojoAnnotation
MojoDescriptorROLEAGGREGATOR, COMPONENT, COMPONENT_ROLE, COMPONENT_ROLEHINT, CONFIGURATOR, DEPRECATED, DESCRIPTION, EXECUTE, EXECUTE_GOAL, EXECUTE_LIFECYCLE, EXECUTE_PHASE, EXECUTION_STATEGY, GOAL, IMPLEMENTATION, INHERIT_BY_DEFAULT, INSTANTIATION_STRATEGY, LANGUAGE, MULTI_EXECUTION_STRATEGY, PARAMETER, PARAMETER_ALIAS, PARAMETER_DEFAULT_VALUE, PARAMETER_EXPRESSION, PARAMETER_IMPLEMENTATION, PARAMETER_NAME, PARAMETER_PROPERTY, PHASE, READONLY, REQUIRED, REQUIRES_DEPENDENCY_COLLECTION, REQUIRES_DEPENDENCY_RESOLUTION, REQUIRES_DIRECT_INVOCATION, REQUIRES_ONLINE, REQUIRES_PROJECT, REQUIRES_REPORTS, SINCE, THREAD_SAFE| Constructor and Description |
|---|
JavaJavadocMojoDescriptorExtractor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.plugin.descriptor.MojoDescriptor |
createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass) |
protected java.util.Collection<com.thoughtworks.qdox.model.JavaClass> |
discoverClasses(PluginToolsRequest request) |
java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(PluginToolsRequest request)
Execute the mojo extraction.
|
private java.util.Map<java.lang.String,com.thoughtworks.qdox.model.JavaField> |
extractFieldParameterTags(com.thoughtworks.qdox.model.JavaClass javaClass)
extract fields that are either parameters or components.
|
private void |
extractParameters(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
com.thoughtworks.qdox.model.JavaClass javaClass) |
private static com.thoughtworks.qdox.model.DocletTag |
findInClassHierarchy(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName) |
private static boolean |
getBooleanTagValue(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName,
boolean defaultValue) |
private static boolean |
getBooleanTagValue(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName,
boolean defaultForTag,
boolean defaultValue) |
protected void |
validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor) |
protected void |
validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i) |
protected void validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i)
throws org.apache.maven.plugin.descriptor.InvalidParameterException
parameter - not nulli - positive numberorg.apache.maven.plugin.descriptor.InvalidParameterException - if anyprotected org.apache.maven.plugin.descriptor.MojoDescriptor createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
javaClass - not nullorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if anyprivate static boolean getBooleanTagValue(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName,
boolean defaultValue)
javaClass - not nulltagName - not nulldefaultValue - the wanted default valuefindInClassHierarchy(JavaClass, String)private static boolean getBooleanTagValue(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName,
boolean defaultForTag,
boolean defaultValue)
javaClass - not nulltagName - not nulldefaultForTag - The wanted default value when only the tagname is presentdefaultValue - the wanted default value when the tag is not specifiedfindInClassHierarchy(JavaClass, String)private static com.thoughtworks.qdox.model.DocletTag findInClassHierarchy(com.thoughtworks.qdox.model.JavaClass javaClass,
java.lang.String tagName)
javaClass - not nulltagName - not nullprivate void extractParameters(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
com.thoughtworks.qdox.model.JavaClass javaClass)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
mojoDescriptor - not nulljavaClass - not nullorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if anyprivate java.util.Map<java.lang.String,com.thoughtworks.qdox.model.JavaField> extractFieldParameterTags(com.thoughtworks.qdox.model.JavaClass javaClass)
javaClass - not nullpublic java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute in interface MojoDescriptorExtractorrequest - The PluginToolsRequest containing information for the extraction process.ExtractionException - if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if anyprotected java.util.Collection<com.thoughtworks.qdox.model.JavaClass> discoverClasses(PluginToolsRequest request)
request - The plugin request.protected void validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)
throws org.apache.maven.plugin.descriptor.InvalidParameterException
mojoDescriptor - not nullorg.apache.maven.plugin.descriptor.InvalidParameterException - if any