public class com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest extends com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
super_class: com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
{
public static final java.lang.String LANGUAGE1;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage1"
public static final java.lang.String LANGUAGE2;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage2"
public static final java.lang.String LANGUAGE3;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage3"
public static final java.lang.String LANGUAGE4;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage4"
public static final java.lang.String LANGUAGE5;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage5"
public static final java.lang.String LANGUAGE6;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextAndLanguageSupplierTestLanguage6"
private static final java.util.List<java.lang.String> LANGUAGES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private static final java.util.List<java.lang.Class<? extends com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language1>> LANGUAGE_CLASSES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Class<+Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language1;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 6
anewarray java.lang.String
dup
iconst_0
ldc "ContextAndLanguageSupplierTestLanguage1"
aastore
dup
iconst_1
ldc "ContextAndLanguageSupplierTestLanguage2"
aastore
dup
iconst_2
ldc "ContextAndLanguageSupplierTestLanguage3"
aastore
dup
iconst_3
ldc "ContextAndLanguageSupplierTestLanguage4"
aastore
dup
iconst_4
ldc "ContextAndLanguageSupplierTestLanguage5"
aastore
dup
iconst_5
ldc "ContextAndLanguageSupplierTestLanguage6"
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putstatic com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.LANGUAGES:Ljava/util/List;
1: bipush 6
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language1;
aastore
dup
iconst_1
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language2;
aastore
dup
iconst_2
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language3;
aastore
dup
iconst_3
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language4;
aastore
dup
iconst_4
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language5;
aastore
dup
iconst_5
ldc Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest$Language6;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putstatic com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.LANGUAGE_CLASSES:Ljava/util/List;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest;
public void testContextSupplier();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.setupEnv:()V
1: getstatic com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.LANGUAGES:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 3: aload 0
getfield com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.language:Lcom/oracle/truffle/api/TruffleLanguage;
new com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode
dup
invokespecial com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode.<init>:()V
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.adoptNode:(Lcom/oracle/truffle/api/TruffleLanguage;Lcom/oracle/truffle/api/nodes/Node;)Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode.execute:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest;
3 4 1 lang Ljava/lang/String;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testLanguageSupplier();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.setupEnv:()V
1: getstatic com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.LANGUAGES:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 3: aload 0
getfield com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.language:Lcom/oracle/truffle/api/TruffleLanguage;
new com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode
dup
invokespecial com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode.<init>:()V
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest.adoptNode:(Lcom/oracle/truffle/api/TruffleLanguage;Lcom/oracle/truffle/api/nodes/Node;)Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode
invokevirtual com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode.execute:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/test/polyglot/ContextAndLanguageSupplierTest;
3 4 1 lang Ljava/lang/String;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "ContextAndLanguageSupplierTest.java"
NestMembers:
com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$InvalidLanguage com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language1 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language2 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language3 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language4 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language5 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language6 com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode
InnerClasses:
private ContextSupplierTestNode = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$ContextSupplierTestNode of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public InvalidLanguage = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$InvalidLanguage of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language1 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language1 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language2 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language2 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language3 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language3 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language4 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language4 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language5 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language5 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
public Language6 = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$Language6 of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest
private LanguageSupplierTestNode = com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest$LanguageSupplierTestNode of com.oracle.truffle.api.test.polyglot.ContextAndLanguageSupplierTest