class org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader extends java.lang.ClassLoader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader
super_class: java.lang.ClassLoader
{
private final java.lang.String find;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String replace;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/core/test/NewInstanceTest;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.ClassLoader.<init>:()V
1: getstatic org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual java.lang.String.length:()I
aload 2
invokevirtual java.lang.String.length:()I
if_icmpeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader java.lang.String java.lang.String
StackMap stack:
aload 0
aload 1
putfield org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader.find:Ljava/lang/String;
3: aload 0
aload 2
putfield org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader.replace:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/core/test/NewInstanceTest$ClassTemplateLoader;
0 5 1 find Ljava/lang/String;
0 5 2 replace Ljava/lang/String;
MethodParameters:
Name Flags
find
replace
protected java.lang.Class<?> findClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/NewInstanceTest$ClassTemplateLoader;
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name final
private static int indexOfTemplate(byte[], int, java.lang.String);
descriptor: ([BILjava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 1
istore 3
start local 3 1: goto 13
2: StackMap locals: int
StackMap stack:
iconst_1
istore 4
start local 4 3: iload 3
istore 5
start local 5 4: goto 9
5: StackMap locals: int int
StackMap stack:
aload 0
iload 5
baload
aload 2
iload 5
iload 3
isub
invokevirtual java.lang.String.charAt:(I)C
i2b
if_icmpeq 8
6: iconst_0
istore 4
7: goto 10
8: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 3
aload 2
invokevirtual java.lang.String.length:()I
iadd
if_icmplt 5
end local 5 10: StackMap locals:
StackMap stack:
iload 4
ifeq 12
11: iload 3
ireturn
end local 4 12: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
aload 0
arraylength
if_icmplt 2
end local 3 14: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 b [B
0 15 1 index I
0 15 2 find Ljava/lang/String;
1 14 3 i I
3 12 4 match Z
4 10 5 j I
MethodParameters:
Name Flags
b
index
find
private static void replaceTemplate(byte[], int, java.lang.String);
descriptor: ([BILjava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
istore 3
start local 3 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 3
aload 2
iload 3
iload 1
isub
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 1
aload 2
invokevirtual java.lang.String.length:()I
iadd
if_icmplt 2
end local 3 5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 b [B
0 6 1 index I
0 6 2 replace Ljava/lang/String;
1 5 3 i I
MethodParameters:
Name Flags
b
index
replace
}
SourceFile: "NewInstanceTest.java"
NestHost: org.graalvm.compiler.core.test.NewInstanceTest
InnerClasses:
private ClassTemplateLoader = org.graalvm.compiler.core.test.NewInstanceTest$ClassTemplateLoader of org.graalvm.compiler.core.test.NewInstanceTest