public class javax.tools.ToolProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.tools.ToolProvider
super_class: java.lang.Object
{
private static final java.lang.String systemJavaCompilerModule;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.compiler"
private static final java.lang.String systemJavaCompilerName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.tools.javac.api.JavacTool"
private static final java.lang.String systemDocumentationToolModule;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.javadoc"
private static final java.lang.String systemDocumentationToolName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.javadoc.internal.api.JavadocTool"
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/tools/ToolProvider;
public static javax.tools.JavaCompiler getSystemJavaCompiler();
descriptor: ()Ljavax/tools/JavaCompiler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Ljavax/tools/JavaCompiler;
1: ldc "jdk.compiler"
ldc "com.sun.tools.javac.api.JavacTool"
2: invokestatic javax.tools.ToolProvider.getSystemTool:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
checkcast javax.tools.JavaCompiler
areturn
LocalVariableTable:
Start End Slot Name Signature
public static javax.tools.DocumentationTool getSystemDocumentationTool();
descriptor: ()Ljavax/tools/DocumentationTool;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Ljavax/tools/DocumentationTool;
1: ldc "jdk.javadoc"
ldc "jdk.javadoc.internal.api.JavadocTool"
2: invokestatic javax.tools.ToolProvider.getSystemTool:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
checkcast javax.tools.DocumentationTool
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.ClassLoader getSystemToolClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9")
private static <T> T getSystemTool(java.lang.Class<T>, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
astore 3
start local 3 1: aload 3
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: java.lang.Class java.lang.String java.lang.String java.util.ServiceLoader top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 4
start local 4 3: aload 4
aload 1
invokestatic javax.tools.ToolProvider.matches:(Ljava/lang/Object;Ljava/lang/String;)Z
ifeq 6
4: aload 4
5: areturn
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 3 7: goto 10
StackMap locals: java.lang.Class java.lang.String java.lang.String
StackMap stack: java.util.ServiceConfigurationError
8: astore 3
start local 3 9: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 10: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 clazz Ljava/lang/Class<TT;>;
0 11 1 moduleName Ljava/lang/String;
0 11 2 className Ljava/lang/String;
1 7 3 sl Ljava/util/ServiceLoader<TT;>;
3 6 4 tool TT;
9 10 3 e Ljava/util/ServiceConfigurationError;
Exception table:
from to target type
0 5 8 Class java.util.ServiceConfigurationError
6 7 8 Class java.util.ServiceConfigurationError
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/String;Ljava/lang/String;)TT;
MethodParameters:
Name Flags
clazz
moduleName
className
private static <T> boolean matches(T, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic run(Ljava/lang/Object;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;
javax/tools/ToolProvider.lambda$0(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
astore 2
start local 2 1: aload 2
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 tool TT;
0 2 1 moduleName Ljava/lang/String;
1 2 2 pa Ljava/security/PrivilegedAction<Ljava/lang/Boolean;>;
Signature: <T:Ljava/lang/Object;>(TT;Ljava/lang/String;)Z
MethodParameters:
Name Flags
tool
moduleName
private static java.lang.Boolean lambda$0(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=2
0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Module.getName:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
aload 1
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 3 end local 2 LocalVariableTable:
Start End Slot Name Signature
1 3 2 toolModule Ljava/lang/Module;
2 3 3 toolModuleName Ljava/lang/String;
}
SourceFile: "ToolProvider.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles