public class org.aspectj.apache.bcel.util.ClassLoaderRepository implements org.aspectj.apache.bcel.util.Repository
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.aspectj.apache.bcel.util.ClassLoaderRepository
super_class: java.lang.Object
{
private static java.lang.ClassLoader bootClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private org.aspectj.apache.bcel.util.ClassLoaderReference loaderRef;
descriptor: Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
flags: (0x0002) ACC_PRIVATE
private java.util.WeakHashMap<java.net.URL, java.lang.ref.SoftReference<org.aspectj.apache.bcel.classfile.JavaClass>> localCache;
descriptor: Ljava/util/WeakHashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/WeakHashMap<Ljava/net/URL;Ljava/lang/ref/SoftReference<Lorg/aspectj/apache/bcel/classfile/JavaClass;>;>;
private static org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap sharedCache;
descriptor: Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap nameMap;
descriptor: Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
flags: (0x0002) ACC_PRIVATE
public static boolean useSharedCache;
descriptor: Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static int cacheHitsShared;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int missSharedEvicted;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private long timeManipulatingURLs;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long timeSpentLoading;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int classesLoadedCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int misses;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int cacheHitsLocal;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int missLocalEvicted;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: aconst_null
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.bootClassLoader:Ljava/lang/ClassLoader;
1: new org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap
dup
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
invokespecial org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.<init>:(Ljava/util/Map;)V
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
2: ldc "org.aspectj.apache.bcel.useSharedCache"
ldc "true"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ldc "true"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
3: iconst_0
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
4: iconst_0
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.missSharedEvicted:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
2: aload 0
new org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap
dup
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
iconst_0
invokespecial org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.<init>:(Ljava/util/Map;Z)V
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.nameMap:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
3: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
4: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
5: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
6: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.misses:I
7: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
8: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
9: aload 0
10: new org.aspectj.apache.bcel.util.DefaultClassLoaderReference
dup
aload 1
ifnull 11
aload 1
goto 12
StackMap locals: org.aspectj.apache.bcel.util.ClassLoaderRepository java.lang.ClassLoader
StackMap stack: org.aspectj.apache.bcel.util.ClassLoaderRepository new 10 new 10
11: invokestatic org.aspectj.apache.bcel.util.ClassLoaderRepository.getBootClassLoader:()Ljava/lang/ClassLoader;
StackMap locals: org.aspectj.apache.bcel.util.ClassLoaderRepository java.lang.ClassLoader
StackMap stack: org.aspectj.apache.bcel.util.ClassLoaderRepository new 10 new 10 java.lang.ClassLoader
12: invokespecial org.aspectj.apache.bcel.util.DefaultClassLoaderReference.<init>:(Ljava/lang/ClassLoader;)V
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.loaderRef:Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 14 1 loader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
loader
public void <init>(org.aspectj.apache.bcel.util.ClassLoaderReference);
descriptor: (Lorg/aspectj/apache/bcel/util/ClassLoaderReference;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
2: aload 0
new org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap
dup
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
iconst_0
invokespecial org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.<init>:(Ljava/util/Map;Z)V
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.nameMap:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
3: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
4: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
5: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
6: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.misses:I
7: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
8: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
9: aload 0
aload 1
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.loaderRef:Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 11 1 loaderRef Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
MethodParameters:
Name Flags
loaderRef
private static synchronized java.lang.ClassLoader getBootClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.bootClassLoader:Ljava/lang/ClassLoader;
ifnonnull 2
1: new java.net.URLClassLoader
dup
iconst_0
anewarray java.net.URL
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;)V
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.bootClassLoader:Ljava/lang/ClassLoader;
2: StackMap locals:
StackMap stack:
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.bootClassLoader:Ljava/lang/ClassLoader;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void storeClassAsReference(java.net.URL, org.aspectj.apache.bcel.classfile.JavaClass);
descriptor: (Ljava/net/URL;Lorg/aspectj/apache/bcel/classfile/JavaClass;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 4
1: aload 2
aconst_null
invokevirtual org.aspectj.apache.bcel.classfile.JavaClass.setRepository:(Lorg/aspectj/apache/bcel/util/Repository;)V
2: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
aload 1
aload 2
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: goto 6
4: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual org.aspectj.apache.bcel.classfile.JavaClass.setRepository:(Lorg/aspectj/apache/bcel/util/Repository;)V
5: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
aload 1
new java.lang.ref.SoftReference
dup
aload 2
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 7 1 url Ljava/net/URL;
0 7 2 clazz Lorg/aspectj/apache/bcel/classfile/JavaClass;
MethodParameters:
Name Flags
url
clazz
public void storeClass(org.aspectj.apache.bcel.classfile.JavaClass);
descriptor: (Lorg/aspectj/apache/bcel/classfile/JavaClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.classfile.JavaClass.getClassName:()Ljava/lang/String;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.storeClassAsReference:(Ljava/net/URL;Lorg/aspectj/apache/bcel/classfile/JavaClass;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 2 1 clazz Lorg/aspectj/apache/bcel/classfile/JavaClass;
MethodParameters:
Name Flags
clazz
public void removeClass(org.aspectj.apache.bcel.classfile.JavaClass);
descriptor: (Lorg/aspectj/apache/bcel/classfile/JavaClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 2
1: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.classfile.JavaClass.getClassName:()Ljava/lang/String;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.classfile.JavaClass.getClassName:()Ljava/lang/String;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
invokevirtual java.util.WeakHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 4 1 clazz Lorg/aspectj/apache/bcel/classfile/JavaClass;
MethodParameters:
Name Flags
clazz
public org.aspectj.apache.bcel.classfile.JavaClass findClass(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 2
1: aload 0
aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.findClassShared:(Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.findClassLocal:(Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 3 1 className Ljava/lang/String;
MethodParameters:
Name Flags
className
private org.aspectj.apache.bcel.classfile.JavaClass findClassLocal(java.net.URL);
descriptor: (Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
aload 1
invokevirtual java.util.WeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnull 6
2: aload 2
checkcast java.lang.ref.Reference
invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
astore 2
3: aload 2
ifnull 5
4: aload 2
checkcast org.aspectj.apache.bcel.classfile.JavaClass
areturn
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
iconst_1
iadd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 7 1 url Ljava/net/URL;
1 7 2 o Ljava/lang/Object;
MethodParameters:
Name Flags
url
private org.aspectj.apache.bcel.classfile.JavaClass findClassShared(java.net.URL);
descriptor: (Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.aspectj.apache.bcel.classfile.JavaClass
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 1 1 url Ljava/net/URL;
MethodParameters:
Name Flags
url
private java.net.URL toURL(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.nameMap:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URL
astore 2
start local 2 1: aload 2
ifnonnull 5
2: aload 1
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
start local 3 3: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.loaderRef:Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
invokeinterface org.aspectj.apache.bcel.util.ClassLoaderReference.getClassLoader:()Ljava/lang/ClassLoader;
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 2
4: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.nameMap:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
aload 1
aload 2
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals: java.net.URL
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 6 1 className Ljava/lang/String;
1 6 2 url Ljava/net/URL;
3 5 3 classFile Ljava/lang/String;
MethodParameters:
Name Flags
className
public org.aspectj.apache.bcel.classfile.JavaClass loadClass(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=9, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 1: aload 0
aload 1
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.toURL:(Ljava/lang/String;)Ljava/net/URL;
astore 4
start local 4 2: aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
ladd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
3: aload 4
ifnonnull 5
4: new java.lang.ClassNotFoundException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found - unable to determine URL"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: long java.net.URL
StackMap stack:
aconst_null
astore 5
start local 5 6: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 11
7: aload 0
aload 4
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.findClassShared:(Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
astore 5
8: aload 5
ifnull 15
9: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
iconst_1
iadd
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
10: aload 5
areturn
11: StackMap locals: org.aspectj.apache.bcel.classfile.JavaClass
StackMap stack:
aload 0
aload 4
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.findClassLocal:(Ljava/net/URL;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
astore 5
12: aload 5
ifnull 15
13: aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
iconst_1
iadd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
14: aload 5
areturn
15: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.misses:I
iconst_1
iadd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.misses:I
16: aload 1
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 6
start local 6 17: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 18
aload 4
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
goto 21
StackMap locals: java.lang.String
StackMap stack:
18: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.loaderRef:Lorg/aspectj/apache/bcel/util/ClassLoaderReference;
invokeinterface org.aspectj.apache.bcel.util.ClassLoaderReference.getClassLoader:()Ljava/lang/ClassLoader;
19: new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
StackMap locals:
StackMap stack: java.io.InputStream
21: astore 7
start local 7 22: aload 7
ifnonnull 24
23: new java.lang.ClassNotFoundException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found using url "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals: java.io.InputStream
StackMap stack:
new org.aspectj.apache.bcel.classfile.ClassParser
dup
aload 7
aload 1
invokespecial org.aspectj.apache.bcel.classfile.ClassParser.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
astore 8
start local 8 25: aload 8
invokevirtual org.aspectj.apache.bcel.classfile.ClassParser.parse:()Lorg/aspectj/apache/bcel/classfile/JavaClass;
astore 5
26: aload 0
aload 4
aload 5
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.storeClassAsReference:(Ljava/net/URL;Lorg/aspectj/apache/bcel/classfile/JavaClass;)V
27: aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
ladd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
28: aload 0
dup
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
iconst_1
iadd
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
29: aload 5
30: areturn
end local 8 end local 7 end local 6 31: StackMap locals: org.aspectj.apache.bcel.util.ClassLoaderRepository java.lang.String long java.net.URL org.aspectj.apache.bcel.classfile.JavaClass
StackMap stack: java.io.IOException
astore 6
start local 6 32: new java.lang.ClassNotFoundException
dup
aload 6
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 33 1 className Ljava/lang/String;
1 33 2 time J
2 33 4 url Ljava/net/URL;
6 33 5 clazz Lorg/aspectj/apache/bcel/classfile/JavaClass;
17 31 6 classFile Ljava/lang/String;
22 31 7 is Ljava/io/InputStream;
25 31 8 parser Lorg/aspectj/apache/bcel/classfile/ClassParser;
32 33 6 e Ljava/io/IOException;
Exception table:
from to target type
16 30 31 Class java.io.IOException
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
className
public java.lang.String report();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 1
ldc "BCEL repository report."
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 4
3: aload 1
ldc " (shared cache)"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
goto 5
4: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 1
ldc " (local cache)"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: StackMap locals:
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc " Total time spent loading: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "ms."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
6: aload 1
new java.lang.StringBuilder
dup
ldc " Time spent manipulating URLs: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "ms."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: aload 1
new java.lang.StringBuilder
dup
ldc " Classes loaded: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
8: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 12
9: aload 1
new java.lang.StringBuilder
dup
ldc " Shared cache size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: aload 1
new java.lang.StringBuilder
dup
ldc " Shared cache (hits/missDueToEviction): ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.missSharedEvicted:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
11: goto 14
12: StackMap locals:
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc " Local cache size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
13: aload 1
new java.lang.StringBuilder
dup
ldc " Local cache (hits/missDueToEviction): ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
14: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
1 15 1 sb Ljava/lang/StringBuffer;
public long[] reportStats();
descriptor: ()[J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: bipush 8
newarray 11
dup
iconst_0
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
lastore
dup
iconst_1
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
lastore
dup
iconst_2
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
i2l
lastore
dup
iconst_3
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
i2l
lastore
dup
iconst_4
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.missSharedEvicted:I
i2l
lastore
dup
iconst_5
1: aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
i2l
lastore
dup
bipush 6
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
i2l
lastore
dup
bipush 7
getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.size:()I
i2l
lastore
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeManipulatingURLs:J
1: aload 0
lconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.timeSpentLoading:J
2: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.classesLoadedCount:I
3: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsLocal:I
4: iconst_0
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.cacheHitsShared:I
5: iconst_0
putstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.missSharedEvicted:I
6: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.missLocalEvicted:I
7: aload 0
iconst_0
putfield org.aspectj.apache.bcel.util.ClassLoaderRepository.misses:I
8: aload 0
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.clear:()V
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
public org.aspectj.apache.bcel.classfile.JavaClass loadClass(java.lang.Class);
descriptor: (Ljava/lang/Class;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository.loadClass:(Ljava/lang/String;)Lorg/aspectj/apache/bcel/classfile/JavaClass;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
0 1 1 clazz Ljava/lang/Class;
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
clazz
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.useSharedCache:Z
ifeq 2
1: getstatic org.aspectj.apache.bcel.util.ClassLoaderRepository.sharedCache:Lorg/aspectj/apache/bcel/util/ClassLoaderRepository$SoftHashMap;
invokevirtual org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap.clear:()V
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield org.aspectj.apache.bcel.util.ClassLoaderRepository.localCache:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.clear:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/aspectj/apache/bcel/util/ClassLoaderRepository;
}
SourceFile: "ClassLoaderRepository.java"
NestMembers:
org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap$SpecialValue
InnerClasses:
public SoftHashMap = org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap of org.aspectj.apache.bcel.util.ClassLoaderRepository
SpecialValue = org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap$SpecialValue of org.aspectj.apache.bcel.util.ClassLoaderRepository$SoftHashMap