Package kilim.mirrors
Class CachedClassMirrors
java.lang.Object
kilim.mirrors.CachedClassMirrors
CachedClassMirrors caches information about a set of classes that are loaded through byte arrays, and which
are not already loaded by the classloader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ConcurrentHashMap<String, CachedClassMirrors.ClassMirror> (package private) static final String[](package private) final ClassLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassForName(String className) static intgetVersion(ClassLoader source, Class klass) get the major version of klass by loading the bytecode from source, unused but useful for debuggingprivate static Stringprivate static String[]mirror(byte[] bytecode) private CachedClassMirrors.ClassMirror
-
Field Details
-
EMPTY_SET
-
cachedClasses
ConcurrentHashMap<String,CachedClassMirrors.ClassMirror> cachedClasses -
source
-
-
Constructor Details
-
CachedClassMirrors
public CachedClassMirrors() -
CachedClassMirrors
-
-
Method Details
-
classForName
public CachedClassMirrors.ClassMirror classForName(String className) throws ClassMirrorNotFoundException - Throws:
ClassMirrorNotFoundException
-
mirror
-
place
-
getVersion
get the major version of klass by loading the bytecode from source, unused but useful for debugging -
mirror
-
map
-
map
-