public class com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject
super_class: java.lang.Object
{
private final org.graalvm.polyglot.Value value;
descriptor: Lorg/graalvm/polyglot/Value;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.graalvm.polyglot.Value);
descriptor: (Lorg/graalvm/polyglot/Value;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject this
start local 1 // org.graalvm.polyglot.Value v
0: .line 82
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 83
aload 0 /* this */
aload 1 /* v */
putfield com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject.value:Lorg/graalvm/polyglot/Value;
2: .line 84
return
end local 1 // org.graalvm.polyglot.Value v
end local 0 // com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/test/interop/TargetTypeMappingTest$JsonObject;
0 3 1 v Lorg/graalvm/polyglot/Value;
MethodParameters:
Name Flags
v
java.lang.String stringify();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 // com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject this
0: .line 87
aload 0 /* this */
getfield com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject.value:Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.getContext:()Lorg/graalvm/polyglot/Context;
ldc "js"
ldc "(function () { return {getJson: function() { return JSON.stringify(this.jsObject); } }; })()"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
astore 1 /* convertor */
start local 1 // org.graalvm.polyglot.Value convertor
1: .line 89
aload 1 /* convertor */
ldc "jsObject"
aload 0 /* this */
getfield com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject.value:Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.putMember:(Ljava/lang/String;Ljava/lang/Object;)V
2: .line 90
aload 1 /* convertor */
ldc "getJson"
invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
areturn
end local 1 // org.graalvm.polyglot.Value convertor
end local 0 // com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/test/interop/TargetTypeMappingTest$JsonObject;
1 3 1 convertor Lorg/graalvm/polyglot/Value;
}
SourceFile: "TargetTypeMappingTest.java"
NestHost: com.oracle.truffle.js.test.interop.TargetTypeMappingTest
InnerClasses:
public JsonObject = com.oracle.truffle.js.test.interop.TargetTypeMappingTest$JsonObject of com.oracle.truffle.js.test.interop.TargetTypeMappingTest