class org.xml.sax.helpers.NewInstance
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.xml.sax.helpers.NewInstance
super_class: java.lang.Object
{
private static final java.lang.String DEFAULT_PACKAGE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.org.apache.xerces.internal"
private static final java.lang.String DEFAULT_CLASS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.org.apache.xerces.internal.parsers.SAXParser"
void <init>();
descriptor: ()V
flags: (0x0000)
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 Lorg/xml/sax/helpers/NewInstance;
static <T> T newInstance(java.lang.Class<T>, java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
astore 3
start local 3 1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 2: aload 4
ldc "com.sun.org.apache.xerces.internal.parsers.SAXParser"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
new com.sun.org.apache.xerces.internal.parsers.SAXParser
dup
invokespecial com.sun.org.apache.xerces.internal.parsers.SAXParser.<init>:()V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
4: StackMap locals: java.lang.ClassLoader java.lang.String
StackMap stack:
iconst_0
istore 5
start local 5 5: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 8
6: aload 4
ifnull 8
aload 4
ldc "com.sun.org.apache.xerces.internal"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: iconst_1
istore 5
8: StackMap locals: int
StackMap stack:
aload 3
ifnull 9
iload 5
ifeq 11
9: StackMap locals:
StackMap stack:
aload 4
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
start local 6 10: goto 12
end local 6 11: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
start local 6 12: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 6
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;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
13: areturn
14: StackMap locals:
StackMap stack: java.lang.Exception
astore 7
start local 7 15: new java.lang.InstantiationException
dup
aload 7
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.lang.InstantiationException.<init>:(Ljava/lang/String;)V
athrow
end local 7 end local 6 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 16 0 type Ljava/lang/Class<TT;>;
0 16 1 loader Ljava/lang/ClassLoader;
0 16 2 clsName Ljava/lang/String;
1 16 3 classLoader Ljava/lang/ClassLoader;
2 16 4 className Ljava/lang/String;
5 16 5 internal Z
10 11 6 driverClass Ljava/lang/Class<*>;
12 16 6 driverClass Ljava/lang/Class<*>;
15 16 7 ex Ljava/lang/Exception;
Exception table:
from to target type
12 13 14 Class java.lang.NoSuchMethodException
12 13 14 Class java.lang.SecurityException
12 13 14 Class java.lang.reflect.InvocationTargetException
Exceptions:
throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/ClassLoader;Ljava/lang/String;)TT;
MethodParameters:
Name Flags
type
loader
clsName
}
SourceFile: "NewInstance.java"