public class org.jruby.util.io.ModeFlags implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.io.ModeFlags
super_class: java.lang.Object
{
public static final int RDONLY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int WRONLY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int RDWR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int CREAT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int EXCL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int TRUNC;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int APPEND;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int NONBLOCK;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int BINARY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int TMPFILE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int TEXT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 268435456
public static final int ACCMODE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final int flags;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic jnr.constants.platform.OpenFlags.O_RDONLY:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.RDONLY:I
1: getstatic jnr.constants.platform.OpenFlags.O_WRONLY:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.WRONLY:I
2: getstatic jnr.constants.platform.OpenFlags.O_RDWR:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.RDWR:I
3: getstatic jnr.constants.platform.OpenFlags.O_CREAT:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.CREAT:I
4: getstatic jnr.constants.platform.OpenFlags.O_EXCL:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.EXCL:I
5: getstatic jnr.constants.platform.OpenFlags.O_TRUNC:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.TRUNC:I
6: getstatic jnr.constants.platform.OpenFlags.O_APPEND:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.APPEND:I
7: getstatic jnr.constants.platform.OpenFlags.O_NONBLOCK:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
putstatic org.jruby.util.io.ModeFlags.NONBLOCK:I
8: getstatic jnr.constants.platform.OpenFlags.O_BINARY:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.defined:()Z
ifeq 9
getstatic jnr.constants.platform.OpenFlags.O_BINARY:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: putstatic org.jruby.util.io.ModeFlags.BINARY:I
11: getstatic jnr.constants.platform.OpenFlags.O_TMPFILE:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.defined:()Z
ifeq 12
getstatic jnr.constants.platform.OpenFlags.O_TMPFILE:Ljnr/constants/platform/OpenFlags;
invokevirtual jnr.constants.platform.OpenFlags.intValue:()I
goto 13
StackMap locals:
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: putstatic org.jruby.util.io.ModeFlags.TMPFILE:I
14: getstatic org.jruby.util.io.ModeFlags.RDWR:I
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
ior
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
ior
putstatic org.jruby.util.io.ModeFlags.ACCMODE:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
putfield org.jruby.util.io.ModeFlags.flags:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/io/ModeFlags;
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
l2i
putfield org.jruby.util.io.ModeFlags.flags:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/io/ModeFlags;
0 3 1 flags J
Exceptions:
throws org.jruby.util.io.InvalidValueException
MethodParameters:
Name Flags
flags
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic org.jruby.util.io.ModeFlags.getOFlagsFromString:(Ljava/lang/String;)I
putfield org.jruby.util.io.ModeFlags.flags:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/io/ModeFlags;
0 3 1 flagString Ljava/lang/String;
Exceptions:
throws org.jruby.util.io.InvalidValueException
MethodParameters:
Name Flags
flagString
public static int getOFlagsFromString(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: iload 2
ifne 4
3: new org.jruby.util.io.InvalidValueException
dup
invokespecial org.jruby.util.io.InvalidValueException.<init>:()V
athrow
4: StackMap locals: int int
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 3
97: 7
114: 5
119: 9
default: 11
}
5: StackMap locals:
StackMap stack:
iload 1
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
ior
istore 1
6: goto 12
7: StackMap locals:
StackMap stack:
iload 1
getstatic org.jruby.util.io.ModeFlags.APPEND:I
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
ior
getstatic org.jruby.util.io.ModeFlags.CREAT:I
ior
ior
istore 1
8: goto 12
9: StackMap locals:
StackMap stack:
iload 1
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
getstatic org.jruby.util.io.ModeFlags.TRUNC:I
ior
getstatic org.jruby.util.io.ModeFlags.CREAT:I
ior
ior
istore 1
10: goto 12
11: StackMap locals:
StackMap stack:
new org.jruby.util.io.InvalidValueException
dup
invokespecial org.jruby.util.io.InvalidValueException.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
iconst_1
istore 3
start local 3 13: goto 24
14: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 4
43: 17
58: 21
98: 15
116: 19
default: 22
}
15: StackMap locals:
StackMap stack:
iload 1
getstatic org.jruby.util.io.ModeFlags.BINARY:I
ior
istore 1
16: goto 23
17: StackMap locals:
StackMap stack:
iload 1
getstatic org.jruby.util.io.ModeFlags.ACCMODE:I
iconst_m1
ixor
iand
getstatic org.jruby.util.io.ModeFlags.RDWR:I
ior
istore 1
18: goto 23
19: StackMap locals:
StackMap stack:
iload 1
ldc 268435456
ior
istore 1
20: goto 23
21: StackMap locals:
StackMap stack:
goto 25
22: StackMap locals:
StackMap stack:
new org.jruby.util.io.InvalidValueException
dup
invokespecial org.jruby.util.io.InvalidValueException.<init>:()V
athrow
23: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
24: iload 3
iload 2
if_icmplt 14
end local 3 25: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 modesString Ljava/lang/String;
1 26 1 modes I
2 26 2 length I
13 25 3 n I
Exceptions:
throws org.jruby.util.io.InvalidValueException
MethodParameters:
Name Flags
modesString
public static int getOFlagsFromString(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.util.io.ModeFlags.getOFlagsFromString:(Ljava/lang/String;)I
1: ireturn
2: StackMap locals:
StackMap stack: org.jruby.util.io.InvalidValueException
pop
3: aload 0
new java.lang.StringBuilder
dup
ldc "mode string: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 modesString Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class org.jruby.util.io.InvalidValueException
MethodParameters:
Name Flags
runtime
modesString
public static int oflagsFrom(jnr.posix.POSIX, java.nio.channels.Channel);
descriptor: (Ljnr/posix/POSIX;Ljava/nio/channels/Channel;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.util.io.FilenoUtil.filenoFrom:(Ljava/nio/channels/Channel;)I
istore 3
start local 3 1: iload 3
invokestatic org.jruby.util.io.FilenoUtil.isFake:(I)Z
ifne 2
aload 0
invokeinterface jnr.posix.POSIX.isNative:()Z
ifeq 2
getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 13
2: StackMap locals: jnr.posix.POSIX java.nio.channels.Channel top int
StackMap stack:
aload 1
instanceof java.nio.channels.ReadableByteChannel
ifeq 8
3: aload 1
instanceof java.nio.channels.WritableByteChannel
ifeq 6
4: getstatic org.jruby.util.io.ModeFlags.RDWR:I
istore 2
start local 2 5: goto 14
end local 2 6: StackMap locals:
StackMap stack:
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
istore 2
start local 2 7: goto 14
end local 2 StackMap locals:
StackMap stack:
8: aload 1
instanceof java.nio.channels.WritableByteChannel
ifeq 11
9: getstatic org.jruby.util.io.ModeFlags.WRONLY:I
istore 2
start local 2 10: goto 14
end local 2 11: StackMap locals:
StackMap stack:
getstatic org.jruby.util.io.ModeFlags.RDWR:I
istore 2
start local 2 12: goto 14
end local 2 13: StackMap locals:
StackMap stack:
aload 0
iload 3
getstatic jnr.constants.platform.Fcntl.F_GETFL:Ljnr/constants/platform/Fcntl;
invokeinterface jnr.posix.POSIX.fcntl:(ILjnr/constants/platform/Fcntl;)I
istore 2
start local 2 14: StackMap locals: jnr.posix.POSIX java.nio.channels.Channel int int
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 posix Ljnr/posix/POSIX;
0 15 1 channel Ljava/nio/channels/Channel;
5 6 2 mode I
7 8 2 mode I
10 11 2 mode I
12 13 2 mode I
14 15 2 mode I
1 15 3 fileno I
MethodParameters:
Name Flags
posix
channel
public static org.jruby.util.io.ModeFlags getModesFromChannel(java.nio.channels.Channel);
descriptor: (Ljava/nio/channels/Channel;)Lorg/jruby/util/io/ModeFlags;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.nio.channels.ReadableByteChannel
ifeq 6
1: aload 0
instanceof java.nio.channels.WritableByteChannel
ifeq 4
2: new org.jruby.util.io.ModeFlags
dup
getstatic org.jruby.util.io.ModeFlags.RDWR:I
i2l
invokespecial org.jruby.util.io.ModeFlags.<init>:(J)V
astore 1
start local 1 3: goto 10
end local 1 4: StackMap locals:
StackMap stack:
new org.jruby.util.io.ModeFlags
dup
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
i2l
invokespecial org.jruby.util.io.ModeFlags.<init>:(J)V
astore 1
start local 1 5: goto 10
end local 1 StackMap locals:
StackMap stack:
6: aload 0
instanceof java.nio.channels.WritableByteChannel
ifeq 9
7: new org.jruby.util.io.ModeFlags
dup
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
i2l
invokespecial org.jruby.util.io.ModeFlags.<init>:(J)V
astore 1
start local 1 8: goto 10
end local 1 9: StackMap locals:
StackMap stack:
new org.jruby.util.io.ModeFlags
dup
getstatic org.jruby.util.io.ModeFlags.RDWR:I
i2l
invokespecial org.jruby.util.io.ModeFlags.<init>:(J)V
astore 1
start local 1 10: StackMap locals: org.jruby.util.io.ModeFlags
StackMap stack:
aload 1
11: areturn
end local 1 12: StackMap locals: java.nio.channels.Channel
StackMap stack: org.jruby.util.io.InvalidValueException
astore 1
start local 1 13: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 channel Ljava/nio/channels/Channel;
3 4 1 modes Lorg/jruby/util/io/ModeFlags;
5 6 1 modes Lorg/jruby/util/io/ModeFlags;
8 9 1 modes Lorg/jruby/util/io/ModeFlags;
10 12 1 modes Lorg/jruby/util/io/ModeFlags;
13 14 1 ive Lorg/jruby/util/io/InvalidValueException;
Exception table:
from to target type
0 11 12 Class org.jruby.util.io.InvalidValueException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
channel
public java.lang.String toJavaModeString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.io.ModeFlags.isWritable:()Z
ifne 1
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isCreate:()Z
ifne 1
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isTruncate:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
ldc "rw"
areturn
2: StackMap locals:
StackMap stack:
ldc "r"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/io/ModeFlags;
public final boolean isReadOnly();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
iand
ifne 1
aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.RDWR:I
iand
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isReadable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.RDWR:I
iand
ifne 1
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isReadOnly:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isBinary();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.BINARY:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isText();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
ldc 268435456
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isTemporary();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.TMPFILE:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isCreate();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.CREAT:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isWritable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.RDWR:I
iand
ifne 1
aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
iand
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isExclusive();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.EXCL:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isAppendable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.APPEND:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isTruncate();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
getstatic org.jruby.util.io.ModeFlags.TRUNC:I
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/io/ModeFlags;
public boolean isSubsetOf(org.jruby.util.io.ModeFlags);
descriptor: (Lorg/jruby/util/io/ModeFlags;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.util.io.ModeFlags.isReadable:()Z
ifne 1
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isReadable:()Z
ifne 3
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.util.io.ModeFlags.isWritable:()Z
ifne 2
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isWritable:()Z
ifne 3
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.util.io.ModeFlags.isAppendable:()Z
ifne 4
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isAppendable:()Z
ifeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/io/ModeFlags;
0 5 1 superset Lorg/jruby/util/io/ModeFlags;
MethodParameters:
Name Flags
superset
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "ModeFlags("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "): "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 0
invokevirtual org.jruby.util.io.ModeFlags.isAppendable:()Z
ifeq 3
aload 1
ldc "APPENDABLE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isBinary:()Z
ifeq 4
aload 1
ldc "BINARY "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isCreate:()Z
ifeq 5
aload 1
ldc "CREATE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isExclusive:()Z
ifeq 6
aload 1
ldc "EXCLUSIVE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isReadOnly:()Z
ifeq 7
aload 1
ldc "READONLY "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isText:()Z
ifeq 8
aload 1
ldc "TEXT "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isTemporary:()Z
ifeq 9
aload 1
ldc "TMPFILE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isTruncate:()Z
ifeq 10
aload 1
ldc "TRUNCATE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.io.ModeFlags.isWritable:()Z
ifeq 15
11: aload 0
invokevirtual org.jruby.util.io.ModeFlags.isReadable:()Z
ifeq 14
12: aload 1
ldc "RDWR"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: goto 15
14: StackMap locals:
StackMap stack:
aload 1
ldc "WRITABLE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/util/io/ModeFlags;
1 16 1 buf Ljava/lang/StringBuilder;
public int getFlags();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/io/ModeFlags;
public static int getOpenFileFlagsFor(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iload 0
iconst_3
iand
istore 2
start local 2 1: iload 2
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
if_icmpne 4
2: iconst_1
istore 1
start local 1 3: goto 8
end local 1 StackMap locals: int top int
StackMap stack:
4: iload 2
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
if_icmpne 7
5: iconst_2
istore 1
start local 1 6: goto 8
end local 1 7: StackMap locals:
StackMap stack:
iconst_3
istore 1
start local 1 8: StackMap locals: int int int
StackMap stack:
iload 0
getstatic org.jruby.util.io.ModeFlags.APPEND:I
iand
ifeq 10
9: iload 1
bipush 64
ior
istore 1
10: StackMap locals:
StackMap stack:
iload 0
getstatic org.jruby.util.io.ModeFlags.CREAT:I
iand
ifeq 12
11: iload 1
sipush 128
ior
istore 1
12: StackMap locals:
StackMap stack:
iload 0
getstatic org.jruby.util.io.ModeFlags.BINARY:I
iand
ifeq 14
13: iload 1
iconst_4
ior
istore 1
14: StackMap locals:
StackMap stack:
iload 0
getstatic org.jruby.util.io.ModeFlags.TMPFILE:I
iand
ifeq 16
15: iload 1
ldc 4259840
ior
istore 1
16: StackMap locals:
StackMap stack:
iload 0
ldc 268435456
iand
ifeq 18
17: iload 1
sipush 4096
ior
istore 1
18: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 flags I
3 4 1 fmodeFlags I
6 7 1 fmodeFlags I
8 19 1 fmodeFlags I
1 19 2 readWrite I
MethodParameters:
Name Flags
flags
public int getOpenFileFlags();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
invokestatic org.jruby.util.io.ModeFlags.getOpenFileFlagsFor:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/io/ModeFlags;
public int getFcntlFileFlags();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.io.ModeFlags.flags:I
iconst_3
iand
istore 2
start local 2 1: iload 2
getstatic org.jruby.util.io.ModeFlags.RDONLY:I
if_icmpne 4
2: iconst_0
istore 1
start local 1 3: goto 8
end local 1 StackMap locals: org.jruby.util.io.ModeFlags top int
StackMap stack:
4: iload 2
getstatic org.jruby.util.io.ModeFlags.WRONLY:I
if_icmpne 7
5: iconst_1
istore 1
start local 1 6: goto 8
end local 1 7: StackMap locals:
StackMap stack:
iconst_2
istore 1
start local 1 8: StackMap locals: org.jruby.util.io.ModeFlags int int
StackMap stack:
iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/util/io/ModeFlags;
3 4 1 fcntlFlags I
6 7 1 fcntlFlags I
8 9 1 fcntlFlags I
1 9 2 readWrite I
public static org.jruby.util.io.ModeFlags createModeFlags(int);
descriptor: (I)Lorg/jruby/util/io/ModeFlags;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.jruby.util.io.ModeFlags
dup
iload 0
i2l
invokespecial org.jruby.util.io.ModeFlags.<init>:(J)V
1: areturn
2: StackMap locals:
StackMap stack: org.jruby.util.io.InvalidValueException
pop
3: new org.jruby.util.io.ModeFlags
dup
invokespecial org.jruby.util.io.ModeFlags.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 oflags I
Exception table:
from to target type
0 1 2 Class org.jruby.util.io.InvalidValueException
MethodParameters:
Name Flags
oflags
}
SourceFile: "ModeFlags.java"