public class com.oracle.truffle.api.instrumentation.test.InstrumentAPITest 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.instrumentation.test.InstrumentAPITest
super_class: com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
0: .line 55
aload 0 /* this */
invokespecial com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest.<init>:()V
return
end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest;
public void testGetLanguageInfo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
0: .line 59
aload 0 /* this */
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.setupEnv:()V
1: .line 61
aload 0 /* this */
getfield com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.lookupHostSymbol:(Ljava/lang/String;)Ljava/lang/Object;
astore 1 /* hostObject */
start local 1 // java.lang.Object hostObject
2: .line 62
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.INTEROP:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 1 /* hostObject */
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getLanguage:(Ljava/lang/Object;)Ljava/lang/Class;
astore 2 /* lang */
start local 2 // java.lang.Class lang
3: .line 63
aload 0 /* this */
getfield com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 2 /* lang */
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getLanguageInfo:(Ljava/lang/Class;)Lcom/oracle/truffle/api/nodes/LanguageInfo;
astore 3 /* host */
start local 3 // com.oracle.truffle.api.nodes.LanguageInfo host
4: .line 64
ldc "host"
aload 3 /* host */
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: .line 66
aload 0 /* this */
invokedynamic call(Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest;)Ljava/util/concurrent/Callable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/oracle/truffle/api/instrumentation/test/InstrumentAPITest.lambda$0()Ljava/lang/Object; (7)
()Ljava/lang/Object;
ldc Ljava/lang/IllegalArgumentException;
invokestatic com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.assertFails:(Ljava/util/concurrent/Callable;Ljava/lang/Class;)V
6: .line 68
aload 0 /* this */
getfield com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
ldc Lcom/oracle/truffle/api/test/polyglot/ProxyLanguage;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getLanguageInfo:(Ljava/lang/Class;)Lcom/oracle/truffle/api/nodes/LanguageInfo;
astore 4 /* info */
start local 4 // com.oracle.truffle.api.nodes.LanguageInfo info
7: .line 69
ldc "proxyLanguage"
aload 4 /* info */
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
8: .line 71
aload 0 /* this */
getfield com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getLanguages:()Ljava/util/Map;
ldc "proxyLanguage"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 4 /* info */
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
9: .line 72
return
end local 4 // com.oracle.truffle.api.nodes.LanguageInfo info
end local 3 // com.oracle.truffle.api.nodes.LanguageInfo host
end local 2 // java.lang.Class lang
end local 1 // java.lang.Object hostObject
end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest;
2 10 1 hostObject Ljava/lang/Object;
3 10 2 lang Ljava/lang/Class<+Lcom/oracle/truffle/api/TruffleLanguage<*>;>;
4 10 3 host Lcom/oracle/truffle/api/nodes/LanguageInfo;
7 10 4 info Lcom/oracle/truffle/api/nodes/LanguageInfo;
Exceptions:
throws com.oracle.truffle.api.interop.UnsupportedMessageException
RuntimeVisibleAnnotations:
org.junit.Test()
private java.lang.Object lambda$0();
descriptor: ()Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
0: .line 66
aload 0 /* this */
getfield com.oracle.truffle.api.instrumentation.test.InstrumentAPITest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest$InvalidLanguageClass;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getLanguageInfo:(Ljava/lang/Class;)Lcom/oracle/truffle/api/nodes/LanguageInfo;
areturn
end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentAPITest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentAPITest;
Exceptions:
throws java.lang.Exception
}
SourceFile: "InstrumentAPITest.java"
NestMembers:
com.oracle.truffle.api.instrumentation.test.InstrumentAPITest$InvalidLanguageClass
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
InvalidLanguageClass = com.oracle.truffle.api.instrumentation.test.InstrumentAPITest$InvalidLanguageClass of com.oracle.truffle.api.instrumentation.test.InstrumentAPITest
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles