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 static final boolean useLegacy;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: aconst_null
astore 0
start local 0 1: ldc "java.lang.Module"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
2: goto 4
StackMap locals: java.lang.Class
StackMap stack: java.lang.Throwable
3: pop
4: StackMap locals:
StackMap stack:
aload 0
ifnonnull 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: putstatic javax.tools.ToolProvider.useLegacy:Z
end local 0 7: return
LocalVariableTable:
Start End Slot Name Signature
1 7 0 c Ljava/lang/Class<*>;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
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;
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()
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: getstatic javax.tools.ToolProvider.useLegacy:Z
ifeq 6
1: aload 2
iconst_1
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
2: aload 0
invokevirtual java.lang.Class.asSubclass:(Ljava/lang/Class;)Ljava/lang/Class;
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 3
start local 3 5: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
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 7: aload 3
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 4
start local 4 8: goto 13
9: 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 10: aload 5
aload 1
invokestatic javax.tools.ToolProvider.matches:(Ljava/lang/Object;Ljava/lang/String;)Z
ifeq 13
11: aload 5
12: areturn
end local 5 13: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 4 end local 3 14: goto 17
StackMap locals: java.lang.Class java.lang.String java.lang.String
StackMap stack: java.util.ServiceConfigurationError
15: astore 3
start local 3 16: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 17: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 clazz Ljava/lang/Class<TT;>;
0 18 1 moduleName Ljava/lang/String;
0 18 2 className Ljava/lang/String;
5 6 3 e Ljava/lang/ReflectiveOperationException;
7 14 3 sl Ljava/util/ServiceLoader<TT;>;
8 14 4 iter Ljava/util/Iterator<TT;>;
10 13 5 tool TT;
16 17 3 e Ljava/util/ServiceConfigurationError;
Exception table:
from to target type
1 3 4 Class java.lang.ReflectiveOperationException
6 12 15 Class java.util.ServiceConfigurationError
13 14 15 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=3, locals=6, args_size=2
0: ldc Ljava/lang/Class;
ldc "getModule"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
start local 2 1: aload 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "getName"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 4
start local 4 3: aload 4
aload 3
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 1
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
5: areturn
end local 5 end local 4 end local 3 end local 2 6: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
pop
7: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
LocalVariableTable:
Start End Slot Name Signature
1 6 2 getModuleMethod Ljava/lang/reflect/Method;
2 6 3 toolModule Ljava/lang/Object;
3 6 4 getNameMethod Ljava/lang/reflect/Method;
4 6 5 toolModuleName Ljava/lang/String;
Exception table:
from to target type
0 5 6 Class java.lang.reflect.InvocationTargetException
0 5 6 Class java.lang.NoSuchMethodException
0 5 6 Class java.lang.IllegalAccessException
}
SourceFile: "ToolProvider.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles