public class com.oracle.truffle.tck.tests.ExpressionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.tck.tests.ExpressionTest
super_class: java.lang.Object
{
private static final com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher<com.oracle.truffle.tck.tests.TestRun> TEST_RESULT_MATCHER;
descriptor: Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher<Lcom/oracle/truffle/tck/tests/TestRun;>;
private static com.oracle.truffle.tck.tests.TestContext context;
descriptor: Lcom/oracle/truffle/tck/tests/TestContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final com.oracle.truffle.tck.tests.TestRun testRun;
descriptor: Lcom/oracle/truffle/tck/tests/TestRun;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.oracle.truffle.tck.tests.TestUtil.createTooManyFailuresMatcher:()Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
putstatic com.oracle.truffle.tck.tests.ExpressionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Collection<? extends com.oracle.truffle.tck.tests.TestRun> createExpressionTests();
descriptor: ()Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new com.oracle.truffle.tck.tests.TestContext
dup
ldc Lcom/oracle/truffle/tck/tests/ExpressionTest;
invokespecial com.oracle.truffle.tck.tests.TestContext.<init>:(Ljava/lang/Class;)V
putstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
1: getstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokestatic com.oracle.truffle.tck.tests.TestUtil.getRequiredLanguages:(Lcom/oracle/truffle/tck/tests/TestContext;)Ljava/util/Set;
2: getstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokestatic com.oracle.truffle.tck.tests.TestUtil.getRequiredValueLanguages:(Lcom/oracle/truffle/tck/tests/TestContext;)Ljava/util/Set;
3: new com.oracle.truffle.tck.tests.ExpressionTest$1
dup
invokespecial com.oracle.truffle.tck.tests.ExpressionTest$1.<init>:()V
4: new com.oracle.truffle.tck.tests.ExpressionTest$2
dup
invokespecial com.oracle.truffle.tck.tests.ExpressionTest$2.<init>:()V
5: invokestatic com.oracle.truffle.tck.tests.TestUtil.createTestRuns:(Ljava/util/Set;Ljava/util/Set;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/Collection;
astore 0
start local 0 6: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
6 7 0 testRuns Ljava/util/Collection<+Lcom/oracle/truffle/tck/tests/TestRun;>;
Signature: ()Ljava/util/Collection<+Lcom/oracle/truffle/tck/tests/TestRun;>;
RuntimeVisibleAnnotations:
org.junit.runners.Parameterized$Parameters(name = "{0}")
public static void afterClass();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokevirtual com.oracle.truffle.tck.tests.TestContext.close:()V
1: aconst_null
putstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
2: return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.AfterClass()
public void <init>(com.oracle.truffle.tck.tests.TestRun);
descriptor: (Lcom/oracle/truffle/tck/tests/TestRun;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/tck/tests/ExpressionTest;
0 4 1 testRun Lcom/oracle/truffle/tck/tests/TestRun;
MethodParameters:
Name Flags
testRun final
public void testExpression();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
getstatic com.oracle.truffle.tck.tests.ExpressionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
invokestatic org.junit.Assume.assumeThat:(Ljava/lang/Object;Lorg/hamcrest/Matcher;)V
1: iconst_0
istore 1
start local 1 2: aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
invokevirtual com.oracle.truffle.tck.tests.TestRun.getSnippet:()Lorg/graalvm/polyglot/tck/Snippet;
invokevirtual org.graalvm.polyglot.tck.Snippet.getExecutableValue:()Lorg/graalvm/polyglot/Value;
aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
invokevirtual com.oracle.truffle.tck.tests.TestRun.getActualParameters:()Ljava/util/List;
invokeinterface java.util.List.toArray:()[Ljava/lang/Object;
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
aload 2
aconst_null
iconst_1
invokestatic com.oracle.truffle.tck.tests.TestUtil.validateResult:(Lcom/oracle/truffle/tck/tests/TestRun;Lorg/graalvm/polyglot/Value;Lorg/graalvm/polyglot/PolyglotException;Z)V
4: iconst_1
istore 1
end local 2 5: goto 21
StackMap locals: com.oracle.truffle.tck.tests.ExpressionTest int
StackMap stack: org.graalvm.polyglot.PolyglotException
6: astore 2
start local 2 7: aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
aconst_null
aload 2
iconst_1
invokestatic com.oracle.truffle.tck.tests.TestUtil.validateResult:(Lcom/oracle/truffle/tck/tests/TestRun;Lorg/graalvm/polyglot/Value;Lorg/graalvm/polyglot/PolyglotException;Z)V
8: iconst_1
istore 1
end local 2 9: goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
start local 2 11: new java.lang.AssertionError
dup
12: new java.lang.StringBuilder
dup
ldc "Unexpected Exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
14: getstatic com.oracle.truffle.tck.tests.ExpressionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
15: invokestatic com.oracle.truffle.tck.tests.TestUtil.formatErrorMessage:(Ljava/lang/String;Lcom/oracle/truffle/tck/tests/TestRun;Lcom/oracle/truffle/tck/tests/TestContext;)Ljava/lang/String;
16: aload 2
17: invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
19: getstatic com.oracle.truffle.tck.tests.ExpressionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher.accept:(Ljava/lang/Object;)V
20: aload 3
athrow
21: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.tck.tests.ExpressionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 0
getfield com.oracle.truffle.tck.tests.ExpressionTest.testRun:Lcom/oracle/truffle/tck/tests/TestRun;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher.accept:(Ljava/lang/Object;)V
22: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/oracle/truffle/tck/tests/ExpressionTest;
2 23 1 success Z
3 5 2 result Lorg/graalvm/polyglot/Value;
7 9 2 pe Lorg/graalvm/polyglot/PolyglotException;
11 18 2 e Ljava/lang/Throwable;
Exception table:
from to target type
2 5 6 Class org.graalvm.polyglot.PolyglotException
2 9 10 Class org.graalvm.polyglot.PolyglotException
2 9 10 Class java.lang.AssertionError
2 18 18 any
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "ExpressionTest.java"
NestMembers:
com.oracle.truffle.tck.tests.ExpressionTest$1 com.oracle.truffle.tck.tests.ExpressionTest$2
InnerClasses:
com.oracle.truffle.tck.tests.ExpressionTest$1
com.oracle.truffle.tck.tests.ExpressionTest$2
abstract CollectingMatcher = com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher of com.oracle.truffle.tck.tests.TestUtil
public SimpleImmutableEntry = java.util.AbstractMap$SimpleImmutableEntry of java.util.AbstractMap
public abstract Parameters = org.junit.runners.Parameterized$Parameters of org.junit.runners.Parameterized
RuntimeVisibleAnnotations:
org.junit.runner.RunWith(value = Lorg/junit/runners/Parameterized;)