ApiExtractor

Unified API extractor that can work with both source code and compiled bytecode.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun combine(name: String, apis: List<Api>): Api

Combine API information from multiple sources

Link copied to clipboard
fun fromClasspath(name: String, acceptedPackages: Set<String>, rejectedPackages: Set<String> = ClassGraphApiReferenceExtractor.DEFAULT_EXCLUDED_PACKAGES): Api

Extract API information from project classpath (compiled bytecode)

Link copied to clipboard
fun fromSourceAndClasspath(name: String, sourceDir: Path?, acceptedPackages: Set<String>, rejectedPackages: Set<String> = JavaParserApiExtractor.DEFAULT_EXCLUDED_PACKAGES): Api

Extract API from both source code and classpath, combining results

Link copied to clipboard
fun fromSourceCode(name: String, sourceDir: Path, acceptedPackages: Set<String> = emptySet(), rejectedPackages: Set<String> = JavaParserApiExtractor.DEFAULT_EXCLUDED_PACKAGES): Api

Extract API information from source code directory