final class com.oracle.truffle.polyglot.PolyglotFunction<T, R> implements java.util.function.Function<T, R>, com.oracle.truffle.polyglot.HostWrapper
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotFunction
super_class: java.lang.Object
{
final java.lang.Object guestObject;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.polyglot.PolyglotLanguageContext languageContext;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.api.CallTarget apply;
descriptor: Lcom/oracle/truffle/api/CallTarget;
flags: (0x0010) ACC_FINAL
void <init>(com.oracle.truffle.polyglot.PolyglotLanguageContext, , java.lang.Class<?>, java.lang.reflect.Type);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/reflect/Type;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
2: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
3: aload 0
aload 1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 3
aload 4
invokestatic com.oracle.truffle.polyglot.PolyglotFunction$Apply.lookup:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/oracle/truffle/api/CallTarget;
putfield com.oracle.truffle.polyglot.PolyglotFunction.apply:Lcom/oracle/truffle/api/CallTarget;
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
0 5 1 languageContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
0 5 2 function Ljava/lang/Object;
0 5 3 returnClass Ljava/lang/Class<*>;
0 5 4 returnType Ljava/lang/reflect/Type;
Signature: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Class<*>;Ljava/lang/reflect/Type;)V
MethodParameters:
Name Flags
languageContext
function
returnClass
returnType
public R apply();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.apply:Lcom/oracle/truffle/api/CallTarget;
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
aastore
dup
iconst_1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
aastore
dup
iconst_2
aload 1
aastore
invokeinterface com.oracle.truffle.api.CallTarget.call:([Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
0 1 1 t TT;
Signature: (TT;)TR;
MethodParameters:
Name Flags
t
public com.oracle.truffle.polyglot.PolyglotLanguageContext getLanguageContext();
descriptor: ()Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
public java.lang.Object getGuestObject();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
public com.oracle.truffle.polyglot.PolyglotContextImpl getContext();
descriptor: ()Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
getfield com.oracle.truffle.polyglot.PolyglotLanguageContext.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.polyglot.HostWrapper.toString:(Lcom/oracle/truffle/polyglot/HostWrapper;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
invokestatic com.oracle.truffle.polyglot.HostWrapper.hashCode:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.oracle.truffle.polyglot.PolyglotFunction
ifeq 2
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.languageContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
aload 1
checkcast com.oracle.truffle.polyglot.PolyglotFunction
getfield com.oracle.truffle.polyglot.PolyglotFunction.guestObject:Ljava/lang/Object;
invokestatic com.oracle.truffle.polyglot.HostWrapper.equals:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotFunction<TT;TR;>;
0 3 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public static <T> com.oracle.truffle.polyglot.PolyglotFunction<?, ?> create(com.oracle.truffle.polyglot.PolyglotLanguageContext, , java.lang.Class<?>, java.lang.reflect.Type);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/reflect/Type;)Lcom/oracle/truffle/polyglot/PolyglotFunction;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new com.oracle.truffle.polyglot.PolyglotFunction
dup
aload 0
aload 1
aload 2
aload 3
invokespecial com.oracle.truffle.polyglot.PolyglotFunction.<init>:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/reflect/Type;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 languageContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
0 1 1 function Ljava/lang/Object;
0 1 2 returnClass Ljava/lang/Class<*>;
0 1 3 returnType Ljava/lang/reflect/Type;
Signature: <T:Ljava/lang/Object;>(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;Ljava/lang/Class<*>;Ljava/lang/reflect/Type;)Lcom/oracle/truffle/polyglot/PolyglotFunction<**>;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
languageContext
function
returnClass
returnType
}
Signature: <T:Ljava/lang/Object;R:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/function/Function<TT;TR;>;Lcom/oracle/truffle/polyglot/HostWrapper;
SourceFile: "PolyglotFunction.java"
NestMembers:
com.oracle.truffle.polyglot.PolyglotFunction$Apply
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
final Apply = com.oracle.truffle.polyglot.PolyglotFunction$Apply of com.oracle.truffle.polyglot.PolyglotFunction