public final class jdk.internal.module.Resources
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.module.Resources
  super_class: java.lang.Object
{
  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.module.Resources this
         0: .line 40
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.internal.module.Resources this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/module/Resources;

  public static boolean canEncapsulate(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // java.lang.String name
         0: .line 48
            aload 0 /* name */
            invokevirtual java.lang.String.length:()I
            istore 1 /* len */
        start local 1 // int len
         1: .line 49
            iload 1 /* len */
            bipush 6
            if_icmple 3
            aload 0 /* name */
            ldc ".class"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifeq 3
         2: .line 50
            iconst_0
            ireturn
         3: .line 52
      StackMap locals: int
      StackMap stack:
            aload 0 /* name */
            invokestatic jdk.internal.module.Resources.toPackageName:(Ljava/lang/String;)Ljava/lang/String;
            invokestatic jdk.internal.module.Checks.isPackageName:(Ljava/lang/String;)Z
            ireturn
        end local 1 // int len
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  name  Ljava/lang/String;
            1    4     1   len  I
    MethodParameters:
      Name  Flags
      name  

  public static java.lang.String toPackageName(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // java.lang.String name
         0: .line 63
            aload 0 /* name */
            bipush 47
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 1 /* index */
        start local 1 // int index
         1: .line 64
            iload 1 /* index */
            iconst_m1
            if_icmpeq 2
            iload 1 /* index */
            aload 0 /* name */
            invokevirtual java.lang.String.length:()I
            iconst_1
            isub
            if_icmpne 3
         2: .line 65
      StackMap locals: int
      StackMap stack:
            ldc ""
            areturn
         3: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* name */
            iconst_0
            iload 1 /* index */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            ldc "/"
            ldc "."
            invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
            areturn
        end local 1 // int index
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   name  Ljava/lang/String;
            1    4     1  index  I
    MethodParameters:
      Name  Flags
      name  

  public static java.lang.String toResourceName(java.nio.file.Path, java.nio.file.Path);
    descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // java.nio.file.Path dir
        start local 1 // java.nio.file.Path file
         0: .line 78
            aload 0 /* dir */
            aload 1 /* file */
            invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
         1: .line 79
            invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
         2: .line 80
            getstatic java.io.File.separatorChar:C
            bipush 47
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
         3: .line 78
            astore 2 /* s */
        start local 2 // java.lang.String s
         4: .line 81
            aload 2 /* s */
            invokevirtual java.lang.String.isEmpty:()Z
            ifne 6
            aload 1 /* file */
            iconst_0
            anewarray java.nio.file.LinkOption
            invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
            ifeq 6
         5: .line 82
            new java.lang.StringBuilder
            dup
            aload 2 /* s */
            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;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* s */
         6: .line 83
      StackMap locals: java.lang.String
      StackMap stack:
            aload 2 /* s */
            areturn
        end local 2 // java.lang.String s
        end local 1 // java.nio.file.Path file
        end local 0 // java.nio.file.Path dir
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0   dir  Ljava/nio/file/Path;
            0    7     1  file  Ljava/nio/file/Path;
            4    7     2     s  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      dir   
      file  

  public static java.nio.file.Path toFilePath(java.nio.file.Path, java.lang.String);
    descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=6, args_size=2
        start local 0 // java.nio.file.Path dir
        start local 1 // java.lang.String name
         0: .line 93
            aload 1 /* name */
            ldc "/"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            istore 2 /* expectDirectory */
        start local 2 // boolean expectDirectory
         1: .line 94
            iload 2 /* expectDirectory */
            ifeq 3
         2: .line 95
            aload 1 /* name */
            iconst_0
            aload 1 /* name */
            invokevirtual java.lang.String.length:()I
            iconst_1
            isub
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 1 /* name */
         3: .line 97
      StackMap locals: int
      StackMap stack:
            aload 0 /* dir */
            invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
            aload 1 /* name */
            invokestatic jdk.internal.module.Resources.toSafeFilePath:(Ljava/nio/file/FileSystem;Ljava/lang/String;)Ljava/nio/file/Path;
            astore 3 /* path */
        start local 3 // java.nio.file.Path path
         4: .line 98
            aload 3 /* path */
            ifnull 12
         5: .line 99
            aload 0 /* dir */
            aload 3 /* path */
            invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
            astore 4 /* file */
        start local 4 // java.nio.file.Path file
         6: .line 102
            aload 4 /* file */
            ldc Ljava/nio/file/attribute/BasicFileAttributes;
            iconst_0
            anewarray java.nio.file.LinkOption
            invokestatic java.nio.file.Files.readAttributes:(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes;
            astore 5 /* attrs */
        start local 5 // java.nio.file.attribute.BasicFileAttributes attrs
         7: .line 103
            aload 5 /* attrs */
            invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
            ifne 9
         8: .line 104
            aload 5 /* attrs */
            invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
            ifne 12
            iload 2 /* expectDirectory */
            ifne 12
         9: .line 105
      StackMap locals: java.nio.file.Path java.nio.file.Path java.nio.file.attribute.BasicFileAttributes
      StackMap stack:
            aload 4 /* file */
        10: areturn
        end local 5 // java.nio.file.attribute.BasicFileAttributes attrs
        11: .line 106
      StackMap locals: java.nio.file.Path java.lang.String int java.nio.file.Path java.nio.file.Path
      StackMap stack: java.nio.file.NoSuchFileException
            pop
        end local 4 // java.nio.file.Path file
        12: .line 108
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 3 // java.nio.file.Path path
        end local 2 // boolean expectDirectory
        end local 1 // java.lang.String name
        end local 0 // java.nio.file.Path dir
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   13     0              dir  Ljava/nio/file/Path;
            0   13     1             name  Ljava/lang/String;
            1   13     2  expectDirectory  Z
            4   13     3             path  Ljava/nio/file/Path;
            6   12     4             file  Ljava/nio/file/Path;
            7   11     5            attrs  Ljava/nio/file/attribute/BasicFileAttributes;
      Exception table:
        from    to  target  type
           6    10      11  Class java.nio.file.NoSuchFileException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dir   
      name  

  private static java.nio.file.Path toSafeFilePath(java.nio.file.FileSystem, java.lang.String);
    descriptor: (Ljava/nio/file/FileSystem;Ljava/lang/String;)Ljava/nio/file/Path;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=6, args_size=2
        start local 0 // java.nio.file.FileSystem fs
        start local 1 // java.lang.String name
         0: .line 122
            iconst_0
            istore 3 /* off */
        start local 3 // int off
         1: .line 123
            goto 6
        start local 2 // int next
         2: .line 124
      StackMap locals: int int
      StackMap stack:
            iload 2 /* next */
            iload 3 /* off */
            isub
            istore 4 /* len */
        start local 4 // int len
         3: .line 125
            aload 1 /* name */
            iload 3 /* off */
            iload 4 /* len */
            invokestatic jdk.internal.module.Resources.mayTranslate:(Ljava/lang/String;II)Z
            ifne 5
         4: .line 126
            aconst_null
            areturn
         5: .line 128
      StackMap locals: int
      StackMap stack:
            iload 2 /* next */
            iconst_1
            iadd
            istore 3 /* off */
        end local 4 // int len
        end local 2 // int next
         6: .line 123
      StackMap locals: java.nio.file.FileSystem java.lang.String top int
      StackMap stack:
            aload 1 /* name */
            bipush 47
            iload 3 /* off */
            invokevirtual java.lang.String.indexOf:(II)I
            dup
            istore 2 /* next */
        start local 2 // int next
         7: iconst_m1
            if_icmpne 2
         8: .line 130
            aload 1 /* name */
            invokevirtual java.lang.String.length:()I
            iload 3 /* off */
            isub
            istore 4 /* rem */
        start local 4 // int rem
         9: .line 131
            aload 1 /* name */
            iload 3 /* off */
            iload 4 /* rem */
            invokestatic jdk.internal.module.Resources.mayTranslate:(Ljava/lang/String;II)Z
            ifne 11
        10: .line 132
            aconst_null
            areturn
        11: .line 137
      StackMap locals: java.nio.file.FileSystem java.lang.String int int int
      StackMap stack:
            getstatic java.io.File.separatorChar:C
            bipush 47
            if_icmpne 14
        12: .line 138
            aload 0 /* fs */
            aload 1 /* name */
            iconst_0
            anewarray java.lang.String
            invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 5 /* path */
        start local 5 // java.nio.file.Path path
        13: .line 139
            goto 17
        end local 5 // java.nio.file.Path path
        14: .line 141
      StackMap locals:
      StackMap stack:
            aload 1 /* name */
            getstatic java.io.File.separator:Ljava/lang/String;
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 16
        15: .line 142
            aconst_null
            areturn
        16: .line 143
      StackMap locals:
      StackMap stack:
            aload 0 /* fs */
            aload 1 /* name */
            bipush 47
            getstatic java.io.File.separatorChar:C
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            iconst_0
            anewarray java.lang.String
            invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 5 /* path */
        start local 5 // java.nio.file.Path path
        17: .line 147
      StackMap locals: java.nio.file.Path
      StackMap stack:
            aload 5 /* path */
            invokeinterface java.nio.file.Path.getRoot:()Ljava/nio/file/Path;
            ifnonnull 18
            aload 5 /* path */
            goto 19
      StackMap locals:
      StackMap stack:
        18: aconst_null
      StackMap locals:
      StackMap stack: java.nio.file.Path
        19: areturn
        end local 5 // java.nio.file.Path path
        end local 4 // int rem
        end local 3 // int off
        end local 2 // int next
        end local 1 // java.lang.String name
        end local 0 // java.nio.file.FileSystem fs
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   20     0    fs  Ljava/nio/file/FileSystem;
            0   20     1  name  Ljava/lang/String;
            2    6     2  next  I
            7   20     2  next  I
            1   20     3   off  I
            3    6     4   len  I
            9   20     4   rem  I
           13   14     5  path  Ljava/nio/file/Path;
           17   20     5  path  Ljava/nio/file/Path;
    MethodParameters:
      Name  Flags
      fs    
      name  

  private static boolean mayTranslate(java.lang.String, int, int);
    descriptor: (Ljava/lang/String;II)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=3
        start local 0 // java.lang.String name
        start local 1 // int off
        start local 2 // int len
         0: .line 155
            iload 2 /* len */
            iconst_2
            if_icmpgt 10
         1: .line 156
            iload 2 /* len */
            ifne 3
         2: .line 157
            iconst_0
            ireturn
         3: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* name */
            iload 1 /* off */
            invokevirtual java.lang.String.charAt:(I)C
            bipush 46
            if_icmpne 4
            iconst_1
            goto 5
      StackMap locals:
      StackMap stack:
         4: iconst_0
      StackMap locals:
      StackMap stack: int
         5: istore 3 /* starsWithDot */
        start local 3 // boolean starsWithDot
         6: .line 159
            iload 2 /* len */
            iconst_1
            if_icmpne 8
            iload 3 /* starsWithDot */
            ifeq 8
         7: .line 160
            iconst_0
            ireturn
         8: .line 161
      StackMap locals: int
      StackMap stack:
            iload 2 /* len */
            iconst_2
            if_icmpne 10
            iload 3 /* starsWithDot */
            ifeq 10
            aload 0 /* name */
            iload 1 /* off */
            iconst_1
            iadd
            invokevirtual java.lang.String.charAt:(I)C
            bipush 46
            if_icmpne 10
         9: .line 162
            iconst_0
            ireturn
        end local 3 // boolean starsWithDot
        10: .line 164
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 2 // int len
        end local 1 // int off
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   11     0          name  Ljava/lang/String;
            0   11     1           off  I
            0   11     2           len  I
            6   10     3  starsWithDot  Z
    MethodParameters:
      Name  Flags
      name  
      off   
      len   
}
SourceFile: "Resources.java"