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 java.lang.String FWD_SLASH_REPLACEMENT;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "#"

  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 // org.apache.catalina.util.ContextName this
        start local 1 // java.lang.String name
        start local 2 // boolean stripFileExtension
         0: .line 45
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 47
            aload 1 /* name */
            astore 3 /* tmp1 */
        start local 3 // java.lang.String tmp1
         2: .line 52
            aload 3 /* tmp1 */
            ldc "/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 4
         3: .line 53
            aload 3 /* tmp1 */
            iconst_1
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 3 /* tmp1 */
         4: .line 57
      StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String
      StackMap stack:
            aload 3 /* tmp1 */
            ldc "/"
            ldc "#"
            invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            astore 3 /* tmp1 */
         5: .line 60
            aload 3 /* tmp1 */
            ldc "##"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 6
            ldc ""
            aload 3 /* tmp1 */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         6: .line 61
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            ldc "ROOT"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* tmp1 */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* tmp1 */
         7: .line 65
      StackMap locals:
      StackMap stack:
            iload 2 /* stripFileExtension */
            ifeq 11
         8: .line 66
            aload 3 /* tmp1 */
            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: .line 67
            aload 3 /* tmp1 */
            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: .line 68
      StackMap locals:
      StackMap stack:
            aload 3 /* tmp1 */
            iconst_0
            aload 3 /* tmp1 */
            invokevirtual java.lang.String.length:()I
            iconst_4
            isub
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 3 /* tmp1 */
        11: .line 71
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 3 /* tmp1 */
            putfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
        12: .line 75
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
            ldc "##"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 5 /* versionIndex */
        start local 5 // int versionIndex
        13: .line 76
            iload 5 /* versionIndex */
            iconst_m1
            if_icmple 17
        14: .line 77
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
            iload 5 /* versionIndex */
            iconst_2
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
        15: .line 78
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
            iconst_0
            iload 5 /* versionIndex */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 4 /* tmp2 */
        start local 4 // java.lang.String tmp2
        16: .line 79
            goto 19
        end local 4 // java.lang.String tmp2
        17: .line 80
      StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String top int
      StackMap stack:
            aload 0 /* this */
            ldc ""
            putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
        18: .line 81
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
            astore 4 /* tmp2 */
        start local 4 // java.lang.String tmp2
        19: .line 84
      StackMap locals: org.apache.catalina.util.ContextName java.lang.String int java.lang.String java.lang.String int
      StackMap stack:
            ldc "ROOT"
            aload 4 /* tmp2 */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 22
        20: .line 85
            aload 0 /* this */
            ldc ""
            putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
        21: .line 86
            goto 23
        22: .line 87
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new java.lang.StringBuilder
            dup
            ldc "/"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* tmp2 */
            ldc "#"
            ldc "/"
            invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)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: .line 90
      StackMap locals:
      StackMap stack:
            iload 5 /* versionIndex */
            iconst_m1
            if_icmple 26
        24: .line 91
            aload 0 /* this */
            new java.lang.StringBuilder
            dup
            aload 0 /* this */
            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 /* this */
            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: .line 92
            goto 27
        26: .line 93
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
        27: .line 95
      StackMap locals:
      StackMap stack:
            return
        end local 5 // int versionIndex
        end local 4 // java.lang.String tmp2
        end local 3 // java.lang.String tmp1
        end local 2 // boolean stripFileExtension
        end local 1 // java.lang.String name
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
        start local 1 // java.lang.String path
        start local 2 // java.lang.String version
         0: .line 103
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 105
            aload 1 /* path */
            ifnull 2
            ldc "/"
            aload 1 /* path */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 2
            ldc "/ROOT"
            aload 1 /* path */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         2: .line 106
      StackMap locals: org.apache.catalina.util.ContextName java.lang.String java.lang.String
      StackMap stack:
            aload 0 /* this */
            ldc ""
            putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
         3: .line 107
            goto 5
         4: .line 108
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* path */
            putfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
         5: .line 112
      StackMap locals:
      StackMap stack:
            aload 2 /* version */
            ifnonnull 8
         6: .line 113
            aload 0 /* this */
            ldc ""
            putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
         7: .line 114
            goto 9
         8: .line 115
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* version */
            putfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
         9: .line 119
      StackMap locals:
      StackMap stack:
            ldc ""
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 12
        10: .line 120
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            putfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
        11: .line 121
            goto 13
        12: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new java.lang.StringBuilder
            dup
            aload 0 /* this */
            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 /* this */
            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: .line 126
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            astore 3 /* tmp */
        start local 3 // java.lang.StringBuilder tmp
        14: .line 127
            ldc ""
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 17
        15: .line 128
            aload 3 /* tmp */
            ldc "ROOT"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        16: .line 129
            goto 20
        17: .line 130
      StackMap locals: java.lang.StringBuilder
      StackMap stack:
            aload 3 /* tmp */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            iconst_1
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            ldc "/"
        18: .line 131
            ldc "#"
        19: .line 130
            invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        20: .line 133
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            invokevirtual java.lang.String.length:()I
            ifle 23
        21: .line 134
            aload 3 /* tmp */
            ldc "##"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        22: .line 135
            aload 3 /* tmp */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        23: .line 137
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 3 /* tmp */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            putfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
        24: .line 138
            return
        end local 3 // java.lang.StringBuilder tmp
        end local 2 // java.lang.String version
        end local 1 // java.lang.String path
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 141
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.baseName:Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 145
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 149
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 153
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.name:Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 157
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            astore 1 /* tmp */
        start local 1 // java.lang.StringBuilder tmp
         1: .line 158
            ldc ""
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         2: .line 159
            aload 1 /* tmp */
            bipush 47
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
         3: .line 160
            goto 5
         4: .line 161
      StackMap locals: java.lang.StringBuilder
      StackMap stack:
            aload 1 /* tmp */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.path:Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
         5: .line 164
      StackMap locals:
      StackMap stack:
            ldc ""
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 8
         6: .line 165
            aload 1 /* tmp */
            ldc "##"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
         7: .line 166
            aload 1 /* tmp */
            aload 0 /* this */
            getfield org.apache.catalina.util.ContextName.version:Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
         8: .line 169
      StackMap locals:
      StackMap stack:
            aload 1 /* tmp */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 1 // java.lang.StringBuilder tmp
        end local 0 // org.apache.catalina.util.ContextName this
      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 // org.apache.catalina.util.ContextName this
         0: .line 174
            aload 0 /* this */
            invokevirtual org.apache.catalina.util.ContextName.getDisplayName:()Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.util.ContextName this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/util/ContextName;

  public static org.apache.catalina.util.ContextName extractFromPath(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 // java.lang.String path
         0: .line 188
            aload 0 /* path */
            ldc "\\\\"
            ldc "/"
            invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            astore 0 /* path */
         1: .line 190
            goto 3
         2: .line 191
      StackMap locals:
      StackMap stack:
            aload 0 /* path */
            iconst_0
            aload 0 /* path */
            invokevirtual java.lang.String.length:()I
            iconst_1
            isub
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 0 /* path */
         3: .line 190
      StackMap locals:
      StackMap stack:
            aload 0 /* path */
            ldc "/"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifne 2
         4: .line 194
            aload 0 /* path */
            bipush 47
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 1 /* lastSegment */
        start local 1 // int lastSegment
         5: .line 195
            iload 1 /* lastSegment */
            ifle 7
         6: .line 196
            aload 0 /* path */
            iload 1 /* lastSegment */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 0 /* path */
         7: .line 199
      StackMap locals: int
      StackMap stack:
            new org.apache.catalina.util.ContextName
            dup
            aload 0 /* path */
            iconst_1
            invokespecial org.apache.catalina.util.ContextName.<init>:(Ljava/lang/String;Z)V
            areturn
        end local 1 // int lastSegment
        end local 0 // java.lang.String path
      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"