public class SourceCodeCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the source code cache.
|
java.util.Collection<ClassContent> |
getAll()
Obtains all ClassContent
|
ClassContent |
getClassContent(java.lang.Class<?> clazz)
Obtains the
ClassContent of the specified class from the cache. |
static SourceCodeCache |
getInstance()
Returns the unique instance of the class ready to use.
|
static java.lang.String |
getOriginalClassNameFromVersion(java.lang.String className)
Gets the original class name from a version class name
|
static SourceFromSrcZipExtractor |
getSourceFromSrcZipExtractor() |
int |
getVersion(java.lang.String className)
Provides the current version of one class
|
public static SourceFromSrcZipExtractor getSourceFromSrcZipExtractor()
public static SourceCodeCache getInstance()
public static java.lang.String getOriginalClassNameFromVersion(java.lang.String className)
className
- public ClassContent getClassContent(java.lang.Class<?> clazz) throws StructuralIntercessionException
ClassContent
of the specified class from the cache.
If this class content isn't in the cache, then it is added and returned.clazz
- to obtain the ClassContent
ClassContent
of the class givenStructuralIntercessionException
public int getVersion(java.lang.String className)
className
- The full name of the classpublic java.util.Collection<ClassContent> getAll()
public void clear()