public class org.jruby.embed.jsr223.JRubyEngine implements javax.script.Compilable, javax.script.Invocable, javax.script.ScriptEngine
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.jsr223.JRubyEngine
super_class: java.lang.Object
{
final org.jruby.embed.ScriptingContainer container;
descriptor: Lorg/jruby/embed/ScriptingContainer;
flags: (0x0010) ACC_FINAL
private org.jruby.embed.jsr223.JRubyEngineFactory factory;
descriptor: Lorg/jruby/embed/jsr223/JRubyEngineFactory;
flags: (0x0002) ACC_PRIVATE
private javax.script.ScriptContext context;
descriptor: Ljavax/script/ScriptContext;
flags: (0x0002) ACC_PRIVATE
void <init>(org.jruby.embed.ScriptingContainer, org.jruby.embed.jsr223.JRubyEngineFactory);
descriptor: (Lorg/jruby/embed/ScriptingContainer;Lorg/jruby/embed/jsr223/JRubyEngineFactory;)V
flags: (0x0000)
Code:
stack=4, 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.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
2: aload 0
aload 2
putfield org.jruby.embed.jsr223.JRubyEngine.factory:Lorg/jruby/embed/jsr223/JRubyEngineFactory;
3: aload 0
new org.jruby.embed.jsr223.JRubyContext
dup
aload 1
invokespecial org.jruby.embed.jsr223.JRubyContext.<init>:(Lorg/jruby/embed/ScriptingContainer;)V
putfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 5 1 container Lorg/jruby/embed/ScriptingContainer;
0 5 2 factory Lorg/jruby/embed/jsr223/JRubyEngineFactory;
MethodParameters:
Name Flags
container
factory
public javax.script.CompiledScript compile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/script/CompiledScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "script is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new org.jruby.embed.jsr223.JRubyCompiledScript
dup
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
aload 1
invokespecial org.jruby.embed.jsr223.JRubyCompiledScript.<init>:(Lorg/jruby/embed/ScriptingContainer;Lorg/jruby/embed/jsr223/JRubyEngine;Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 3 1 script Ljava/lang/String;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script
public javax.script.CompiledScript compile(java.io.Reader);
descriptor: (Ljava/io/Reader;)Ljavax/script/CompiledScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "reader is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new org.jruby.embed.jsr223.JRubyCompiledScript
dup
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
aload 1
invokespecial org.jruby.embed.jsr223.JRubyCompiledScript.<init>:(Lorg/jruby/embed/ScriptingContainer;Lorg/jruby/embed/jsr223/JRubyEngine;Ljava/io/Reader;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 3 1 reader Ljava/io/Reader;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader
public java.lang.Object eval(java.lang.String, javax.script.ScriptContext);
descriptor: (Ljava/lang/String;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.NullPointerException
dup
ldc "either script or context is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.getFilename:(Ljavax/script/ScriptContext;)Ljava/lang/String;
invokevirtual org.jruby.embed.ScriptingContainer.setScriptFilename:(Ljava/lang/String;)V
3: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isClearVariablesOn:(Ljavax/script/ScriptContext;)Z
ifeq 5
4: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.clear:()V
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
6: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
iconst_1
newarray 10
dup
iconst_0
aload 2
invokestatic org.jruby.embed.jsr223.Utils.getLineNumber:(Ljavax/script/ScriptContext;)I
iastore
invokevirtual org.jruby.embed.ScriptingContainer.parse:(Ljava/lang/String;[I)Lorg/jruby/embed/EmbedEvalUnit;
astore 3
start local 3 7: aload 3
invokeinterface org.jruby.embed.EmbedEvalUnit.run:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 8: aload 4
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
astore 6
9: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
10: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 7
start local 7 11: iload 7
ifeq 13
12: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 7 13: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.lang.String javax.script.ScriptContext org.jruby.embed.EmbedEvalUnit org.jruby.runtime.builtin.IRubyObject top java.lang.Object
StackMap stack:
aload 6
areturn
end local 4 end local 3 14: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.lang.String javax.script.ScriptContext
StackMap stack: java.lang.Exception
astore 3
start local 3 15: aload 0
aload 3
invokevirtual org.jruby.embed.jsr223.JRubyEngine.wrapException:(Ljava/lang/Exception;)Ljavax/script/ScriptException;
athrow
end local 3 16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
17: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
18: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 7
start local 7 19: iload 7
ifeq 21
20: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 7 21: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.lang.String javax.script.ScriptContext top top java.lang.Throwable
StackMap stack:
aload 5
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 22 1 script Ljava/lang/String;
0 22 2 context Ljavax/script/ScriptContext;
7 14 3 unit Lorg/jruby/embed/EmbedEvalUnit;
8 14 4 ret Lorg/jruby/runtime/builtin/IRubyObject;
15 16 3 e Ljava/lang/Exception;
11 13 7 termination Z
19 21 7 termination Z
Exception table:
from to target type
3 9 14 Class java.lang.Exception
3 9 16 any
14 16 16 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script
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/JRubyEngine;
0 1 1 e Ljava/lang/Exception;
MethodParameters:
Name Flags
e
public java.lang.Object eval(java.io.Reader, javax.script.ScriptContext);
descriptor: (Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.NullPointerException
dup
ldc "either reader or context is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
invokestatic org.jruby.embed.jsr223.Utils.getFilename:(Ljavax/script/ScriptContext;)Ljava/lang/String;
astore 3
start local 3 3: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isClearVariablesOn:(Ljavax/script/ScriptContext;)Z
ifeq 5
4: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.clear:()V
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
6: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
aload 3
iconst_1
newarray 10
dup
iconst_0
aload 2
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;
astore 4
start local 4 7: aload 4
invokeinterface org.jruby.embed.EmbedEvalUnit.run:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 8: aload 5
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
astore 7
9: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
10: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 8
start local 8 11: iload 8
ifeq 13
12: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 8 13: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.io.Reader javax.script.ScriptContext java.lang.String org.jruby.embed.EmbedEvalUnit org.jruby.runtime.builtin.IRubyObject top java.lang.Object
StackMap stack:
aload 7
areturn
end local 5 end local 4 14: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.io.Reader javax.script.ScriptContext java.lang.String
StackMap stack: java.lang.Exception
astore 4
start local 4 15: aload 0
aload 4
invokevirtual org.jruby.embed.jsr223.JRubyEngine.wrapException:(Ljava/lang/Exception;)Ljavax/script/ScriptException;
athrow
end local 4 16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
17: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 2
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
18: aload 2
invokestatic org.jruby.embed.jsr223.Utils.isTerminationOn:(Ljavax/script/ScriptContext;)Z
istore 8
start local 8 19: iload 8
ifeq 21
20: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.terminate:()V
end local 8 21: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.io.Reader javax.script.ScriptContext java.lang.String top top java.lang.Throwable
StackMap stack:
aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 22 1 reader Ljava/io/Reader;
0 22 2 context Ljavax/script/ScriptContext;
3 22 3 filename Ljava/lang/String;
7 14 4 unit Lorg/jruby/embed/EmbedEvalUnit;
8 14 5 ret Lorg/jruby/runtime/builtin/IRubyObject;
15 16 4 e Ljava/lang/Exception;
11 13 8 termination Z
19 21 8 termination Z
Exception table:
from to target type
3 9 14 Class java.lang.Exception
3 9 16 any
14 16 16 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader
context
public java.lang.Object eval(java.lang.String, javax.script.Bindings);
descriptor: (Ljava/lang/String;Ljavax/script/Bindings;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getScriptContext:(Ljavax/script/Bindings;)Ljavax/script/ScriptContext;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.jruby.embed.jsr223.JRubyEngine.eval:(Ljava/lang/String;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 2 1 script Ljava/lang/String;
0 2 2 bindings Ljavax/script/Bindings;
1 2 3 context Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script
bindings
public java.lang.Object eval(java.io.Reader, javax.script.Bindings);
descriptor: (Ljava/io/Reader;Ljavax/script/Bindings;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getScriptContext:(Ljavax/script/Bindings;)Ljavax/script/ScriptContext;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.jruby.embed.jsr223.JRubyEngine.eval:(Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 2 1 reader Ljava/io/Reader;
0 2 2 bindings Ljavax/script/Bindings;
1 2 3 context Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader
bindings
public java.lang.Object eval(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokevirtual org.jruby.embed.jsr223.JRubyEngine.eval:(Ljava/lang/String;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 script Ljava/lang/String;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script
public java.lang.Object eval(java.io.Reader);
descriptor: (Ljava/io/Reader;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokevirtual org.jruby.embed.jsr223.JRubyEngine.eval:(Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 reader Ljava/io/Reader;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader
protected javax.script.ScriptContext getScriptContext(javax.script.Bindings);
descriptor: (Ljavax/script/Bindings;)Ljavax/script/ScriptContext;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "null bindings in engine scope"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new javax.script.SimpleScriptContext
dup
invokespecial javax.script.SimpleScriptContext.<init>:()V
astore 2
start local 2 3: aload 2
aload 1
bipush 100
invokeinterface javax.script.ScriptContext.setBindings:(Ljavax/script/Bindings;I)V
4: aload 0
sipush 200
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getBindings:(I)Ljavax/script/Bindings;
astore 3
start local 3 5: aload 3
ifnull 7
6: aload 2
aload 3
sipush 200
invokeinterface javax.script.ScriptContext.setBindings:(Ljavax/script/Bindings;I)V
7: StackMap locals: javax.script.ScriptContext javax.script.Bindings
StackMap stack:
aload 2
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokeinterface javax.script.ScriptContext.getReader:()Ljava/io/Reader;
invokeinterface javax.script.ScriptContext.setReader:(Ljava/io/Reader;)V
8: aload 2
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokeinterface javax.script.ScriptContext.getWriter:()Ljava/io/Writer;
invokeinterface javax.script.ScriptContext.setWriter:(Ljava/io/Writer;)V
9: aload 2
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokeinterface javax.script.ScriptContext.getErrorWriter:()Ljava/io/Writer;
invokeinterface javax.script.ScriptContext.setErrorWriter:(Ljava/io/Writer;)V
10: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 11 1 bindings Ljavax/script/Bindings;
3 11 2 newContext Ljavax/script/ScriptContext;
5 11 3 global Ljavax/script/Bindings;
MethodParameters:
Name Flags
bindings
public java.lang.Object get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
aload 1
bipush 100
invokeinterface javax.script.ScriptContext.getAttribute:(Ljava/lang/String;I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public void put(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)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.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
bipush 100
invokeinterface javax.script.ScriptContext.getBindings:(I)Ljavax/script/Bindings;
aload 1
aload 2
invokeinterface javax.script.Bindings.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 2 1 key Ljava/lang/String;
0 2 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
key
value
public javax.script.Bindings getBindings(int);
descriptor: (I)Ljavax/script/Bindings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
iload 1
invokeinterface javax.script.ScriptContext.getBindings:(I)Ljavax/script/Bindings;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 scope I
MethodParameters:
Name Flags
scope
public void setBindings(javax.script.Bindings, int);
descriptor: (Ljavax/script/Bindings;I)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.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
aload 1
iload 2
invokeinterface javax.script.ScriptContext.setBindings:(Ljavax/script/Bindings;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 2 1 bindings Ljavax/script/Bindings;
0 2 2 scope I
MethodParameters:
Name Flags
bindings
scope
public javax.script.Bindings createBindings();
descriptor: ()Ljavax/script/Bindings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new javax.script.SimpleBindings
dup
invokespecial javax.script.SimpleBindings.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
public javax.script.ScriptContext getContext();
descriptor: ()Ljavax/script/ScriptContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
public void setContext(javax.script.ScriptContext);
descriptor: (Ljavax/script/ScriptContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "context is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 4 1 ctx Ljavax/script/ScriptContext;
MethodParameters:
Name Flags
ctx
public javax.script.ScriptEngineFactory getFactory();
descriptor: ()Ljavax/script/ScriptEngineFactory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.factory:Lorg/jruby/embed/jsr223/JRubyEngineFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
public java.lang.Object invokeMethod(java.lang.Object, java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "method is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "receiver is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
5: aload 3
ifnull 6
aload 3
arraylength
ifne 9
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
aload 2
ldc Ljava/lang/Object;
invokevirtual org.jruby.embed.ScriptingContainer.callMethod:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
astore 6
7: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
8: aload 6
areturn
9: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
aload 2
aload 3
ldc Ljava/lang/Object;
invokevirtual org.jruby.embed.ScriptingContainer.callMethod:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
astore 6
10: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
11: aload 6
areturn
12: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 13: aload 4
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
ifnull 16
aload 4
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ifnull 16
14: aload 4
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ldc "undefined method"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 16
15: aload 4
invokestatic org.jruby.embed.jsr223.JRubyEngine.wrapMethodException:(Ljava/lang/Exception;)Ljava/lang/NoSuchMethodException;
athrow
16: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
aload 4
invokevirtual org.jruby.embed.jsr223.JRubyEngine.wrapException:(Ljava/lang/Exception;)Ljavax/script/ScriptException;
athrow
end local 4 17: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.lang.Object java.lang.String java.lang.Object[]
StackMap stack: java.lang.Throwable
astore 5
18: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
19: aload 5
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 20 1 receiver Ljava/lang/Object;
0 20 2 method Ljava/lang/String;
0 20 3 args [Ljava/lang/Object;
13 17 4 e Ljava/lang/Exception;
Exception table:
from to target type
4 7 12 Class java.lang.Exception
9 10 12 Class java.lang.Exception
4 7 17 any
9 10 17 any
12 17 17 any
Exceptions:
throws javax.script.ScriptException, java.lang.NoSuchMethodException
MethodParameters:
Name Flags
receiver
method
args
private static java.lang.NoSuchMethodException wrapMethodException(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)Ljava/lang/NoSuchMethodException;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.NoSuchMethodException
dup
aload 0
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokespecial java.lang.NoSuchMethodException.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.NoSuchMethodException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.lang.NoSuchMethodException
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljava/lang/Exception;
MethodParameters:
Name Flags
e
public java.lang.Object invokeFunction(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "method is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.preEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
3: aload 2
ifnull 4
aload 2
arraylength
ifne 7
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.getProvider:()Lorg/jruby/embed/internal/LocalContextProvider;
invokeinterface org.jruby.embed.internal.LocalContextProvider.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getTopSelf:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 1
ldc Ljava/lang/Object;
invokevirtual org.jruby.embed.ScriptingContainer.callMethod:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
astore 5
5: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
6: aload 5
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.getProvider:()Lorg/jruby/embed/internal/LocalContextProvider;
invokeinterface org.jruby.embed.internal.LocalContextProvider.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getTopSelf:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 1
aload 2
ldc Ljava/lang/Object;
invokevirtual org.jruby.embed.ScriptingContainer.callMethod:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
astore 5
8: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
9: aload 5
areturn
10: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 11: aload 3
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
ifnull 14
aload 3
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ifnull 14
12: aload 3
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ldc "undefined method"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 14
13: aload 3
invokestatic org.jruby.embed.jsr223.JRubyEngine.wrapMethodException:(Ljava/lang/Exception;)Ljava/lang/NoSuchMethodException;
athrow
14: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
aload 3
invokevirtual org.jruby.embed.jsr223.JRubyEngine.wrapException:(Ljava/lang/Exception;)Ljavax/script/ScriptException;
athrow
end local 3 15: StackMap locals: org.jruby.embed.jsr223.JRubyEngine java.lang.String java.lang.Object[]
StackMap stack: java.lang.Throwable
astore 4
16: aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 0
getfield org.jruby.embed.jsr223.JRubyEngine.context:Ljavax/script/ScriptContext;
invokestatic org.jruby.embed.jsr223.Utils.postEval:(Lorg/jruby/embed/ScriptingContainer;Ljavax/script/ScriptContext;)V
17: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 18 1 method Ljava/lang/String;
0 18 2 args [Ljava/lang/Object;
11 15 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 5 10 Class java.lang.Exception
7 8 10 Class java.lang.Exception
2 5 15 any
7 8 15 any
10 15 15 any
Exceptions:
throws javax.script.ScriptException, java.lang.NoSuchMethodException
MethodParameters:
Name Flags
method
args
public <T> T getInterface(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokevirtual org.jruby.embed.jsr223.JRubyEngine.getInterface:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 returnType Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
returnType
public <T> T getInterface(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
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.embed.jsr223.JRubyEngine.container:Lorg/jruby/embed/ScriptingContainer;
aload 1
aload 2
invokevirtual org.jruby.embed.ScriptingContainer.getInstance:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/jsr223/JRubyEngine;
0 1 1 receiver Ljava/lang/Object;
0 1 2 returnType Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
receiver
returnType
}
SourceFile: "JRubyEngine.java"