Class/Object

net.adamcin.scalamojo

ScalaDocMojoDescriptorExtractor

Related Docs: object ScalaDocMojoDescriptorExtractor | package scalamojo

Permalink

class ScalaDocMojoDescriptorExtractor extends MojoDescriptorExtractor

MojoDescriptorExtractor implementation that delegates to the OOTB JavaAnnotationsExtractor (<extractor>java-annotations</extractor>) to extract all the details it can from the standard java annotations, which are retained in the .class files after compilation, and then decorates those extracted descriptors with the details that can only be found in the javadoc/scaladoc comments in the source files, namely: @deprecated, @since, and most importantly, description

Annotations
@Component()
Since

0.6.0

Linear Supertypes
MojoDescriptorExtractor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaDocMojoDescriptorExtractor
  2. MojoDescriptorExtractor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaDocMojoDescriptorExtractor()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def execute(request: PluginToolsRequest): List[MojoDescriptor]

    Permalink

    First calls the java-annotations extractor to generate the initial list of MojoDescriptors, then compiles the scala sources using a ScalaDoc-enabled compiler to generate a model, which is then used by a decorating function to add description, @since, and @deprecated text to each MojoDescriptor

    First calls the java-annotations extractor to generate the initial list of MojoDescriptors, then compiles the scala sources using a ScalaDoc-enabled compiler to generate a model, which is then used by a decorating function to add description, @since, and @deprecated text to each MojoDescriptor

    request

    the PluginToolsRequest

    returns

    a java list of extracted MojoDescriptors

    Definition Classes
    ScalaDocMojoDescriptorExtractor → MojoDescriptorExtractor
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getSourceRoots(p: Option[MavenProject]): List[String]

    Permalink

    List the source roots specified by the MavenProject, if available

    List the source roots specified by the MavenProject, if available

    p

    the optional MavenProject

    returns

    a list of source roots

  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. var javaAnnotationsExtractor: MojoDescriptorExtractor

    Permalink

    the java-annotations extractor

  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def useCompiler(request: PluginToolsRequest, sourceFiles: List[String], descriptors: List[MojoDescriptor]): List[MojoDescriptor]

    Permalink

    Create a new ScalaDoc compiler and decorate the list of descriptors

    Create a new ScalaDoc compiler and decorate the list of descriptors

    request

    the PluginToolsRequest

    sourceFiles

    the list of scala sources to compile

    descriptors

    the list of descriptors extracted by the java-annotations MojoDescriptor

    returns

    a list of decorated MojoDescriptors

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def execute(project: MavenProject, pluginDescriptor: PluginDescriptor): List[MojoDescriptor]

    Permalink

    Deprecated

    Use execute(PluginToolsRequest) instead. Provided for backward compatibility with maven-plugin-plugin < 2.5.

    See also

    MojoDescriptorExtractor#execute(MavenProject, PluginDescriptor)

Inherited from MojoDescriptorExtractor

Inherited from AnyRef

Inherited from Any

Ungrouped