public final class org.apache.catalina.util.ContextName
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.catalina.util.ContextName
super_class: java.lang.Object
{
public static final java.lang.String ROOT_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ROOT"
private static final java.lang.String VERSION_MARKER;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "##"
private static final char FWD_SLASH_REPLACEMENT;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 35
private final java.lang.String baseName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String version;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
astore 3
start local 3 2: aload 3
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 3
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
4: StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String
StackMap stack:
aload 3
bipush 47
bipush 35
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
5: aload 3
ldc "##"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 6
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 7
6: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "ROOT"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
7: StackMap locals:
StackMap stack:
iload 2
ifeq 11
8: aload 3
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc ".war"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 10
9: aload 3
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc ".xml"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
10: StackMap locals:
StackMap stack:
aload 3
iconst_0
aload 3
invokevirtual java.lang.String.length:()I
iconst_4
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
11: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
12: aload 0
getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
ldc "##"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 13: iload 5
iconst_m1
if_icmple 17
14: aload 0
aload 0
getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
iload 5
iconst_2
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
15: aload 0
getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 16: goto 19
end local 4 17: StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String top int
StackMap stack:
aload 0
ldc ""
putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
18: aload 0
getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
astore 4
start local 4 19: StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String java.lang.String int
StackMap stack:
ldc "ROOT"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 22
20: aload 0
ldc ""
putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
21: goto 23
22: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
bipush 35
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
23: StackMap locals:
StackMap stack:
iload 5
iconst_m1
if_icmple 26
24: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "##"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
25: goto 27
26: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
27: StackMap locals:
StackMap stack:
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 28 0 this Lorg/apache/catalina/util/ContextName;
0 28 1 name Ljava/lang/String;
0 28 2 stripFileExtension Z
2 28 3 tmp1 Ljava/lang/String;
16 17 4 tmp2 Ljava/lang/String;
19 28 4 tmp2 Ljava/lang/String;
13 28 5 versionIndex I
MethodParameters:
Name Flags
name
stripFileExtension
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
ldc "/"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
ldc "/ROOT"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals: org.apache.catalina.util.ContextName java.lang.String java.lang.String
StackMap stack:
aload 0
ldc ""
putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
5: StackMap locals:
StackMap stack:
aload 2
ifnonnull 8
6: aload 0
ldc ""
putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 12
10: aload 0
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "##"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
13: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 14: aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 17
15: aload 3
ldc "ROOT"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: goto 20
17: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 3
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
bipush 47
18: bipush 35
19: invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
20: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 23
21: aload 3
ldc "##"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
22: aload 3
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
23: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
24: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/catalina/util/ContextName;
0 25 1 path Ljava/lang/String;
0 25 2 version Ljava/lang/String;
14 25 3 tmp Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
path
version
public java.lang.String getBaseName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/util/ContextName;
public java.lang.String getPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/util/ContextName;
public java.lang.String getVersion();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/util/ContextName;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/util/ContextName;
public java.lang.String getDisplayName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: ldc ""
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
2: aload 1
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: goto 5
4: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
aload 0
getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 8
6: aload 1
ldc "##"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 1
aload 0
getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/catalina/util/ContextName;
1 9 1 tmp Ljava/lang/StringBuilder;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.util.ContextName.getDisplayName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/util/ContextName;
public static org.apache.catalina.util.ContextName (java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/catalina/util/ContextName;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "\\\\"
ldc "/"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
1: goto 3
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
3: StackMap locals:
StackMap stack:
aload 0
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
4: aload 0
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 5: iload 1
ifle 7
6: aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
7: StackMap locals: int
StackMap stack:
new org.apache.catalina.util.ContextName
dup
aload 0
iconst_1
invokespecial org.apache.catalina.util.ContextName.<init>:(Ljava/lang/String;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 path Ljava/lang/String;
5 8 1 lastSegment I
MethodParameters:
Name Flags
path
}
SourceFile: "ContextName.java"