public class JDKSourceCache extends SourceCache
SourceCache.SourceCacheFeatureclassPathEntries, sourcePathEntries, srcRoots| Constructor and Description |
|---|
JDKSourceCache() |
| Modifier and Type | Method and Description |
|---|---|
protected SourceCacheType |
getType()
Identify the specific type of this source cache.
|
protected void |
initSrcRoots()
Add dirs or jars found in the classpath.
|
protected void |
trySourceRoot(Path sourceRoot,
boolean fromClassPath)
Implementing this method allows to add to the
SourceCache.srcRoots based on the given
sourceRoot path (jar-file or directory). |
cachedFile, cachedPath, checkCacheFile, createSourceCache, extendPath, findCandidate, resolve, tryCacheFileprotected final SourceCacheType getType()
SourceCachegetType in class SourceCacheprotected void initSrcRoots()
SourceCacheinitSrcRoots in class SourceCacheprotected void trySourceRoot(Path sourceRoot, boolean fromClassPath)
SourceCacheSourceCache.srcRoots based on the given
sourceRoot path (jar-file or directory). Different subclasses might implement different
strategies how to extract SourceCache.srcRoots entries from the given sourceRoot.trySourceRoot in class SourceCachesourceRoot - path SourceCache.srcRoots entries should be added for.fromClassPath - true, if the given sourceRoot is a classpath entry.