Package io.emop.javadocjson.parser
Class ClassUrlExtractor
java.lang.Object
io.emop.javadocjson.parser.ClassUrlExtractor
Utility class for extracting class URLs from Javadoc HTML documents.
-
Constructor Summary
ConstructorsConstructorDescriptionClassUrlExtractor(org.apache.maven.plugin.logging.Log log, String baseUrl, Set<String> packageFilters) -
Method Summary
Modifier and TypeMethodDescriptionextractFromAllClassesDocument(org.jsoup.nodes.Document document) Extracts class URLs from an allclasses-type document.extractPackageFromPath(String path) Extracts full class name (including package) from a URL.static booleanvalidAllClassPage(org.jsoup.nodes.Document document) Whether the given document has class URLs
-
Constructor Details
-
ClassUrlExtractor
-
-
Method Details
-
extractFromAllClassesDocument
Extracts class URLs from an allclasses-type document.- Parameters:
document- The HTML document to extract URLs from- Returns:
- List of absolute class URLs
-
validAllClassPage
public static boolean validAllClassPage(org.jsoup.nodes.Document document) Whether the given document has class URLs- Parameters:
document- The HTML document to extract URLs from- Returns:
- has class link
-
extractSimpleClassNameFromUrl
Extracts full class name (including package) from a URL.- Parameters:
url- The URL to extract class name from- Returns:
- The full class name, or null if it cannot be extracted
-
extractPackageFromPath
-