class sun.nio.fs.UnixFileModeAttribute
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.UnixFileModeAttribute
super_class: java.lang.Object
{
static final int ALL_PERMISSIONS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 511
static final int ALL_READWRITE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 438
static final int TEMPFILE_PERMISSIONS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 448
private static volatile int[] $SWITCH_TABLE$java$nio$file$attribute$PosixFilePermission;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/fs/UnixFileModeAttribute;
static int toUnixMode(java.util.Set<java.nio.file.attribute.PosixFilePermission>);
descriptor: (Ljava/util/Set;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 15
StackMap locals: java.util.Set int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.attribute.PosixFilePermission
astore 2
start local 2 3: aload 2
ifnonnull 5
4: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
5: StackMap locals: java.util.Set int java.nio.file.attribute.PosixFilePermission java.util.Iterator
StackMap stack:
invokestatic sun.nio.fs.UnixFileModeAttribute.$SWITCH_TABLE$java$nio$file$attribute$PosixFilePermission:()[I
aload 2
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iaload
tableswitch { // 1 - 9
1: 6
2: 7
3: 8
4: 9
5: 10
6: 11
7: 12
8: 13
9: 14
default: 15
}
6: StackMap locals:
StackMap stack:
iload 1
sipush 256
ior
istore 1
goto 15
7: StackMap locals:
StackMap stack:
iload 1
sipush 128
ior
istore 1
goto 15
8: StackMap locals:
StackMap stack:
iload 1
bipush 64
ior
istore 1
goto 15
9: StackMap locals:
StackMap stack:
iload 1
bipush 32
ior
istore 1
goto 15
10: StackMap locals:
StackMap stack:
iload 1
bipush 16
ior
istore 1
goto 15
11: StackMap locals:
StackMap stack:
iload 1
bipush 8
ior
istore 1
goto 15
12: StackMap locals:
StackMap stack:
iload 1
iconst_4
ior
istore 1
goto 15
13: StackMap locals:
StackMap stack:
iload 1
iconst_2
ior
istore 1
goto 15
14: StackMap locals:
StackMap stack:
iload 1
iconst_1
ior
istore 1
end local 2 15: StackMap locals: java.util.Set int top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
16: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 perms Ljava/util/Set<Ljava/nio/file/attribute/PosixFilePermission;>;
1 17 1 mode I
3 15 2 perm Ljava/nio/file/attribute/PosixFilePermission;
Signature: (Ljava/util/Set<Ljava/nio/file/attribute/PosixFilePermission;>;)I
MethodParameters:
Name Flags
perms
static int toUnixMode(int, java.nio.file.attribute.FileAttribute<?>[]);
descriptor: (I[Ljava/nio/file/attribute/FileAttribute;)I
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: iload 0
istore 2
start local 2 1: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 10
StackMap locals: int java.nio.file.attribute.FileAttribute[] int top int int java.nio.file.attribute.FileAttribute[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
invokeinterface java.nio.file.attribute.FileAttribute.name:()Ljava/lang/String;
astore 7
start local 7 4: aload 7
ldc "posix:permissions"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
aload 7
ldc "unix:permissions"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
5: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface java.nio.file.attribute.FileAttribute.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc "' not supported as initial attribute"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: int java.nio.file.attribute.FileAttribute[] int java.nio.file.attribute.FileAttribute int int java.nio.file.attribute.FileAttribute[] java.lang.String
StackMap stack:
aload 3
invokeinterface java.nio.file.attribute.FileAttribute.value:()Ljava/lang/Object;
checkcast java.util.Set
invokestatic sun.nio.fs.UnixFileModeAttribute.toUnixMode:(Ljava/util/Set;)I
istore 2
end local 7 end local 3 9: iinc 4 1
StackMap locals: int java.nio.file.attribute.FileAttribute[] int top int int java.nio.file.attribute.FileAttribute[]
StackMap stack:
10: iload 4
iload 5
if_icmplt 2
11: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 defaultMode I
0 12 1 attrs [Ljava/nio/file/attribute/FileAttribute;
1 12 2 mode I
3 9 3 attr Ljava/nio/file/attribute/FileAttribute<*>;
4 9 7 name Ljava/lang/String;
Signature: (I[Ljava/nio/file/attribute/FileAttribute<*>;)I
MethodParameters:
Name Flags
defaultMode
attrs
static int[] $SWITCH_TABLE$java$nio$file$attribute$PosixFilePermission();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.nio.fs.UnixFileModeAttribute.$SWITCH_TABLE$java$nio$file$attribute$PosixFilePermission:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic java.nio.file.attribute.PosixFilePermission.values:()[Ljava/nio/file/attribute/PosixFilePermission;
arraylength
newarray 10
astore 0
2: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.GROUP_EXECUTE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
bipush 6
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.GROUP_READ:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iconst_4
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.GROUP_WRITE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iconst_5
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OTHERS_EXECUTE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
bipush 9
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OTHERS_READ:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
bipush 7
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OTHERS_WRITE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
bipush 8
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iconst_3
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OWNER_READ:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iconst_1
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic java.nio.file.attribute.PosixFilePermission.OWNER_WRITE:Ljava/nio/file/attribute/PosixFilePermission;
invokevirtual java.nio.file.attribute.PosixFilePermission.ordinal:()I
iconst_2
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
dup
putstatic sun.nio.fs.UnixFileModeAttribute.$SWITCH_TABLE$java$nio$file$attribute$PosixFilePermission:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
}
SourceFile: "UnixFileModeAttribute.java"