Package lib.rx
Class ReactiveProjectAnalyzer
java.lang.Object
lib.rx.ReactiveProjectAnalyzer
- All Implemented Interfaces:
ProjectAnalyzer
The ProjectAnalyzer which uses ReactiveX.
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveProjectAnalyzer
(io.reactivex.rxjava3.core.Observer<String> observer) Constructor of class. -
Method Summary
Modifier and TypeMethodDescriptionio.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 fileio.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 fileio.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 folderio.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
-
Constructor Details
-
ReactiveProjectAnalyzer
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 interfaceProjectAnalyzer
- Parameters:
srcInterfacePath
- variable argument for file paths- Returns:
- InterfaceReport observable
-
getClassReport
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 interfaceProjectAnalyzer
- 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 interfaceProjectAnalyzer
- 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 interfaceProjectAnalyzer
- Parameters:
srcProjectFolderPath
- path to project- Returns:
- ProjectReport observable
-
analyzeProject
Description copied from interface:ProjectAnalyzer
Async function that analyze a project given the full path of the project folder.- Specified by:
analyzeProject
in interfaceProjectAnalyzer
- Parameters:
srcProjectFolderName
- path to project- Returns:
- an observable
-