@Named(value="java-annotations") @Singleton public class JavaAnnotationsMojoDescriptorExtractor extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoDescriptorExtractor
Constructor and Description |
---|
JavaAnnotationsMojoDescriptorExtractor() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,com.thoughtworks.qdox.model.JavaClass> |
discoverClasses(com.thoughtworks.qdox.JavaProjectBuilder builder) |
List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(PluginToolsRequest request)
Execute the mojo extraction.
|
protected void |
extendJavaProjectBuilderWithSourcesJar(com.thoughtworks.qdox.JavaProjectBuilder builder,
org.apache.maven.artifact.Artifact artifact,
PluginToolsRequest request,
String classifier) |
protected MojoAnnotatedClass |
findClassWithExecuteAnnotationInParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses) |
protected List<ComponentAnnotationContent> |
getComponentParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ComponentAnnotationContent> componentAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses) |
protected Map<String,ComponentAnnotationContent> |
getComponentsParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses) |
protected org.apache.maven.project.MavenProject |
getFromProjectReferences(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProject project) |
GroupKey |
getGroupKey()
Returns the
GroupKey of extractor, as MojoScanner will
execute them grouped, and ordered within groups. |
String |
getName()
Returns the "name" (id) of the extractor.
|
protected List<ParameterAnnotationContent> |
getParametersParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ParameterAnnotationContent> parameterAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses) |
protected Map<String,ParameterAnnotationContent> |
getParametersParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses) |
boolean |
isDeprecated()
Returns
true if extractor is deprecated. |
protected void |
populateDataFromJavadoc(com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses,
Map<String,com.thoughtworks.qdox.model.JavaClass> javaClassesMap,
JavadocLinkGenerator linkGenerator)
from sources scan to get @since and @deprecated and description of classes and fields.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredJavaVersion
public static final String NAME
public JavaAnnotationsMojoDescriptorExtractor()
public String getName()
MojoDescriptorExtractor
getName
in interface MojoDescriptorExtractor
public boolean isDeprecated()
MojoDescriptorExtractor
true
if extractor is deprecated.isDeprecated
in interface MojoDescriptorExtractor
public GroupKey getGroupKey()
MojoDescriptorExtractor
GroupKey
of extractor, as MojoScanner
will
execute them grouped, and ordered within groups. Must never return null
.getGroupKey
in interface MojoDescriptorExtractor
public List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
MojoDescriptorExtractor
execute
in interface MojoDescriptorExtractor
request
- The PluginToolsRequest
containing information for the extraction process.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected void populateDataFromJavadoc(com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses, Map<String,com.thoughtworks.qdox.model.JavaClass> javaClassesMap, JavadocLinkGenerator linkGenerator)
protected Map<String,com.thoughtworks.qdox.model.JavaClass> discoverClasses(com.thoughtworks.qdox.JavaProjectBuilder builder)
protected void extendJavaProjectBuilderWithSourcesJar(com.thoughtworks.qdox.JavaProjectBuilder builder, org.apache.maven.artifact.Artifact artifact, PluginToolsRequest request, String classifier) throws ExtractionException
ExtractionException
protected MojoAnnotatedClass findClassWithExecuteAnnotationInParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
protected Map<String,ParameterAnnotationContent> getParametersParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
protected List<ParameterAnnotationContent> getParametersParent(MojoAnnotatedClass mojoAnnotatedClass, List<ParameterAnnotationContent> parameterAnnotationContents, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
protected Map<String,ComponentAnnotationContent> getComponentsParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
protected List<ComponentAnnotationContent> getComponentParent(MojoAnnotatedClass mojoAnnotatedClass, List<ComponentAnnotationContent> componentAnnotationContents, Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
protected org.apache.maven.project.MavenProject getFromProjectReferences(org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject project)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.