| Modifier and Type | Field and Description |
|---|---|
| protected Reference | |
| protected LoaderClassPath | |
| pack-priv boolean | |
| protected ScopedClassPoolRepository | |
| protected Map |
| Access | Constructor and Description |
|---|---|
| protected | ScopedClassPool(ClassLoader
the classloader cl, ClassPool the original class pool src, ScopedClassPoolRepository the repository repository)Create a new ScopedClassPool. |
| protected | ScopedClassPool(ClassLoader
the classloader cl, ClassPool the original class pool src, ScopedClassPoolRepository the repository repository, boolean Whether this is a temporary pool used to resolve references isTemp)Create a new ScopedClassPool. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | cacheCtClass(String
the class name classname, CtClass the ctClass c, boolean whether the class is dynamically generated dynamic)Overrides javassist. Cache a class |
| public void | |
| public synchronized void | |
| protected CtClass | Returns: the classthe class name classname)Overrides javassist. Get the cached class |
| protected CtClass | Returns: the cached classthe class name classname)Whether the class is cached in this pooled |
| public ClassLoader | Returns: the class loaderOverrides javassist. Get the class loader |
| protected ClassLoader | |
| public synchronized CtClass | |
| public boolean | |
| public void | |
| public synchronized void | |
| public Class | toClass(CtClass
the javassist class ct, ClassLoader the loader loader, ProtectionDomain the protection domain for the class.
If it is null, the default domain created
by domain)java.lang.ClassLoader is used.Overrides javassist. Convert a javassist class to a java class |
| classLoader | back to summary |
|---|---|
| protected Reference<ClassLoader> classLoader | |
| classPath | back to summary |
|---|---|
| protected LoaderClassPath classPath | |
| isBootstrapCl | back to summary |
|---|---|
| pack-priv boolean isBootstrapCl | |
| repository | back to summary |
|---|---|
| protected ScopedClassPoolRepository repository | |
| softcache | back to summary |
|---|---|
| protected Map<String, CtClass> softcache | |
| ScopedClassPool | back to summary |
|---|---|
| protected ScopedClassPool(ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository) Create a new ScopedClassPool.
| |
| ScopedClassPool | back to summary |
|---|---|
| protected ScopedClassPool(ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository, boolean isTemp) Create a new ScopedClassPool.
| |
| cacheCtClass | back to summary |
|---|---|
| protected void cacheCtClass(String classname, CtClass c, boolean dynamic) Overrides javassist. Cache a class | |
| close | back to summary |
|---|---|
| public void close() Close the class pool | |
| flushClass | back to summary |
|---|---|
| public synchronized void flushClass(String classname) Flush a class
| |
| getCached | back to summary |
|---|---|
| protected CtClass getCached(String classname) Overrides javassist. Get the cached class | |
| getCachedLocally | back to summary |
|---|---|
| protected CtClass getCachedLocally(String classname) Whether the class is cached in this pooled | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Overrides javassist. Get the class loader
| |
| getClassLoader0 | back to summary |
|---|---|
| protected ClassLoader getClassLoader0() | |
| getLocally | back to summary |
|---|---|
| public synchronized CtClass getLocally(String classname) throws NotFoundException Get any local copy of the class
| |
| isUnloadedClassLoader | back to summary |
|---|---|
| public boolean isUnloadedClassLoader() Whether the classloader is loader
| |
| lockInCache | back to summary |
|---|---|
| public void lockInCache(CtClass c) Lock a class into the cache
| |
| soften | back to summary |
|---|---|
| public synchronized void soften(CtClass clazz) Soften a class
| |
| toClass | back to summary |
|---|---|
| public Class Overrides javassist. Convert a javassist class to a java class
| |