public class org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback implements org.apache.tomcat.JarScannerCallback
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback
super_class: java.lang.Object
{
private static final java.lang.String FRAGMENT_LOCATION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "META-INF/web-fragment.xml"
private final org.apache.tomcat.util.descriptor.web.WebXmlParser webXmlParser;
descriptor: Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean delegate;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean parseRequired;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, org.apache.tomcat.util.descriptor.web.WebXml> fragments;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/tomcat/util/descriptor/web/WebXml;>;
private boolean ok;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(org.apache.tomcat.util.descriptor.web.WebXmlParser, boolean, boolean);
descriptor: (Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.fragments:Ljava/util/Map;
2: aload 0
iconst_1
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.ok:Z
3: aload 0
aload 1
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.webXmlParser:Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;
4: aload 0
iload 2
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.delegate:Z
5: aload 0
iload 3
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.parseRequired:Z
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
0 7 1 webXmlParser Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;
0 7 2 delegate Z
0 7 3 parseRequired Z
MethodParameters:
Name Flags
webXmlParser
delegate
parseRequired
public void scan(org.apache.tomcat.Jar, java.lang.String, boolean);
descriptor: (Lorg/apache/tomcat/Jar;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: new org.apache.tomcat.util.descriptor.web.WebXml
dup
invokespecial org.apache.tomcat.util.descriptor.web.WebXml.<init>:()V
astore 5
start local 5 2: aload 5
iload 3
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setWebappJar:(Z)V
3: aload 5
aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.delegate:Z
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setDelegate:(Z)V
4: iload 3
ifeq 6
aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.parseRequired:Z
ifeq 6
5: aload 1
ldc "META-INF/web-fragment.xml"
invokeinterface org.apache.tomcat.Jar.getInputStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 4
6: StackMap locals: java.io.InputStream org.apache.tomcat.util.descriptor.web.WebXml
StackMap stack:
aload 4
ifnonnull 9
7: aload 5
iconst_1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setDistributable:(Z)V
8: goto 18
9: StackMap locals:
StackMap stack:
aload 1
ldc "META-INF/web-fragment.xml"
invokeinterface org.apache.tomcat.Jar.getURL:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 10: new org.xml.sax.InputSource
dup
aload 6
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 7
start local 7 11: aload 7
aload 4
invokevirtual org.xml.sax.InputSource.setByteStream:(Ljava/io/InputStream;)V
12: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.webXmlParser:Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;
aload 7
aload 5
iconst_1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml:(Lorg/xml/sax/InputSource;Lorg/apache/tomcat/util/descriptor/web/WebXml;Z)Z
ifne 18
13: aload 0
iconst_0
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.ok:Z
end local 7 end local 6 14: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 8
16: aload 0
aload 5
aload 1
invokeinterface org.apache.tomcat.Jar.getJarFileURL:()Ljava/net/URL;
invokevirtual org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.addFragment:(Lorg/apache/tomcat/util/descriptor/web/WebXml;Ljava/net/URL;)V
17: aload 8
athrow
18: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 1
invokeinterface org.apache.tomcat.Jar.getJarFileURL:()Ljava/net/URL;
invokevirtual org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.addFragment:(Lorg/apache/tomcat/util/descriptor/web/WebXml;Ljava/net/URL;)V
19: return
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 20 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
0 20 1 jar Lorg/apache/tomcat/Jar;
0 20 2 webappPath Ljava/lang/String;
0 20 3 isWebapp Z
1 20 4 is Ljava/io/InputStream;
2 20 5 fragment Lorg/apache/tomcat/util/descriptor/web/WebXml;
10 14 6 fragmentUrl Ljava/lang/String;
11 14 7 source Lorg/xml/sax/InputSource;
Exception table:
from to target type
4 15 15 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jar
webappPath
isWebapp
private java.lang.String (java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "!/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 2
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
0 4 1 input Ljava/net/URL;
1 4 2 url Ljava/lang/String;
MethodParameters:
Name Flags
input
public void scan(java.io.File, java.lang.String, boolean);
descriptor: (Ljava/io/File;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.apache.tomcat.util.descriptor.web.WebXml
dup
invokespecial org.apache.tomcat.util.descriptor.web.WebXml.<init>:()V
astore 4
start local 4 1: aload 4
iload 3
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setWebappJar:(Z)V
2: aload 4
aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.delegate:Z
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setDelegate:(Z)V
3: new java.io.File
dup
aload 1
ldc "META-INF/web-fragment.xml"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 5
start local 5 4: aload 5
invokevirtual java.io.File.isFile:()Z
ifeq 18
5: aconst_null
astore 6
aconst_null
astore 7
6: new java.io.FileInputStream
dup
aload 5
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 8
start local 8 7: new org.xml.sax.InputSource
dup
aload 5
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
8: astore 9
start local 9 9: aload 9
aload 8
invokevirtual org.xml.sax.InputSource.setByteStream:(Ljava/io/InputStream;)V
10: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.webXmlParser:Lorg/apache/tomcat/util/descriptor/web/WebXmlParser;
aload 9
aload 4
iconst_1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml:(Lorg/xml/sax/InputSource;Lorg/apache/tomcat/util/descriptor/web/WebXml;Z)Z
ifne 12
11: aload 0
iconst_0
putfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.ok:Z
end local 9 12: StackMap locals: org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback java.io.File java.lang.String int org.apache.tomcat.util.descriptor.web.WebXml java.io.File java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 8
ifnull 23
aload 8
invokevirtual java.io.InputStream.close:()V
goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 6
aload 8
ifnull 14
aload 8
invokevirtual java.io.InputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
14: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 7
aload 6
ifnonnull 16
aload 7
astore 6
goto 17
StackMap locals:
StackMap stack:
16: aload 6
aload 7
if_acmpeq 17
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 6
athrow
18: StackMap locals:
StackMap stack:
aload 4
iconst_1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setDistributable:(Z)V
19: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 10
21: aload 0
aload 4
aload 1
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.addFragment:(Lorg/apache/tomcat/util/descriptor/web/WebXml;Ljava/net/URL;)V
22: aload 10
athrow
23: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 1
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.addFragment:(Lorg/apache/tomcat/util/descriptor/web/WebXml;Ljava/net/URL;)V
24: return
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 25 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
0 25 1 file Ljava/io/File;
0 25 2 webappPath Ljava/lang/String;
0 25 3 isWebapp Z
1 25 4 fragment Lorg/apache/tomcat/util/descriptor/web/WebXml;
4 25 5 fragmentFile Ljava/io/File;
7 14 8 stream Ljava/io/InputStream;
9 12 9 source Lorg/xml/sax/InputSource;
Exception table:
from to target type
7 12 13 any
6 15 15 any
4 20 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
webappPath
isWebapp
private void addFragment(org.apache.tomcat.util.descriptor.web.WebXml, java.net.URL);
descriptor: (Lorg/apache/tomcat/util/descriptor/web/WebXml;Ljava/net/URL;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setURL:(Ljava/net/URL;)V
1: aload 1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.getName:()Ljava/lang/String;
ifnonnull 3
2: aload 1
aload 2
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setName:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokevirtual org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.extractJarFileName:(Ljava/net/URL;)Ljava/lang/String;
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setJarName:(Ljava/lang/String;)V
4: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.fragments:Ljava/util/Map;
aload 1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.getName:()Ljava/lang/String;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 8
5: aload 1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.getName:()Ljava/lang/String;
astore 3
start local 3 6: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.fragments:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.tomcat.util.descriptor.web.WebXml
iconst_1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setDuplicated:(Z)V
7: aload 1
aload 2
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.setName:(Ljava/lang/String;)V
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.fragments:Ljava/util/Map;
aload 1
invokevirtual org.apache.tomcat.util.descriptor.web.WebXml.getName:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
0 10 1 fragment Lorg/apache/tomcat/util/descriptor/web/WebXml;
0 10 2 url Ljava/net/URL;
6 8 3 duplicateName Ljava/lang/String;
MethodParameters:
Name Flags
fragment
url
public void scanWebInfClasses();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
public boolean isOk();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.ok:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
public java.util.Map<java.lang.String, org.apache.tomcat.util.descriptor.web.WebXml> getFragments();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback.fragments:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/descriptor/web/FragmentJarScannerCallback;
Signature: ()Ljava/util/Map<Ljava/lang/String;Lorg/apache/tomcat/util/descriptor/web/WebXml;>;
}
SourceFile: "FragmentJarScannerCallback.java"