class org.bson.util.ClassAncestry
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.util.ClassAncestry
super_class: java.lang.Object
{
private static final java.util.concurrent.ConcurrentMap<java.lang.Class<?>, java.util.List<java.lang.Class<?>>> _ancestryCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Ljava/util/List<Ljava/lang/Class<*>;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.bson.util.CopyOnWriteMap.newHashMap:()Lorg/bson/util/CopyOnWriteMap;
putstatic org.bson.util.ClassAncestry._ancestryCache:Ljava/util/concurrent/ConcurrentMap;
return
LocalVariableTable:
Start End Slot Name Signature
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/bson/util/ClassAncestry;
public static <T> java.util.List<java.lang.Class<?>> getAncestry(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic org.bson.util.ClassAncestry.getClassAncestryCache:()Ljava/util/concurrent/ConcurrentMap;
astore 1
start local 1 1: StackMap locals: java.util.concurrent.ConcurrentMap
StackMap stack:
aload 1
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
areturn
4: StackMap locals: java.util.List
StackMap stack:
aload 1
aload 0
aload 0
invokestatic org.bson.util.ClassAncestry.computeAncestry:(Ljava/lang/Class;)Ljava/util/List;
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 5: goto 1
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 c Ljava/lang/Class<TT;>;
1 6 1 cache Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Ljava/util/List<Ljava/lang/Class<*>;>;>;
2 5 2 cachedResult Ljava/util/List<Ljava/lang/Class<*>;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Ljava/util/List<Ljava/lang/Class<*>;>;
MethodParameters:
Name Flags
c final
private static java.util.List<java.lang.Class<?>> computeAncestry(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 1
ldc Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
aload 1
invokestatic org.bson.util.ClassAncestry.computeAncestry:(Ljava/lang/Class;Ljava/util/List;)V
3: aload 1
invokestatic java.util.Collections.reverse:(Ljava/util/List;)V
4: new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 c Ljava/lang/Class<*>;
1 5 1 result Ljava/util/List<Ljava/lang/Class<*>;>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<Ljava/lang/Class<*>;>;
MethodParameters:
Name Flags
c final
private static <T> void computeAncestry(java.lang.Class<T>, java.util.List<java.lang.Class<?>>);
descriptor: (Ljava/lang/Class;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
ldc Ljava/lang/Object;
if_acmpne 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
astore 2
start local 2 3: aload 2
arraylength
iconst_1
isub
istore 3
start local 3 4: goto 7
5: StackMap locals: java.lang.Class[] int
StackMap stack:
aload 2
iload 3
aaload
aload 1
invokestatic org.bson.util.ClassAncestry.computeAncestry:(Ljava/lang/Class;Ljava/util/List;)V
6: iinc 3 -1
StackMap locals:
StackMap stack:
7: iload 3
ifge 5
end local 3 8: aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
aload 1
invokestatic org.bson.util.ClassAncestry.computeAncestry:(Ljava/lang/Class;Ljava/util/List;)V
9: aload 1
aload 0
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 11
10: aload 1
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 c Ljava/lang/Class<TT;>;
0 12 1 result Ljava/util/List<Ljava/lang/Class<*>;>;
3 12 2 interfaces [Ljava/lang/Class;
4 8 3 i I
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/util/List<Ljava/lang/Class<*>;>;)V
MethodParameters:
Name Flags
c final
result final
private static java.util.concurrent.ConcurrentMap<java.lang.Class<?>, java.util.List<java.lang.Class<?>>> getClassAncestryCache();
descriptor: ()Ljava/util/concurrent/ConcurrentMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.bson.util.ClassAncestry._ancestryCache:Ljava/util/concurrent/ConcurrentMap;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Ljava/util/List<Ljava/lang/Class<*>;>;>;
}
SourceFile: "ClassAncestry.java"