public interface jdk.incubator.foreign.LibraryLookup
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: jdk.incubator.foreign.LibraryLookup
super_class: java.lang.Object
{
public abstract java.util.Optional<jdk.incubator.foreign.LibraryLookup$Symbol> lookup(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljdk/incubator/foreign/LibraryLookup$Symbol;>;
MethodParameters:
Name Flags
name
public static jdk.incubator.foreign.LibraryLookup ofDefault();
descriptor: ()Ljdk/incubator/foreign/LibraryLookup;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
new java.lang.RuntimePermission
dup
ldc "java.foreign.getDefaultLibrary"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
invokestatic jdk.internal.foreign.LibrariesHelper.getDefaultLibrary:()Ljdk/incubator/foreign/LibraryLookup;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 security Ljava/lang/SecurityManager;
public static jdk.incubator.foreign.LibraryLookup ofPath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/foreign/LibraryLookup;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokeinterface java.nio.file.Path.isAbsolute:()Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Not an absolute path: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
start local 1 4: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 2
aload 1
invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
7: StackMap locals: java.lang.String java.lang.SecurityManager
StackMap stack:
aload 1
invokestatic jdk.internal.foreign.LibrariesHelper.load:(Ljava/lang/String;)Ljdk/incubator/foreign/LibraryLookup;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 path Ljava/nio/file/Path;
4 8 1 absolutePath Ljava/lang/String;
5 8 2 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
path
public static jdk.incubator.foreign.LibraryLookup ofLibrary(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/incubator/foreign/LibraryLookup;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
aload 0
invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 8
5: new java.lang.UnsatisfiedLinkError
dup
6: new java.lang.StringBuilder
dup
ldc "Directory separator should not appear in library name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.internal.foreign.LibrariesHelper.loadLibrary:(Ljava/lang/String;)Ljdk/incubator/foreign/LibraryLookup;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 libName Ljava/lang/String;
2 9 1 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
libName
}
SourceFile: "LibraryLookup.java"
NestMembers:
jdk.incubator.foreign.LibraryLookup$Symbol
InnerClasses:
public abstract Symbol = jdk.incubator.foreign.LibraryLookup$Symbol of jdk.incubator.foreign.LibraryLookup