public interface java.util.spi.ToolProvider
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: java.util.spi.ToolProvider
super_class: java.lang.Object
{
public abstract java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract int run(java.io.PrintWriter, java.io.PrintWriter, java.lang.String[]);
descriptor: (Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)I
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
out
err
args
public int run(java.io.PrintStream, java.io.PrintStream, java.lang.String[]);
descriptor: (Ljava/io/PrintStream;Ljava/io/PrintStream;[Ljava/lang/String;)I
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 3
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
3: StackMap locals: int int java.lang.String[]
StackMap stack:
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 3
6: new java.io.PrintWriter
dup
aload 1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
astore 4
start local 4 7: new java.io.PrintWriter
dup
aload 2
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
astore 5
start local 5 8: aload 0
aload 4
aload 5
aload 3
invokeinterface java.util.spi.ToolProvider.run:(Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)I
istore 7
9: aload 4
invokevirtual java.io.PrintWriter.flush:()V
10: aload 5
invokevirtual java.io.PrintWriter.flush:()V
11: iload 7
ireturn
12: StackMap locals: java.util.spi.ToolProvider java.io.PrintStream java.io.PrintStream java.lang.String[] java.io.PrintWriter java.io.PrintWriter
StackMap stack: java.lang.Throwable
astore 6
13: aload 4
invokevirtual java.io.PrintWriter.flush:()V
14: aload 6
athrow
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
16: aload 5
invokevirtual java.io.PrintWriter.flush:()V
17: aload 8
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljava/util/spi/ToolProvider;
0 18 1 out Ljava/io/PrintStream;
0 18 2 err Ljava/io/PrintStream;
0 18 3 args [Ljava/lang/String;
7 18 4 outWriter Ljava/io/PrintWriter;
8 18 5 errWriter Ljava/io/PrintWriter;
Exception table:
from to target type
8 9 12 any
8 10 15 any
12 15 15 any
MethodParameters:
Name Flags
out
err
args
public static java.util.Optional<java.util.spi.ToolProvider> findFirst(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, 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.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 2: aload 1
aload 0
invokedynamic run(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/security/PrivilegedAction;
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;
java/util/spi/ToolProvider.lambda$0(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/util/Optional; (6 itf)
()Ljava/util/Optional;
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.util.Optional
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
2 4 1 systemClassLoader Ljava/lang/ClassLoader;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/util/spi/ToolProvider;>;
MethodParameters:
Name Flags
name
private static java.util.Optional lambda$0(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/util/Optional;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
0: ldc Ljava/util/spi/ToolProvider;
aload 0
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
1: astore 2
start local 2 2: aload 2
invokevirtual java.util.ServiceLoader.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
3: aload 1
invokedynamic test(Ljava/lang/String;)Ljava/util/function/Predicate;
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;)Z
java/util/spi/ToolProvider.lambda$1(Ljava/lang/String;Ljava/util/spi/ToolProvider;)Z (6 itf)
(Ljava/util/spi/ToolProvider;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
5: areturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
2 6 2 sl Ljava/util/ServiceLoader<Ljava/util/spi/ToolProvider;>;
private static boolean lambda$1(java.lang.String, java.util.spi.ToolProvider);
descriptor: (Ljava/lang/String;Ljava/util/spi/ToolProvider;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface java.util.spi.ToolProvider.name:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 p Ljava/util/spi/ToolProvider;
}
SourceFile: "ToolProvider.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles