public class org.jruby.embed.jsr223.JRubyCompiledScript extends javax.script.CompiledScript
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.jsr223.JRubyCompiledScript
super_class: javax.script.CompiledScript
{
private org.jruby.embed.ScriptingContainer container;
descriptor: Lorg/jruby/embed/ScriptingContainer;
flags: (0x0002) ACC_PRIVATE
private org.jruby.embed.jsr223.JRubyEngine engine;
descriptor: Lorg/jruby/embed/jsr223/JRubyEngine;
flags: (0x0002) ACC_PRIVATE
private final org.jruby.embed.EmbedEvalUnit unit;
descriptor: Lorg/jruby/embed/EmbedEvalUnit;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.jruby.embed.ScriptingContainer, org.jruby.embed.jsr223.JRubyEngine, java.lang.String);
descriptor: (Lorg/jruby/embed/ScriptingContainer;Lorg/jruby/embed/jsr223/JRubyEngine;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial javax.script.CompiledScript.<init>:()V
1: aload 0
aload 1
putfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
2: aload 0
aload 2
putfield org.jruby.embed.jsr223.JRubyCompiledScript.engine:Lorg/jruby/embed/jsr223/JRubyEngine;
3: aload 1
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getContext:()Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
4: aload 0
aload 1
aload 3
iconst_0
newarray 10
invokevirtual org.jruby.embed.ScriptingContainer.parse:(Ljava/lang/String;[I)Lorg/jruby/embed/EmbedEvalUnit;
putfield org.jruby.embed.jsr223.JRubyCompiledScript.unit:Lorg/jruby/embed/EmbedEvalUnit;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
0 6 1 container Lorg/jruby/embed/ScriptingContainer;
0 6 2 engine Lorg/jruby/embed/jsr223/JRubyEngine;
0 6 3 script Ljava/lang/String;
MethodParameters:
Name Flags
container
engine
script
void <init>(org.jruby.embed.ScriptingContainer, org.jruby.embed.jsr223.JRubyEngine, java.io.Reader);
descriptor: (Lorg/jruby/embed/ScriptingContainer;Lorg/jruby/embed/jsr223/JRubyEngine;Ljava/io/Reader;)V
flags: (0x0000)
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial javax.script.CompiledScript.<init>:()V
1: aload 0
aload 1
putfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
2: aload 0
aload 2
putfield org.jruby.embed.jsr223.JRubyCompiledScript.engine:Lorg/jruby/embed/jsr223/JRubyEngine;
3: ldc "javax.script.filename"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 1
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getContext:()Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
5: aload 0
aload 1
aload 3
aload 4
iconst_1
newarray 10
dup
iconst_0
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getContext:()Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.getLineNumber:(Ljavax/script/ScriptContext;)I
iastore
invokevirtual org.jruby.embed.ScriptingContainer.parse:(Ljava/io/Reader;Ljava/lang/String;[I)Lorg/jruby/embed/EmbedEvalUnit;
putfield org.jruby.embed.jsr223.JRubyCompiledScript.unit:Lorg/jruby/embed/EmbedEvalUnit;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
0 7 1 container Lorg/jruby/embed/ScriptingContainer;
0 7 2 engine Lorg/jruby/embed/jsr223/JRubyEngine;
0 7 3 reader Ljava/io/Reader;
4 7 4 filename Ljava/lang/String;
MethodParameters:
Name Flags
container
engine
reader
public java.lang.Object eval(javax.script.Bindings);
descriptor: (Ljavax/script/Bindings;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "bindings is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.engine:Lorg/jruby/embed/jsr223/JRubyEngine;
aload 1
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getScriptContext:(Ljavax/script/Bindings;)Ljavax/script/ScriptContext;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyCompiledScript.eval:(Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
0 4 1 bindings Ljavax/script/Bindings;
3 4 2 context Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
bindings
public java.lang.Object eval(javax.script.ScriptContext);
descriptor: (Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.embed.jsr223.Utils.isClearVariablesOn:(Ljavax/script/ScriptContext;)Z
ifeq 2
1: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.clear:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
3: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.unit:Lorg/jruby/embed/EmbedEvalUnit;
invokeinterface org.jruby.embed.EmbedEvalUnit.run:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 4: aload 2
instanceof org.jruby.RubyNil
ifne 11
5: aload 2
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
astore 4
6: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
7: aload 1
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 5
start local 5 8: iload 5
ifeq 10
9: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 5 10: StackMap locals: org.jruby.embed.jsr223.JRubyCompiledScript javax.script.ScriptContext org.jruby.runtime.builtin.IRubyObject top java.lang.Object
StackMap stack:
aload 4
areturn
11: StackMap locals: org.jruby.embed.jsr223.JRubyCompiledScript javax.script.ScriptContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
12: aload 1
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 5
start local 5 13: iload 5
ifeq 15
14: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 5 15: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 16: StackMap locals: org.jruby.embed.jsr223.JRubyCompiledScript javax.script.ScriptContext
StackMap stack: java.lang.Exception
astore 2
start local 2 17: aload 0
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyCompiledScript.wrapException:(Ljava/lang/Exception;)Ljavax/script/ScriptException;
athrow
end local 2 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
19: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
20: aload 1
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 5
start local 5 21: iload 5
ifeq 23
22: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 5 23: StackMap locals: org.jruby.embed.jsr223.JRubyCompiledScript javax.script.ScriptContext top java.lang.Throwable
StackMap stack:
aload 3
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
0 24 1 context Ljavax/script/ScriptContext;
4 16 2 ret Lorg/jruby/runtime/builtin/IRubyObject;
17 18 2 e Ljava/lang/Exception;
8 10 5 termination Z
13 15 5 termination Z
21 23 5 termination Z
Exception table:
from to target type
0 6 16 Class java.lang.Exception
0 6 18 any
16 18 18 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
context
private javax.script.ScriptException wrapException(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)Ljavax/script/ScriptException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new javax.script.ScriptException
dup
aload 1
invokespecial javax.script.ScriptException.<init>:(Ljava/lang/Exception;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
0 1 1 e Ljava/lang/Exception;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
e
public javax.script.ScriptEngine getEngine();
descriptor: ()Ljavax/script/ScriptEngine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.jsr223.JRubyCompiledScript.engine:Lorg/jruby/embed/jsr223/JRubyEngine;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyCompiledScript;
}
SourceFile: "JRubyCompiledScript.java"