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"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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;
RuntimeVisibleAnnotations:
java.lang.Deprecated(forRemoval = true, since = "14")
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 4
start local 4 2: goto 7
3: StackMap locals: java.util.ServiceLoader java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 5
start local 5 4: aload 5
aload 1
invokestatic javax.tools.ToolProvider.matches:(Ljava/lang/Object;Ljava/lang/String;)Z
ifeq 7
5: aload 5
6: areturn
end local 5 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 4 end local 3 8: goto 11
StackMap locals: java.lang.Class java.lang.String java.lang.String
StackMap stack: java.util.ServiceConfigurationError
9: astore 3
start local 3 10: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 clazz Ljava/lang/Class<TT;>;
0 12 1 moduleName Ljava/lang/String;
0 12 2 className Ljava/lang/String;
1 8 3 sl Ljava/util/ServiceLoader<TT;>;
2 8 4 iter Ljava/util/Iterator<TT;>;
4 7 5 tool TT;
10 11 3 e Ljava/util/ServiceConfigurationError;
Exception table:
from to target type
0 6 9 Class java.util.ServiceConfigurationError
7 8 9 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
invokevirtual java.lang.String.equals:(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