public class org.jruby.ext.JRubyPOSIXHandler implements jnr.posix.POSIXHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.JRubyPOSIXHandler
super_class: java.lang.Object
{
private final org.jruby.Ruby runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isVerbose;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
2: iconst_0
istore 2
start local 2 3: getstatic org.jruby.util.cli.Options.NATIVE_VERBOSE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 2
4: goto 6
StackMap locals: org.jruby.ext.JRubyPOSIXHandler org.jruby.Ruby int
StackMap stack: java.lang.SecurityException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield org.jruby.ext.JRubyPOSIXHandler.isVerbose:Z
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
0 8 1 runtime Lorg/jruby/Ruby;
3 8 2 verbose Z
Exception table:
from to target type
3 4 5 Class java.lang.SecurityException
MethodParameters:
Name Flags
runtime
public void error(jnr.constants.platform.Errno, java.lang.String);
descriptor: (Ljnr/constants/platform/Errno;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual jnr.constants.platform.Errno.intValue:()I
aload 2
invokevirtual org.jruby.Ruby.newErrnoFromInt:(ILjava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
0 1 1 error Ljnr/constants/platform/Errno;
0 1 2 extraData Ljava/lang/String;
MethodParameters:
Name Flags
error
extraData
public void error(jnr.constants.platform.Errno, java.lang.String, java.lang.String);
descriptor: (Ljnr/constants/platform/Errno;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual jnr.constants.platform.Errno.intValue:()I
aload 2
aload 3
invokevirtual org.jruby.Ruby.newErrnoFromInt:(ILjava/lang/String;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
0 1 1 error Ljnr/constants/platform/Errno;
0 1 2 methodName Ljava/lang/String;
0 1 3 extraData Ljava/lang/String;
MethodParameters:
Name Flags
error
methodName
extraData
public void unimplementedError(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
0 1 1 method Ljava/lang/String;
MethodParameters:
Name Flags
method
public void warn(jnr.posix.POSIXHandler$WARNING_ID, java.lang.String, java.lang.Object[]);
descriptor: (Ljnr/posix/POSIXHandler$WARNING_ID;Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getstatic jnr.posix.POSIXHandler$WARNING_ID.DUMMY_VALUE_USED:Ljnr/posix/POSIXHandler$WARNING_ID;
if_acmpne 3
1: getstatic org.jruby.common.IRubyWarnings$ID.DUMMY_VALUE_USED:Lorg/jruby/common/IRubyWarnings$ID;
astore 4
start local 4 2: goto 4
end local 4 3: StackMap locals:
StackMap stack:
getstatic org.jruby.common.IRubyWarnings$ID.MISCELLANEOUS:Lorg/jruby/common/IRubyWarnings$ID;
astore 4
start local 4 4: StackMap locals: org.jruby.common.IRubyWarnings$ID
StackMap stack:
aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
aload 4
aload 2
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
0 6 1 id Ljnr/posix/POSIXHandler$WARNING_ID;
0 6 2 message Ljava/lang/String;
0 6 3 data [Ljava/lang/Object;
2 3 4 ourID Lorg/jruby/common/IRubyWarnings$ID;
4 6 4 ourID Lorg/jruby/common/IRubyWarnings$ID;
MethodParameters:
Name Flags
id
message
data
public boolean isVerbose();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.isVerbose:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
public java.io.File getCurrentWorkingDirectory();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.File
dup
aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
public java.lang.String[] getEnv();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "ENV"
invokevirtual org.jruby.RubyClass.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyHash
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.RubyHash.size:()I
anewarray java.lang.String
astore 2
start local 2 2: aload 2
arraylength
ifne 3
aload 2
areturn
3: StackMap locals: org.jruby.RubyHash java.lang.String[]
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: aload 1
invokevirtual org.jruby.RubyHash.directEntrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
start local 5 6: goto 12
7: StackMap locals: java.lang.StringBuilder int java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 6
start local 6 8: aload 3
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
9: aload 3
aload 6
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 61
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
10: aload 2
iload 4
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
end local 6 11: iinc 4 1
StackMap locals:
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 5 13: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
1 14 1 hash Lorg/jruby/RubyHash;
2 14 2 env [Ljava/lang/String;
4 14 3 str Ljava/lang/StringBuilder;
5 14 4 i I
6 13 5 iter Ljava/util/Iterator<Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;>;
8 11 6 entry Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
public java.io.PrintStream getErrorStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getErrorStream:()Ljava/io/PrintStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getInputStream:()Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
public int getPID();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual java.lang.Object.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
public java.io.PrintStream getOutputStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.JRubyPOSIXHandler.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getOutputStream:()Ljava/io/PrintStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/JRubyPOSIXHandler;
}
SourceFile: "JRubyPOSIXHandler.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final WARNING_ID = jnr.posix.POSIXHandler$WARNING_ID of jnr.posix.POSIXHandler
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings