public class org.stringtemplate.v4.misc.ObjectModelAdaptor implements org.stringtemplate.v4.ModelAdaptor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.stringtemplate.v4.misc.ObjectModelAdaptor
super_class: java.lang.Object
{
protected static final java.lang.reflect.Member INVALID_MEMBER;
descriptor: Ljava/lang/reflect/Member;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected static final java.util.Map<java.lang.Class<?>, java.util.Map<java.lang.String, java.lang.reflect.Member>> membersCache;
descriptor: Ljava/util/Map;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/reflect/Member;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lorg/stringtemplate/v4/misc/ObjectModelAdaptor;
ldc "INVALID_MEMBER"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: goto 7
end local 0 StackMap locals:
StackMap stack: java.lang.NoSuchFieldException
2: pop
3: aconst_null
astore 0
start local 0 4: goto 7
end local 0 5: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
6: aconst_null
astore 0
start local 0 7: StackMap locals: java.lang.reflect.Member
StackMap stack:
aload 0
putstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.INVALID_MEMBER:Ljava/lang/reflect/Member;
end local 0 8: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
9: putstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.membersCache:Ljava/util/Map;
10: return
LocalVariableTable:
Start End Slot Name Signature
1 2 0 invalidMember Ljava/lang/reflect/Member;
4 5 0 invalidMember Ljava/lang/reflect/Member;
7 8 0 invalidMember Ljava/lang/reflect/Member;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchFieldException
0 1 5 Class java.lang.SecurityException
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 Lorg/stringtemplate/v4/misc/ObjectModelAdaptor;
public synchronized java.lang.Object getProperty(org.stringtemplate.v4.Interpreter, org.stringtemplate.v4.ST, java.lang.Object, java.lang.Object, java.lang.String);
descriptor: (Lorg/stringtemplate/v4/Interpreter;Lorg/stringtemplate/v4/ST;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "o"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 6
start local 6 3: aload 4
ifnonnull 5
4: aload 0
aload 6
aload 5
aconst_null
invokevirtual org.stringtemplate.v4.misc.ObjectModelAdaptor.throwNoSuchProperty:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/Object;
areturn
5: StackMap locals: java.lang.Class
StackMap stack:
aload 6
aload 5
invokestatic org.stringtemplate.v4.misc.ObjectModelAdaptor.findMember:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Member;
astore 7
start local 7 6: aload 7
ifnull 15
7: aload 7
instanceof java.lang.reflect.Method
ifeq 10
8: aload 7
checkcast java.lang.reflect.Method
aload 3
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
9: areturn
10: StackMap locals: java.lang.reflect.Member
StackMap stack:
aload 7
instanceof java.lang.reflect.Field
ifeq 15
11: aload 7
checkcast java.lang.reflect.Field
aload 3
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
12: areturn
13: StackMap locals:
StackMap stack: java.lang.Exception
astore 8
start local 8 14: aload 0
aload 6
aload 5
aload 8
invokevirtual org.stringtemplate.v4.misc.ObjectModelAdaptor.throwNoSuchProperty:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/Object;
pop
end local 8 15: StackMap locals:
StackMap stack:
aload 0
aload 6
aload 5
aconst_null
invokevirtual org.stringtemplate.v4.misc.ObjectModelAdaptor.throwNoSuchProperty:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/Object;
areturn
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 this Lorg/stringtemplate/v4/misc/ObjectModelAdaptor;
0 16 1 interp Lorg/stringtemplate/v4/Interpreter;
0 16 2 self Lorg/stringtemplate/v4/ST;
0 16 3 o Ljava/lang/Object;
0 16 4 property Ljava/lang/Object;
0 16 5 propertyName Ljava/lang/String;
3 16 6 c Ljava/lang/Class<*>;
6 16 7 member Ljava/lang/reflect/Member;
14 15 8 e Ljava/lang/Exception;
Exception table:
from to target type
7 9 13 Class java.lang.Exception
10 12 13 Class java.lang.Exception
Exceptions:
throws org.stringtemplate.v4.misc.STNoSuchPropertyException
MethodParameters:
Name Flags
interp
self
o
property
propertyName
protected static java.lang.reflect.Member findMember(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Member;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "clazz"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "memberName"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.membersCache:Ljava/util/Map;
dup
astore 2
monitorenter
5: getstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.membersCache:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 6: aload 3
ifnull 13
7: aload 3
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.reflect.Member
astore 4
start local 4 8: aload 4
ifnull 15
9: aload 4
getstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.INVALID_MEMBER:Ljava/lang/reflect/Member;
if_acmpeq 10
aload 4
goto 11
StackMap locals: java.util.Map java.util.Map java.lang.reflect.Member
StackMap stack:
10: aconst_null
StackMap locals:
StackMap stack: java.lang.reflect.Member
11: aload 2
monitorexit
12: areturn
end local 4 13: StackMap locals:
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
14: getstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.membersCache:Ljava/util/Map;
aload 0
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 1
iconst_1
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 18: aload 0
new java.lang.StringBuilder
dup
ldc "get"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.stringtemplate.v4.misc.ObjectModelAdaptor.tryGetMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
astore 4
start local 4 19: aload 4
ifnonnull 23
20: aload 0
new java.lang.StringBuilder
dup
ldc "is"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.stringtemplate.v4.misc.ObjectModelAdaptor.tryGetMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
astore 4
21: aload 4
ifnonnull 23
22: aload 0
new java.lang.StringBuilder
dup
ldc "has"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.stringtemplate.v4.misc.ObjectModelAdaptor.tryGetMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
astore 4
23: StackMap locals: java.lang.reflect.Member java.lang.String
StackMap stack:
aload 4
ifnonnull 25
24: aload 0
aload 1
invokestatic org.stringtemplate.v4.misc.ObjectModelAdaptor.tryGetField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 4
25: StackMap locals:
StackMap stack:
aload 3
aload 1
aload 4
ifnull 26
aload 4
goto 27
StackMap locals: java.lang.Class java.lang.String java.util.Map java.util.Map java.lang.reflect.Member java.lang.String
StackMap stack: java.util.Map java.lang.String
26: getstatic org.stringtemplate.v4.misc.ObjectModelAdaptor.INVALID_MEMBER:Ljava/lang/reflect/Member;
StackMap locals: java.lang.Class java.lang.String java.util.Map java.util.Map java.lang.reflect.Member java.lang.String
StackMap stack: java.util.Map java.lang.String java.lang.reflect.Member
27: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
28: aload 4
aload 2
monitorexit
29: areturn
end local 5 end local 4 end local 3 30: StackMap locals: java.lang.Class java.lang.String java.util.Map
StackMap stack: java.lang.Throwable
aload 2
monitorexit
31: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 clazz Ljava/lang/Class<*>;
0 32 1 memberName Ljava/lang/String;
6 30 3 members Ljava/util/Map<Ljava/lang/String;Ljava/lang/reflect/Member;>;
8 13 4 member Ljava/lang/reflect/Member;
19 30 4 member Ljava/lang/reflect/Member;
18 30 5 methodSuffix Ljava/lang/String;
Exception table:
from to target type
5 12 30 any
13 29 30 any
30 31 30 any
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/lang/reflect/Member;
MethodParameters:
Name Flags
clazz
memberName
protected static java.lang.reflect.Method tryGetMethod(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
3: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 2
4: areturn
end local 2 5: StackMap locals: java.lang.Class java.lang.String
StackMap stack: java.lang.NoSuchMethodException
pop
goto 7
6: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 clazz Ljava/lang/Class<*>;
0 8 1 methodName Ljava/lang/String;
1 5 2 method Ljava/lang/reflect/Method;
Exception table:
from to target type
0 4 5 Class java.lang.NoSuchMethodException
0 4 6 Class java.lang.SecurityException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
clazz
methodName
protected static java.lang.reflect.Field tryGetField(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.Class.getField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
3: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 2
4: areturn
end local 2 5: StackMap locals: java.lang.Class java.lang.String
StackMap stack: java.lang.NoSuchFieldException
pop
goto 7
6: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 clazz Ljava/lang/Class<*>;
0 8 1 fieldName Ljava/lang/String;
1 5 2 field Ljava/lang/reflect/Field;
Exception table:
from to target type
0 4 5 Class java.lang.NoSuchFieldException
0 4 6 Class java.lang.SecurityException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/lang/reflect/Field;
MethodParameters:
Name Flags
clazz
fieldName
protected throwNoSuchProperty(java.lang.Class<?>, java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.stringtemplate.v4.misc.STNoSuchPropertyException
dup
aload 3
aconst_null
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.stringtemplate.v4.misc.STNoSuchPropertyException.<init>:(Ljava/lang/Exception;Ljava/lang/Object;Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/misc/ObjectModelAdaptor;
0 1 1 clazz Ljava/lang/Class<*>;
0 1 2 propertyName Ljava/lang/String;
0 1 3 cause Ljava/lang/Exception;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/Object;
MethodParameters:
Name Flags
clazz
propertyName
cause
}
SourceFile: "ObjectModelAdaptor.java"