class javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache
super_class: java.lang.Object
{
java.util.Map<javafx.scene.shape.Shape3D$Key, java.lang.ref.SoftReference<javafx.scene.shape.TriangleMesh>> cache;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljavafx/scene/shape/Shape3D$Key;Ljava/lang/ref/SoftReference<Ljavafx/scene/shape/TriangleMesh;>;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
bipush 17
ldc 0.75
invokespecial java.util.HashMap.<init>:(IF)V
putfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
private javafx.scene.shape.TriangleMesh get(javafx.scene.shape.Shape3D$Key);
descriptor: (Ljavafx/scene/shape/Shape3D$Key;)Ljavafx/scene/shape/TriangleMesh;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cleanCache:()V
1: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.SoftReference
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast javafx.scene.shape.TriangleMesh
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: javafx.scene.shape.TriangleMesh
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
0 4 1 key Ljavafx/scene/shape/Shape3D$Key;
MethodParameters:
Name Flags
key
private void put(javafx.scene.shape.Shape3D$Key, javafx.scene.shape.TriangleMesh);
descriptor: (Ljavafx/scene/shape/Shape3D$Key;Ljavafx/scene/shape/TriangleMesh;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cleanCache:()V
1: aload 2
ifnull 3
2: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
new java.lang.ref.SoftReference
dup
aload 2
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
0 4 1 key Ljavafx/scene/shape/Shape3D$Key;
0 4 2 mesh Ljavafx/scene/shape/TriangleMesh;
MethodParameters:
Name Flags
key
mesh
private void cleanCache();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
javafx/scene/shape/PredefinedMeshManager$TriangleMeshCache.lambda$0(Ljava/lang/ref/SoftReference;)Z (6)
(Ljava/lang/ref/SoftReference;)Z
invokeinterface java.util.Collection.removeIf:(Ljava/util/function/Predicate;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
private void clear();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
private int size();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cleanCache:()V
1: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
private void printStats(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " size: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private void invalidateMesh(javafx.scene.shape.Shape3D$Key);
descriptor: (Ljavafx/scene/shape/Shape3D$Key;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 9
1: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.SoftReference
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast javafx.scene.shape.TriangleMesh
astore 2
start local 2 2: aload 2
ifnull 8
3: aload 2
invokevirtual javafx.scene.shape.TriangleMesh.decRef:()V
4: aload 2
invokevirtual javafx.scene.shape.TriangleMesh.getRefCount:()I
istore 3
start local 3 5: iload 3
ifne 9
6: aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 7: goto 9
8: StackMap locals: javafx.scene.shape.TriangleMesh
StackMap stack:
aload 0
getfield javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavafx/scene/shape/PredefinedMeshManager$TriangleMeshCache;
0 10 1 key Ljavafx/scene/shape/Shape3D$Key;
2 9 2 mesh Ljavafx/scene/shape/TriangleMesh;
5 7 3 count I
MethodParameters:
Name Flags
key
private static boolean lambda$0(java.lang.ref.SoftReference);
descriptor: (Ljava/lang/ref/SoftReference;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ref Ljava/lang/ref/SoftReference<Ljavafx/scene/shape/TriangleMesh;>;
}
SourceFile: "PredefinedMeshManager.java"
NestHost: javafx.scene.shape.PredefinedMeshManager
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private TriangleMeshCache = javafx.scene.shape.PredefinedMeshManager$TriangleMeshCache of javafx.scene.shape.PredefinedMeshManager
abstract Key = javafx.scene.shape.Shape3D$Key of javafx.scene.shape.Shape3D