final class jdk.internal.jrtfs.JrtUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.jrtfs.JrtUtils
  super_class: java.lang.Object
{
  private static final java.lang.String regexMetaChars;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: ".^$+{[]|()"

  private static final java.lang.String globMetaChars;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "\\*?[{"

  private static final char EOL;
    descriptor: C
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 0

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.jrtfs.JrtUtils this
         0: .line 38
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.internal.jrtfs.JrtUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/jrtfs/JrtUtils;

  private static boolean isRegexMeta(char);
    descriptor: (C)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // char c
         0: .line 43
            ldc ".^$+{[]|()"
            iload 0 /* c */
            invokevirtual java.lang.String.indexOf:(I)I
            iconst_m1
            if_icmpeq 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // char c
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0     c  C
    MethodParameters:
      Name  Flags
      c     

  private static boolean isGlobMeta(char);
    descriptor: (C)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // char c
         0: .line 46
            ldc "\\*?[{"
            iload 0 /* c */
            invokevirtual java.lang.String.indexOf:(I)I
            iconst_m1
            if_icmpeq 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // char c
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0     c  C
    MethodParameters:
      Name  Flags
      c     

  private static char next(java.lang.String, int);
    descriptor: (Ljava/lang/String;I)C
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.lang.String glob
        start local 1 // int i
         0: .line 50
            iload 1 /* i */
            aload 0 /* glob */
            invokevirtual java.lang.String.length:()I
            if_icmpge 2
         1: .line 51
            aload 0 /* glob */
            iload 1 /* i */
            invokevirtual java.lang.String.charAt:(I)C
            ireturn
         2: .line 53
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 1 // int i
        end local 0 // java.lang.String glob
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  glob  Ljava/lang/String;
            0    3     1     i  I
    MethodParameters:
      Name  Flags
      glob  
      i     

  public static java.lang.String toRegexPattern(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=8, args_size=1
        start local 0 // java.lang.String globPattern
         0: .line 62
            iconst_0
            istore 1 /* inGroup */
        start local 1 // boolean inGroup
         1: .line 63
            new java.lang.StringBuilder
            dup
            ldc "^"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            astore 2 /* regex */
        start local 2 // java.lang.StringBuilder regex
         2: .line 65
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         3: .line 66
            goto 92
         4: .line 67
      StackMap locals: int java.lang.StringBuilder int
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            iinc 3 /* i */ 1
            invokevirtual java.lang.String.charAt:(I)C
            istore 4 /* c */
        start local 4 // char c
         5: .line 68
            iload 4 /* c */
            lookupswitch { // 8
                   42: 81
                   44: 76
                   47: 15
                   63: 87
                   91: 17
                   92: 6
                  123: 63
                  125: 70
              default: 89
          }
         6: .line 71
      StackMap locals: int
      StackMap stack:
            iload 3 /* i */
            aload 0 /* globPattern */
            invokevirtual java.lang.String.length:()I
            if_icmpne 10
         7: .line 72
            new java.util.regex.PatternSyntaxException
            dup
            ldc "No character to escape"
         8: .line 73
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
         9: .line 72
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        10: .line 75
      StackMap locals:
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            iinc 3 /* i */ 1
            invokevirtual java.lang.String.charAt:(I)C
            istore 5 /* next */
        start local 5 // char next
        11: .line 76
            iload 5 /* next */
            invokestatic jdk.internal.jrtfs.JrtUtils.isGlobMeta:(C)Z
            ifne 12
            iload 5 /* next */
            invokestatic jdk.internal.jrtfs.JrtUtils.isRegexMeta:(C)Z
            ifeq 13
        12: .line 77
      StackMap locals: int
      StackMap stack:
            aload 2 /* regex */
            bipush 92
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        13: .line 79
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            iload 5 /* next */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        14: .line 80
            goto 92
        end local 5 // char next
        15: .line 82
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            iload 4 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        16: .line 83
            goto 92
        17: .line 86
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            ldc "[[^/]&&["
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        18: .line 87
            aload 0 /* globPattern */
            iload 3 /* i */
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            bipush 94
            if_icmpne 22
        19: .line 89
            aload 2 /* regex */
            ldc "\\^"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        20: .line 90
            iinc 3 /* i */ 1
        21: .line 91
            goto 28
        22: .line 93
      StackMap locals:
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            bipush 33
            if_icmpne 25
        23: .line 94
            aload 2 /* regex */
            bipush 94
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        24: .line 95
            iinc 3 /* i */ 1
        25: .line 98
      StackMap locals:
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            bipush 45
            if_icmpne 28
        26: .line 99
            aload 2 /* regex */
            bipush 45
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        27: .line 100
            iinc 3 /* i */ 1
        28: .line 103
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 6 /* hasRangeStart */
        start local 6 // boolean hasRangeStart
        29: .line 104
            iconst_0
            istore 7 /* last */
        start local 7 // char last
        30: .line 105
            goto 58
        31: .line 106
      StackMap locals: java.lang.String int java.lang.StringBuilder int int top int int
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            iinc 3 /* i */ 1
            invokevirtual java.lang.String.charAt:(I)C
            istore 4 /* c */
        32: .line 107
            iload 4 /* c */
            bipush 93
            if_icmpne 34
        33: .line 108
            goto 59
        34: .line 110
      StackMap locals:
      StackMap stack:
            iload 4 /* c */
            bipush 47
            if_icmpne 38
        35: .line 111
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Explicit 'name separator' in class"
        36: .line 112
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
        37: .line 111
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        38: .line 115
      StackMap locals:
      StackMap stack:
            iload 4 /* c */
            bipush 92
            if_icmpeq 40
            iload 4 /* c */
            bipush 91
            if_icmpeq 40
        39: .line 116
            iload 4 /* c */
            bipush 38
            if_icmpne 41
            aload 0 /* globPattern */
            iload 3 /* i */
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            bipush 38
            if_icmpne 41
        40: .line 118
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            bipush 92
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        41: .line 120
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            iload 4 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        42: .line 122
            iload 4 /* c */
            bipush 45
            if_icmpne 56
        43: .line 123
            iload 6 /* hasRangeStart */
            ifne 47
        44: .line 124
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Invalid range"
        45: .line 125
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
        46: .line 124
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        47: .line 127
      StackMap locals:
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            iinc 3 /* i */ 1
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            dup
            istore 4 /* c */
            ifeq 59
            iload 4 /* c */
            bipush 93
            if_icmpne 49
        48: .line 128
            goto 59
        49: .line 130
      StackMap locals:
      StackMap stack:
            iload 4 /* c */
            iload 7 /* last */
            if_icmpge 53
        50: .line 131
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Invalid range"
        51: .line 132
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_3
            isub
        52: .line 131
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        53: .line 134
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            iload 4 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        54: .line 135
            iconst_0
            istore 6 /* hasRangeStart */
        55: .line 136
            goto 58
        56: .line 137
      StackMap locals:
      StackMap stack:
            iconst_1
            istore 6 /* hasRangeStart */
        57: .line 138
            iload 4 /* c */
            istore 7 /* last */
        58: .line 105
      StackMap locals:
      StackMap stack:
            iload 3 /* i */
            aload 0 /* globPattern */
            invokevirtual java.lang.String.length:()I
            if_icmplt 31
        59: .line 141
      StackMap locals:
      StackMap stack:
            iload 4 /* c */
            bipush 93
            if_icmpeq 61
        60: .line 142
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Missing ']"
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        61: .line 144
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            ldc "]]"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        62: .line 145
            goto 92
        end local 7 // char last
        end local 6 // boolean hasRangeStart
        63: .line 147
      StackMap locals: java.lang.String int java.lang.StringBuilder int int
      StackMap stack:
            iload 1 /* inGroup */
            ifeq 67
        64: .line 148
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Cannot nest groups"
        65: .line 149
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
        66: .line 148
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        67: .line 151
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            ldc "(?:(?:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        68: .line 152
            iconst_1
            istore 1 /* inGroup */
        69: .line 153
            goto 92
        70: .line 155
      StackMap locals:
      StackMap stack:
            iload 1 /* inGroup */
            ifeq 74
        71: .line 156
            aload 2 /* regex */
            ldc "))"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        72: .line 157
            iconst_0
            istore 1 /* inGroup */
        73: .line 158
            goto 92
        74: .line 159
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            bipush 125
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        75: .line 161
            goto 92
        76: .line 163
      StackMap locals:
      StackMap stack:
            iload 1 /* inGroup */
            ifeq 79
        77: .line 164
            aload 2 /* regex */
            ldc ")|(?:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        78: .line 165
            goto 92
        79: .line 166
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            bipush 44
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        80: .line 168
            goto 92
        81: .line 170
      StackMap locals:
      StackMap stack:
            aload 0 /* globPattern */
            iload 3 /* i */
            invokestatic jdk.internal.jrtfs.JrtUtils.next:(Ljava/lang/String;I)C
            bipush 42
            if_icmpne 85
        82: .line 172
            aload 2 /* regex */
            ldc ".*"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        83: .line 173
            iinc 3 /* i */ 1
        84: .line 174
            goto 92
        85: .line 176
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            ldc "[^/]*"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        86: .line 178
            goto 92
        87: .line 180
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            ldc "[^/]"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        88: .line 181
            goto 92
        89: .line 183
      StackMap locals:
      StackMap stack:
            iload 4 /* c */
            invokestatic jdk.internal.jrtfs.JrtUtils.isRegexMeta:(C)Z
            ifeq 91
        90: .line 184
            aload 2 /* regex */
            bipush 92
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        91: .line 186
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            iload 4 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        end local 4 // char c
        92: .line 66
      StackMap locals:
      StackMap stack:
            iload 3 /* i */
            aload 0 /* globPattern */
            invokevirtual java.lang.String.length:()I
            if_icmplt 4
        93: .line 189
            iload 1 /* inGroup */
            ifeq 95
        94: .line 190
            new java.util.regex.PatternSyntaxException
            dup
            ldc "Missing '}"
            aload 0 /* globPattern */
            iload 3 /* i */
            iconst_1
            isub
            invokespecial java.util.regex.PatternSyntaxException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
            athrow
        95: .line 192
      StackMap locals:
      StackMap stack:
            aload 2 /* regex */
            bipush 36
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 3 // int i
        end local 2 // java.lang.StringBuilder regex
        end local 1 // boolean inGroup
        end local 0 // java.lang.String globPattern
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   96     0    globPattern  Ljava/lang/String;
            1   96     1        inGroup  Z
            2   96     2          regex  Ljava/lang/StringBuilder;
            3   96     3              i  I
            5   92     4              c  C
           11   15     5           next  C
           29   63     6  hasRangeStart  Z
           30   63     7           last  C
    MethodParameters:
             Name  Flags
      globPattern  
}
SourceFile: "JrtUtils.java"