public final class org.graalvm.compiler.core.common.util.ModuleAPI
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.core.common.util.ModuleAPI
super_class: java.lang.Object
{
private final java.lang.reflect.Method method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static final org.graalvm.compiler.core.common.util.ModuleAPI getModule;
descriptor: Lorg/graalvm/compiler/core/common/util/ModuleAPI;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.graalvm.compiler.core.common.util.ModuleAPI getResourceAsStream;
descriptor: Lorg/graalvm/compiler/core/common/util/ModuleAPI;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.graalvm.compiler.core.common.util.ModuleAPI canRead;
descriptor: Lorg/graalvm/compiler/core/common/util/ModuleAPI;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.graalvm.compiler.core.common.util.ModuleAPI isExported;
descriptor: Lorg/graalvm/compiler/core/common/util/ModuleAPI;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.graalvm.compiler.core.common.util.ModuleAPI isExportedTo;
descriptor: Lorg/graalvm/compiler/core/common/util/ModuleAPI;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=1, args_size=0
0: ldc Lorg/graalvm/compiler/core/common/util/ModuleAPI;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.common.util.ModuleAPI.$assertionsDisabled:Z
3: getstatic org.graalvm.compiler.core.common.util.Util.JAVA_SPECIFICATION_VERSION:I
bipush 9
if_icmplt 13
4: new org.graalvm.compiler.core.common.util.ModuleAPI
dup
ldc Ljava/lang/Class;
ldc "getModule"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.getModule:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
5: getstatic org.graalvm.compiler.core.common.util.ModuleAPI.getModule:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
astore 0
start local 0 6: new org.graalvm.compiler.core.common.util.ModuleAPI
dup
aload 0
ldc "getResourceAsStream"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.getResourceAsStream:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
7: new org.graalvm.compiler.core.common.util.ModuleAPI
dup
aload 0
ldc "canRead"
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.canRead:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
8: new org.graalvm.compiler.core.common.util.ModuleAPI
dup
aload 0
ldc "isExported"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.isExported:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
9: new org.graalvm.compiler.core.common.util.ModuleAPI
dup
aload 0
ldc "isExported"
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
dup
iconst_1
aload 0
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.isExportedTo:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
end local 0 10: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
11: astore 0
start local 0 12: new java.lang.InternalError
dup
aload 0
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 13: StackMap locals:
StackMap stack:
new org.graalvm.compiler.core.common.util.ModuleAPI
dup
aconst_null
invokespecial org.graalvm.compiler.core.common.util.ModuleAPI.<init>:(Ljava/lang/reflect/Method;)V
astore 0
start local 0 14: aload 0
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.getModule:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
15: aload 0
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.getResourceAsStream:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
16: aload 0
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.canRead:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
17: aload 0
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.isExported:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
18: aload 0
putstatic org.graalvm.compiler.core.common.util.ModuleAPI.isExportedTo:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
end local 0 19: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
6 10 0 moduleClass Ljava/lang/Class<*>;
12 13 0 e Ljava/lang/Exception;
14 19 0 unavailable Lorg/graalvm/compiler/core/common/util/ModuleAPI;
Exception table:
from to target type
4 10 11 Class java.lang.NoSuchMethodException
4 10 11 Class java.lang.SecurityException
private void <init>(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)V
flags: (0x0002) ACC_PRIVATE
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 0
aload 1
putfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/common/util/ModuleAPI;
0 3 1 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
method
public <T> T invokeStatic([]);
descriptor: ([Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.core.common.util.ModuleAPI.checkAvailability:()V
1: getstatic org.graalvm.compiler.core.common.util.ModuleAPI.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
aconst_null
aload 1
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 5: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/core/common/util/ModuleAPI;
0 6 1 args [Ljava/lang/Object;
5 6 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.IllegalAccessException
2 3 4 Class java.lang.IllegalArgumentException
2 3 4 Class java.lang.reflect.InvocationTargetException
Signature: <T:Ljava/lang/Object;>([Ljava/lang/Object;)TT;
MethodParameters:
Name Flags
args
public <T> T invoke(, []);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.graalvm.compiler.core.common.util.ModuleAPI.checkAvailability:()V
1: getstatic org.graalvm.compiler.core.common.util.ModuleAPI.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
aload 1
aload 2
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new java.lang.InternalError
dup
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/core/common/util/ModuleAPI;
0 6 1 receiver Ljava/lang/Object;
0 6 2 args [Ljava/lang/Object;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.IllegalAccessException
2 3 4 Class java.lang.IllegalArgumentException
2 3 4 Class java.lang.reflect.InvocationTargetException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;[Ljava/lang/Object;)TT;
MethodParameters:
Name Flags
receiver
args
private void checkAvailability();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.common.util.ModuleAPI.method:Ljava/lang/reflect/Method;
ifnonnull 2
1: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Cannot use Module API on JDK "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.graalvm.compiler.core.common.util.Util.JAVA_SPECIFICATION_VERSION:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/common/util/ModuleAPI;
Exceptions:
throws java.lang.InternalError
}
SourceFile: "ModuleAPI.java"