public final class org.apache.catalina.webresources.JarContents
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.catalina.webresources.JarContents
super_class: java.lang.Object
{
private final java.util.BitSet bits1;
descriptor: Ljava/util/BitSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.BitSet bits2;
descriptor: Ljava/util/BitSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int HASH_PRIME_1;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 31
private static final int HASH_PRIME_2;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 17
private static final int TABLE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2048
public void <init>(java.util.jar.JarFile);
descriptor: (Ljava/util/jar/JarFile;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokevirtual java.util.jar.JarFile.entries:()Ljava/util/Enumeration;
astore 2
start local 2 2: aload 0
new java.util.BitSet
dup
sipush 2048
invokespecial java.util.BitSet.<init>:(I)V
putfield org.apache.catalina.webresources.JarContents.bits1:Ljava/util/BitSet;
3: aload 0
new java.util.BitSet
dup
sipush 2048
invokespecial java.util.BitSet.<init>:(I)V
putfield org.apache.catalina.webresources.JarContents.bits2:Ljava/util/BitSet;
4: goto 17
5: StackMap locals: org.apache.catalina.webresources.JarContents java.util.jar.JarFile java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.util.jar.JarEntry
astore 3
start local 3 6: aload 3
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: aload 4
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 9
iconst_1
goto 10
StackMap locals: java.util.jar.JarEntry java.lang.String int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 6
start local 6 11: iload 6
ifeq 13
12: iconst_1
istore 5
13: StackMap locals: int
StackMap stack:
aload 0
aload 4
iload 5
bipush 31
invokevirtual org.apache.catalina.webresources.JarContents.hashcode:(Ljava/lang/String;II)I
istore 7
start local 7 14: aload 0
aload 4
iload 5
bipush 17
invokevirtual org.apache.catalina.webresources.JarContents.hashcode:(Ljava/lang/String;II)I
istore 8
start local 8 15: aload 0
getfield org.apache.catalina.webresources.JarContents.bits1:Ljava/util/BitSet;
iload 7
sipush 2048
irem
invokevirtual java.util.BitSet.set:(I)V
16: aload 0
getfield org.apache.catalina.webresources.JarContents.bits2:Ljava/util/BitSet;
iload 8
sipush 2048
irem
invokevirtual java.util.BitSet.set:(I)V
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 17: StackMap locals: org.apache.catalina.webresources.JarContents java.util.jar.JarFile java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 5
18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/catalina/webresources/JarContents;
0 19 1 jar Ljava/util/jar/JarFile;
2 19 2 entries Ljava/util/Enumeration<Ljava/util/jar/JarEntry;>;
6 17 3 entry Ljava/util/jar/JarEntry;
7 17 4 name Ljava/lang/String;
8 17 5 startPos I
11 17 6 precedingSlash Z
14 17 7 pathHash1 I
15 17 8 pathHash2 I
MethodParameters:
Name Flags
jar
private int hashcode(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iconst_2
idiv
istore 4
start local 4 1: aload 1
invokevirtual java.lang.String.length:()I
istore 5
start local 5 2: iload 2
istore 6
start local 6 3: goto 6
4: StackMap locals: int int int
StackMap stack:
iload 3
iload 4
imul
aload 1
iload 6
invokevirtual java.lang.String.charAt:(I)C
iadd
istore 4
5: iinc 6 1
StackMap locals:
StackMap stack:
6: iload 6
iload 5
if_icmplt 4
end local 6 7: iload 4
ifge 9
8: iload 4
iconst_m1
imul
istore 4
9: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/catalina/webresources/JarContents;
0 10 1 content Ljava/lang/String;
0 10 2 startPos I
0 10 3 hashPrime I
1 10 4 h I
2 10 5 contentLength I
3 7 6 i I
MethodParameters:
Name Flags
content
startPos
hashPrime
public final boolean mightContainResource(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: aload 1
aload 2
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 2
invokevirtual java.lang.String.length:()I
istore 3
3: StackMap locals: int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 5
4: iinc 3 1
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.webresources.JarContents.bits1:Ljava/util/BitSet;
aload 0
aload 1
iload 3
bipush 31
invokevirtual org.apache.catalina.webresources.JarContents.hashcode:(Ljava/lang/String;II)I
sipush 2048
irem
invokevirtual java.util.BitSet.get:(I)Z
ifeq 8
6: aload 0
getfield org.apache.catalina.webresources.JarContents.bits2:Ljava/util/BitSet;
aload 0
aload 1
iload 3
bipush 17
invokevirtual org.apache.catalina.webresources.JarContents.hashcode:(Ljava/lang/String;II)I
sipush 2048
irem
invokevirtual java.util.BitSet.get:(I)Z
ifeq 8
7: iconst_1
ireturn
StackMap locals:
StackMap stack:
8: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/catalina/webresources/JarContents;
0 9 1 path Ljava/lang/String;
0 9 2 webappRoot Ljava/lang/String;
1 9 3 startPos I
MethodParameters:
Name Flags
path
webappRoot
}
SourceFile: "JarContents.java"