Package io.emop.javadocjson.parser
Class CrawlerCache
java.lang.Object
io.emop.javadocjson.parser.CrawlerCache
Cache management class for the Javadoc crawler.
-
Constructor Summary
ConstructorsConstructorDescriptionCrawlerCache(org.apache.maven.plugin.logging.Log log, boolean enableCache, String cacheDir) -
Method Summary
Modifier and TypeMethodDescriptiongetCachedClass(String className) Gets a cached JavadocClass object from the cache.Gets cache statistics as a formatted string.booleanChecks if a class is already cached.voidmarkAsCached(JavadocClass javadocClass) Marks a class as cached and stores the JavadocClass object.
-
Constructor Details
-
CrawlerCache
-
-
Method Details
-
isCached
Checks if a class is already cached.- Parameters:
className- The name of the class to check- Returns:
- true if the class is cached, false otherwise
-
markAsCached
Marks a class as cached and stores the JavadocClass object.- Parameters:
javadocClass- The JavadocClass object to cache
-
getCachedClass
Gets a cached JavadocClass object from the cache.- Parameters:
className- The name of the class to retrieve- Returns:
- The cached JavadocClass object, or null if not found or error occurred
-
getCacheStats
Gets cache statistics as a formatted string.- Returns:
- Cache statistics string
-