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: .line 105
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            astore 0 /* security */
        start local 0 // java.lang.SecurityManager security
         1: .line 106
            aload 0 /* security */
            ifnull 3
         2: .line 107
            aload 0 /* security */
            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: .line 109
      StackMap locals: java.lang.SecurityManager
      StackMap stack:
            invokestatic jdk.internal.foreign.LibrariesHelper.getDefaultLibrary:()Ljdk/incubator/foreign/LibraryLookup;
            areturn
        end local 0 // java.lang.SecurityManager security
      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 // java.nio.file.Path path
         0: .line 120
            aload 0 /* path */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 121
            aload 0 /* path */
            invokeinterface java.nio.file.Path.isAbsolute:()Z
            ifne 3
         2: .line 122
            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 /* path */
            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: .line 124
      StackMap locals:
      StackMap stack:
            aload 0 /* path */
            invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
            astore 1 /* absolutePath */
        start local 1 // java.lang.String absolutePath
         4: .line 125
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            astore 2 /* security */
        start local 2 // java.lang.SecurityManager security
         5: .line 126
            aload 2 /* security */
            ifnull 7
         6: .line 127
            aload 2 /* security */
            aload 1 /* absolutePath */
            invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
         7: .line 129
      StackMap locals: java.lang.String java.lang.SecurityManager
      StackMap stack:
            aload 1 /* absolutePath */
            invokestatic jdk.internal.foreign.LibrariesHelper.load:(Ljava/lang/String;)Ljdk/incubator/foreign/LibraryLookup;
            areturn
        end local 2 // java.lang.SecurityManager security
        end local 1 // java.lang.String absolutePath
        end local 0 // java.nio.file.Path path
      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 // java.lang.String libName
         0: .line 141
            aload 0 /* libName */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 142
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            astore 1 /* security */
        start local 1 // java.lang.SecurityManager security
         2: .line 143
            aload 1 /* security */
            ifnull 4
         3: .line 144
            aload 1 /* security */
            aload 0 /* libName */
            invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
         4: .line 146
      StackMap locals: java.lang.SecurityManager
      StackMap stack:
            aload 0 /* libName */
            getstatic java.io.File.separatorChar:C
            invokevirtual java.lang.String.indexOf:(I)I
            iconst_m1
            if_icmpeq 8
         5: .line 147
            new java.lang.UnsatisfiedLinkError
            dup
         6: .line 148
            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 /* libName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         7: .line 147
            invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 150
      StackMap locals:
      StackMap stack:
            aload 0 /* libName */
            invokestatic jdk.internal.foreign.LibrariesHelper.loadLibrary:(Ljava/lang/String;)Ljdk/incubator/foreign/LibraryLookup;
            areturn
        end local 1 // java.lang.SecurityManager security
        end local 0 // java.lang.String libName
      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