class org.jruby.util.JarCache$JarIndex
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.util.JarCache$JarIndex
super_class: java.lang.Object
{
private static final java.lang.String ROOT_KEY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ""
private final java.util.Map<java.lang.String, java.lang.String[]> cachedDirEntries;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;[Ljava/lang/String;>;
private final java.util.jar.JarFile jar;
descriptor: Ljava/util/jar/JarFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long snapshotCalculated;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.jar.JarFile
dup
aload 1
invokespecial java.util.jar.JarFile.<init>:(Ljava/lang/String;)V
putfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
2: aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.lastModified:()J
putfield org.jruby.util.JarCache$JarIndex.snapshotCalculated:J
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 4: aload 2
ldc ""
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.entries:()Ljava/util/Enumeration;
astore 3
start local 3 6: goto 20
7: StackMap locals: org.jruby.util.JarCache$JarIndex java.lang.String java.util.Map java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.util.jar.JarEntry
astore 4
start local 4 8: aload 4
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
astore 5
start local 5 9: goto 17
start local 6 10: StackMap locals: java.util.jar.JarEntry java.lang.String int
StackMap stack:
aload 5
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 11: aload 2
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.HashSet
astore 8
start local 8 12: aload 8
ifnonnull 14
13: aload 2
aload 7
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
dup
astore 8
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: StackMap locals: java.lang.String java.util.HashSet
StackMap stack:
aload 5
iload 6
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 9
start local 9 15: aload 9
invokevirtual java.lang.String.length:()I
ifle 16
aload 8
aload 9
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
16: StackMap locals: java.lang.String
StackMap stack:
aload 7
astore 5
end local 9 end local 8 end local 7 end local 6 17: StackMap locals: org.jruby.util.JarCache$JarIndex java.lang.String java.util.Map java.util.Enumeration java.util.jar.JarEntry java.lang.String
StackMap stack:
aload 5
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
dup
istore 6
start local 6 18: iconst_m1
if_icmpne 10
19: aload 2
ldc ""
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.HashSet
aload 5
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 end local 4 20: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 7
21: new java.util.HashMap
dup
aload 2
invokeinterface java.util.Map.size:()I
bipush 8
iadd
fconst_1
invokespecial java.util.HashMap.<init>:(IF)V
astore 4
start local 4 22: aload 2
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 26
StackMap locals: org.jruby.util.JarCache$JarIndex java.lang.String java.util.Map java.util.Enumeration java.util.Map top java.util.Iterator
StackMap stack:
23: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 24: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.Set
astore 7
start local 7 25: aload 4
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 7
aload 7
invokeinterface java.util.Set.size:()I
anewarray java.lang.String
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 26: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 23
27: aload 0
aload 4
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putfield org.jruby.util.JarCache$JarIndex.cachedDirEntries:Ljava/util/Map;
28: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/jruby/util/JarCache$JarIndex;
0 29 1 jarPath Ljava/lang/String;
4 29 2 mutableCache Ljava/util/Map<Ljava/lang/String;Ljava/util/HashSet<Ljava/lang/String;>;>;
6 29 3 entries Ljava/util/Enumeration<Ljava/util/jar/JarEntry;>;
8 20 4 entry Ljava/util/jar/JarEntry;
9 20 5 path Ljava/lang/String;
10 17 6 lastPathSep I
18 20 6 lastPathSep I
11 17 7 dirPath Ljava/lang/String;
12 17 8 paths Ljava/util/HashSet<Ljava/lang/String;>;
15 17 9 entryPath Ljava/lang/String;
22 29 4 cachedDirEntries Ljava/util/Map<Ljava/lang/String;[Ljava/lang/String;>;
24 26 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/HashSet<Ljava/lang/String;>;>;
25 26 7 value Ljava/util/Set<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jarPath
public java.util.jar.JarEntry getJarEntry(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/jar/JarEntry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
aload 1
invokestatic org.jruby.util.JarCache$JarIndex.canonicalJarPath:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.util.jar.JarFile.getJarEntry:(Ljava/lang/String;)Ljava/util/jar/JarEntry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarCache$JarIndex;
0 1 1 entryPath Ljava/lang/String;
MethodParameters:
Name Flags
entryPath
public java.lang.String[] getDirEntries(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.JarCache$JarIndex.cachedDirEntries:Ljava/util/Map;
aload 1
invokestatic org.jruby.util.JarCache$JarIndex.canonicalJarPath:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarCache$JarIndex;
0 1 1 entryPath Ljava/lang/String;
MethodParameters:
Name Flags
entryPath
public java.io.InputStream getInputStream(java.util.jar.JarEntry);
descriptor: (Ljava/util/jar/JarEntry;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
aload 1
invokevirtual java.util.jar.JarFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarCache$JarIndex;
0 1 1 entry Ljava/util/jar/JarEntry;
Exceptions:
throws java.io.IOException, java.lang.IllegalStateException
MethodParameters:
Name Flags
entry
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/JarCache$JarIndex;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isValid();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.File
dup
aload 0
getfield org.jruby.util.JarCache$JarIndex.jar:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.getName:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.lastModified:()J
aload 0
getfield org.jruby.util.JarCache$JarIndex.snapshotCalculated:J
lcmp
ifgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/JarCache$JarIndex;
private static java.lang.String canonicalJarPath(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.RubyFile.canonicalize:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
2: aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
1 4 1 canonical Ljava/lang/String;
MethodParameters:
Name Flags
path
}
SourceFile: "JarCache.java"
NestHost: org.jruby.util.JarCache
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
JarIndex = org.jruby.util.JarCache$JarIndex of org.jruby.util.JarCache