public class org.jruby.runtime.load.ExternalScript implements org.jruby.runtime.load.Library
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.load.ExternalScript
super_class: java.lang.Object
{
private final org.jruby.runtime.load.LoadServiceResource resource;
descriptor: Lorg/jruby/runtime/load/LoadServiceResource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.runtime.load.LoadServiceResource, java.lang.String);
descriptor: (Lorg/jruby/runtime/load/LoadServiceResource;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/load/ExternalScript;
0 3 1 resource Lorg/jruby/runtime/load/LoadServiceResource;
0 3 2 name Ljava/lang/String;
MethodParameters:
Name Flags
resource
name
public void load(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
invokevirtual org.jruby.runtime.load.LoadServiceResource.getInputStream:()Ljava/io/InputStream;
astore 3
2: aload 0
getfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
invokevirtual org.jruby.runtime.load.LoadServiceResource.getName:()Ljava/lang/String;
astore 4
start local 4 3: aload 1
invokevirtual org.jruby.Ruby.getInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
invokevirtual org.jruby.RubyInstanceConfig.getCompileMode:()Lorg/jruby/RubyInstanceConfig$CompileMode;
invokevirtual org.jruby.RubyInstanceConfig$CompileMode.shouldPrecompileAll:()Z
ifeq 6
4: aload 1
aload 4
aload 3
iload 2
invokevirtual org.jruby.Ruby.compileAndLoadFile:(Ljava/lang/String;Ljava/io/InputStream;Z)V
5: goto 16
6: StackMap locals: java.io.InputStream java.lang.String
StackMap stack:
aload 0
getfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
invokevirtual org.jruby.runtime.load.LoadServiceResource.getPath:()Ljava/io/File;
aload 4
aload 0
getfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
invokevirtual org.jruby.runtime.load.LoadServiceResource.isAbsolute:()Z
invokestatic org.jruby.runtime.load.CompiledScriptLoader.getFilenameFromPathAndName:(Ljava/io/File;Ljava/lang/String;Z)Ljava/lang/String;
astore 4
7: aload 1
aload 4
new org.jruby.runtime.load.LoadServiceResourceInputStream
dup
aload 3
invokespecial org.jruby.runtime.load.LoadServiceResourceInputStream.<init>:(Ljava/io/InputStream;)V
iload 2
invokevirtual org.jruby.Ruby.loadFile:(Ljava/lang/String;Ljava/io/InputStream;Z)V
end local 4 8: goto 16
StackMap locals: org.jruby.runtime.load.ExternalScript org.jruby.Ruby int java.io.InputStream
StackMap stack: java.io.IOException
9: astore 4
start local 4 10: aload 1
aload 4
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
12: aload 3
invokevirtual java.io.InputStream.close:()V
13: goto 15
StackMap locals: org.jruby.runtime.load.ExternalScript org.jruby.Ruby int java.io.InputStream top java.lang.Throwable
StackMap stack: java.lang.Exception
14: pop
15: StackMap locals:
StackMap stack:
aload 5
athrow
16: StackMap locals: org.jruby.runtime.load.ExternalScript org.jruby.Ruby int java.io.InputStream
StackMap stack:
aload 3
invokevirtual java.io.InputStream.close:()V
17: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
18: pop
19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/jruby/runtime/load/ExternalScript;
0 20 1 runtime Lorg/jruby/Ruby;
0 20 2 wrap Z
1 20 3 in Ljava/io/InputStream;
3 8 4 name Ljava/lang/String;
10 11 4 e Ljava/io/IOException;
Exception table:
from to target type
1 8 9 Class java.io.IOException
1 11 11 any
12 13 14 Class java.lang.Exception
16 17 18 Class java.lang.Exception
MethodParameters:
Name Flags
runtime
wrap
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ExternalScript: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.runtime.load.ExternalScript.resource:Lorg/jruby/runtime/load/LoadServiceResource;
invokevirtual org.jruby.runtime.load.LoadServiceResource.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/ExternalScript;
}
SourceFile: "ExternalScript.java"
InnerClasses:
public final CompileMode = org.jruby.RubyInstanceConfig$CompileMode of org.jruby.RubyInstanceConfig