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 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 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 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
bipush 6
if_icmple 3
aload 0
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
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 end local 0 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 0: aload 0
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpeq 2
iload 1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 3
2: StackMap locals: int
StackMap stack:
ldc ""
areturn
3: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 1
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 end local 0 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 start local 1 0: aload 0
aload 1
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
1: invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
2: getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
3: astore 2
start local 2 4: aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
aload 1
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: new java.lang.StringBuilder
dup
aload 2
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
6: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 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 start local 1 0: aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
istore 2
start local 2 1: iload 2
ifeq 3
2: aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
3: StackMap locals: int
StackMap stack:
aload 0
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
aload 1
invokestatic jdk.internal.module.Resources.toSafeFilePath:(Ljava/nio/file/FileSystem;Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 4: aload 3
ifnull 12
5: aload 0
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 6: aload 4
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
start local 5 7: aload 5
invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
ifne 9
8: aload 5
invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
ifne 12
iload 2
ifne 12
9: StackMap locals: java.nio.file.Path java.nio.file.Path java.nio.file.attribute.BasicFileAttributes
StackMap stack:
aload 4
10: areturn
end local 5 11: 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 12: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 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 start local 1 0: iconst_0
istore 3
start local 3 1: goto 6
start local 2 2: StackMap locals: int int
StackMap stack:
iload 2
iload 3
isub
istore 4
start local 4 3: aload 1
iload 3
iload 4
invokestatic jdk.internal.module.Resources.mayTranslate:(Ljava/lang/String;II)Z
ifne 5
4: aconst_null
areturn
5: StackMap locals: int
StackMap stack:
iload 2
iconst_1
iadd
istore 3
end local 4 end local 2 6: StackMap locals: java.nio.file.FileSystem java.lang.String top int
StackMap stack:
aload 1
bipush 47
iload 3
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 2
start local 2 7: iconst_m1
if_icmpne 2
8: aload 1
invokevirtual java.lang.String.length:()I
iload 3
isub
istore 4
start local 4 9: aload 1
iload 3
iload 4
invokestatic jdk.internal.module.Resources.mayTranslate:(Ljava/lang/String;II)Z
ifne 11
10: aconst_null
areturn
11: 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: aload 0
aload 1
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 13: goto 17
end local 5 14: StackMap locals:
StackMap stack:
aload 1
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 16
15: aconst_null
areturn
16: StackMap locals:
StackMap stack:
aload 0
aload 1
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
start local 5 17: StackMap locals: java.nio.file.Path
StackMap stack:
aload 5
invokeinterface java.nio.file.Path.getRoot:()Ljava/nio/file/Path;
ifnonnull 18
aload 5
goto 19
StackMap locals:
StackMap stack:
18: aconst_null
StackMap locals:
StackMap stack: java.nio.file.Path
19: areturn
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 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 start local 1 start local 2 0: iload 2
iconst_2
if_icmpgt 10
1: iload 2
ifne 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
iload 1
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
start local 3 6: iload 2
iconst_1
if_icmpne 8
iload 3
ifeq 8
7: iconst_0
ireturn
8: StackMap locals: int
StackMap stack:
iload 2
iconst_2
if_icmpne 10
iload 3
ifeq 10
aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 10
9: iconst_0
ireturn
end local 3 10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 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"