public class org.graalvm.compiler.debug.PathUtilities
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.debug.PathUtilities
super_class: java.lang.Object
{
private static final int MAX_FILE_NAME_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 242
private static final java.lang.String ELLIPSIS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "..."
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/graalvm/compiler/debug/PathUtilities;
public static java.lang.String sanitizeFileName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
invokeinterface java.nio.file.Path.getNameCount:()I
ifne 5
2: aload 0
3: areturn
end local 1 4: StackMap locals:
StackMap stack: java.nio.file.InvalidPathException
pop
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.String.length:()I
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 6: iconst_0
istore 2
start local 2 7: goto 16
8: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 9: iload 3
getstatic java.io.File.separatorChar:C
if_icmpeq 14
iload 3
bipush 32
if_icmpeq 14
iload 3
invokestatic java.lang.Character.isISOControl:(C)Z
ifne 14
10: iload 3
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
pop
11: aload 1
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: goto 15
13: StackMap locals: java.lang.String java.lang.StringBuilder int int
StackMap stack: java.nio.file.InvalidPathException
pop
14: StackMap locals:
StackMap stack:
aload 1
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 15: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
16: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 8
end local 2 17: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 name Ljava/lang/String;
1 4 1 path Ljava/nio/file/Path;
6 18 1 buf Ljava/lang/StringBuilder;
7 17 2 i I
9 15 3 c C
Exception table:
from to target type
0 3 4 Class java.nio.file.InvalidPathException
10 12 13 Class java.nio.file.InvalidPathException
MethodParameters:
Name Flags
name
static java.nio.file.Path createUnique(org.graalvm.compiler.options.OptionValues, org.graalvm.compiler.options.OptionKey<java.lang.String>, java.lang.String, java.lang.String, java.lang.String, boolean);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/nio/file/Path;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=14, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: ldc ""
astore 6
start local 6 1: iconst_1
istore 7
start local 7 2: aload 2
ifnonnull 7
3: aload 1
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 4: aload 8
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 9
start local 9 5: aload 8
iload 9
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 8
end local 9 6: goto 8
end local 8 7: StackMap locals: java.lang.String int
StackMap stack:
aload 2
astore 8
start local 8 8: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
iadd
aload 8
invokevirtual java.lang.String.length:()I
iadd
ldc "[]"
invokevirtual java.lang.String.length:()I
iadd
istore 9
start local 9 9: sipush 242
iload 9
isub
istore 10
start local 10 10: iload 10
ldc "..."
invokevirtual java.lang.String.length:()I
if_icmpge 15
11: new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 12
start local 12 12: sipush 242
aload 12
invokevirtual java.lang.String.length:()I
isub
aload 8
invokevirtual java.lang.String.length:()I
invokestatic java.lang.Math.min:(II)I
istore 13
start local 13 13: new java.lang.StringBuilder
dup
aload 8
iconst_0
iload 13
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
astore 11
end local 13 end local 12 start local 11 14: goto 22
end local 11 15: StackMap locals: int int
StackMap stack:
aload 3
ifnonnull 18
16: new java.lang.StringBuilder
dup
aload 8
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
astore 11
start local 11 17: goto 22
end local 11 18: StackMap locals:
StackMap stack:
aload 3
astore 12
start local 12 19: aload 3
invokevirtual java.lang.String.length:()I
iload 10
if_icmple 21
20: new java.lang.StringBuilder
dup
aload 3
iconst_0
iload 10
ldc "..."
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 12
21: StackMap locals: org.graalvm.compiler.options.OptionValues org.graalvm.compiler.options.OptionKey java.lang.String java.lang.String java.lang.String int java.lang.String int java.lang.String int int top java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 8
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
astore 11
end local 12 start local 11 22: StackMap locals: org.graalvm.compiler.options.OptionValues org.graalvm.compiler.options.OptionKey java.lang.String java.lang.String java.lang.String int java.lang.String int java.lang.String int int java.lang.String
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.debug.DebugOptions.getDumpDirectory:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/file/Path;
astore 12
start local 12 23: aload 12
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 11
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 13
start local 13 24: iload 5
ifeq 27
25: aload 13
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
26: areturn
27: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 13
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createFile:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
28: areturn
29: StackMap locals:
StackMap stack: java.nio.file.FileAlreadyExistsException
pop
30: new java.lang.StringBuilder
dup
ldc "_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
iinc 7 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
end local 13 end local 12 end local 11 end local 10 end local 9 31: goto 8
end local 8 end local 7 end local 6 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 32 0 options Lorg/graalvm/compiler/options/OptionValues;
0 32 1 baseNameOption Lorg/graalvm/compiler/options/OptionKey<Ljava/lang/String;>;
0 32 2 id Ljava/lang/String;
0 32 3 label Ljava/lang/String;
0 32 4 ext Ljava/lang/String;
0 32 5 createDirectory Z
1 32 6 uniqueTag Ljava/lang/String;
2 32 7 dumpCounter I
4 7 8 prefix Ljava/lang/String;
8 32 8 prefix Ljava/lang/String;
5 6 9 slash I
9 31 9 fileNameLengthWithoutLabel I
10 31 10 labelLengthLimit I
14 15 11 fileName Ljava/lang/String;
17 18 11 fileName Ljava/lang/String;
22 31 11 fileName Ljava/lang/String;
12 14 12 suffix Ljava/lang/String;
13 14 13 idLengthLimit I
19 22 12 adjustedLabel Ljava/lang/String;
23 31 12 dumpDir Ljava/nio/file/Path;
24 31 13 result Ljava/nio/file/Path;
Exception table:
from to target type
24 26 29 Class java.nio.file.FileAlreadyExistsException
27 28 29 Class java.nio.file.FileAlreadyExistsException
Exceptions:
throws java.io.IOException
Signature: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/nio/file/Path;
MethodParameters:
Name Flags
options
baseNameOption
id
label
ext
createDirectory
}
SourceFile: "PathUtilities.java"