public class com.oracle.truffle.sl.test.SLReadPropertyTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.sl.test.SLReadPropertyTest
super_class: java.lang.Object
{
private org.graalvm.polyglot.Context ctx;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0002) ACC_PRIVATE
private org.graalvm.polyglot.Value slObject;
descriptor: Lorg/graalvm/polyglot/Value;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/sl/test/SLReadPropertyTest;
public void setUp();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "sl"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.sl.test.SLReadPropertyTest.ctx:Lorg/graalvm/polyglot/Context;
1: aload 0
aload 0
getfield com.oracle.truffle.sl.test.SLReadPropertyTest.ctx:Lorg/graalvm/polyglot/Context;
ldc "sl"
ldc "function createObject() {\nobj1 = new();\nobj1.number = 42;\nreturn obj1;\n}\nfunction main() {\nreturn createObject;\n}"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
iconst_0
anewarray java.lang.Object
2: invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
3: putfield com.oracle.truffle.sl.test.SLReadPropertyTest.slObject:Lorg/graalvm/polyglot/Value;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/sl/test/SLReadPropertyTest;
RuntimeVisibleAnnotations:
org.junit.Before()
public void tearDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.SLReadPropertyTest.ctx:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/sl/test/SLReadPropertyTest;
RuntimeVisibleAnnotations:
org.junit.After()
public void testRead();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: ldc 42
aload 0
getfield com.oracle.truffle.sl.test.SLReadPropertyTest.slObject:Lorg/graalvm/polyglot/Value;
ldc "number"
invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
1: aload 0
getfield com.oracle.truffle.sl.test.SLReadPropertyTest.slObject:Lorg/graalvm/polyglot/Value;
ldc "nonexistent"
invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/sl/test/SLReadPropertyTest;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "SLReadPropertyTest.java"