Package lib.rx

Class ReactiveProjectAnalyzer

java.lang.Object
lib.rx.ReactiveProjectAnalyzer
All Implemented Interfaces:
ProjectAnalyzer

public class ReactiveProjectAnalyzer extends Object implements ProjectAnalyzer
The ProjectAnalyzer which uses ReactiveX.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReactiveProjectAnalyzer(io.reactivex.rxjava3.core.Observer<String> observer)
    Constructor of class.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Observable<ProjectDTO>
    analyzeProject(String srcProjectFolderName)
    Async function that analyze a project given the full path of the project folder.
    io.reactivex.rxjava3.core.Observable<ClassReport>
    getClassReport(String... srcClassPath)
    Async method to retrieve the report about a variable number of class, given the full path of the class source file
    io.reactivex.rxjava3.core.Observable<InterfaceReport>
    getInterfaceReport(String... srcInterfacePath)
    Async method to retrieve the report about a variable number of interface, given the full path of the interface source file
    io.reactivex.rxjava3.core.Observable<PackageReport>
    getPackageReport(String... srcPackagePath)
    Async method to retrieve the report about a variable number of package, given the full path of the package folder
    io.reactivex.rxjava3.core.Observable<ProjectReport>
    getProjectReport(String srcProjectFolderPath)
    Async method to retrieve the report about a project given the full path of the project folder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReactiveProjectAnalyzer

      public ReactiveProjectAnalyzer(io.reactivex.rxjava3.core.Observer<String> observer)
      Constructor of class.
      Parameters:
      observer - the observer used by the logger.
  • Method Details

    • getInterfaceReport

      public io.reactivex.rxjava3.core.Observable<InterfaceReport> getInterfaceReport(String... srcInterfacePath)
      Description copied from interface: ProjectAnalyzer
      Async method to retrieve the report about a variable number of interface, given the full path of the interface source file
      Specified by:
      getInterfaceReport in interface ProjectAnalyzer
      Parameters:
      srcInterfacePath - variable argument for file paths
      Returns:
      InterfaceReport observable
    • getClassReport

      public io.reactivex.rxjava3.core.Observable<ClassReport> getClassReport(String... srcClassPath)
      Description copied from interface: ProjectAnalyzer
      Async method to retrieve the report about a variable number of class, given the full path of the class source file
      Specified by:
      getClassReport in interface ProjectAnalyzer
      Parameters:
      srcClassPath - variable argument for file paths
      Returns:
      ClassReport observable
    • getPackageReport

      public io.reactivex.rxjava3.core.Observable<PackageReport> getPackageReport(String... srcPackagePath)
      Description copied from interface: ProjectAnalyzer
      Async method to retrieve the report about a variable number of package, given the full path of the package folder
      Specified by:
      getPackageReport in interface ProjectAnalyzer
      Parameters:
      srcPackagePath - variable argument for folder paths
      Returns:
      PackageReport observable
    • getProjectReport

      public io.reactivex.rxjava3.core.Observable<ProjectReport> getProjectReport(String srcProjectFolderPath)
      Description copied from interface: ProjectAnalyzer
      Async method to retrieve the report about a project given the full path of the project folder
      Specified by:
      getProjectReport in interface ProjectAnalyzer
      Parameters:
      srcProjectFolderPath - path to project
      Returns:
      ProjectReport observable
    • analyzeProject

      public io.reactivex.rxjava3.core.Observable<ProjectDTO> analyzeProject(String srcProjectFolderName)
      Description copied from interface: ProjectAnalyzer
      Async function that analyze a project given the full path of the project folder.
      Specified by:
      analyzeProject in interface ProjectAnalyzer
      Parameters:
      srcProjectFolderName - path to project
      Returns:
      an observable