class javax.swing.text.SegmentCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.SegmentCache
super_class: java.lang.Object
{
private static javax.swing.text.SegmentCache sharedCache;
descriptor: Ljavax/swing/text/SegmentCache;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.util.List<javax.swing.text.Segment> segments;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljavax/swing/text/Segment;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new javax.swing.text.SegmentCache
dup
invokespecial javax.swing.text.SegmentCache.<init>:()V
putstatic javax.swing.text.SegmentCache.sharedCache:Ljavax/swing/text/SegmentCache;
return
LocalVariableTable:
Start End Slot Name Signature
public static javax.swing.text.SegmentCache getSharedInstance();
descriptor: ()Ljavax/swing/text/SegmentCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic javax.swing.text.SegmentCache.sharedCache:Ljavax/swing/text/SegmentCache;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static javax.swing.text.Segment getSharedSegment();
descriptor: ()Ljavax/swing/text/Segment;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic javax.swing.text.SegmentCache.getSharedInstance:()Ljavax/swing/text/SegmentCache;
invokevirtual javax.swing.text.SegmentCache.getSegment:()Ljavax/swing/text/Segment;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void releaseSharedSegment(javax.swing.text.Segment);
descriptor: (Ljavax/swing/text/Segment;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic javax.swing.text.SegmentCache.getSharedInstance:()Ljavax/swing/text/SegmentCache;
aload 0
invokevirtual javax.swing.text.SegmentCache.releaseSegment:(Ljavax/swing/text/Segment;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 segment Ljavax/swing/text/Segment;
MethodParameters:
Name Flags
segment
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
bipush 11
invokespecial java.util.ArrayList.<init>:(I)V
putfield javax.swing.text.SegmentCache.segments:Ljava/util/List;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/SegmentCache;
public javax.swing.text.Segment getSegment();
descriptor: ()Ljavax/swing/text/Segment;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield javax.swing.text.SegmentCache.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 2
start local 2 2: iload 2
ifle 5
3: aload 0
getfield javax.swing.text.SegmentCache.segments:Ljava/util/List;
iload 2
iconst_1
isub
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast javax.swing.text.Segment
aload 1
monitorexit
4: areturn
end local 2 5: StackMap locals: javax.swing.text.SegmentCache
StackMap stack:
aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
new javax.swing.text.SegmentCache$CachedSegment
dup
invokespecial javax.swing.text.SegmentCache$CachedSegment.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/text/SegmentCache;
2 5 2 size I
Exception table:
from to target type
1 4 7 any
5 6 7 any
7 8 7 any
public void releaseSegment(javax.swing.text.Segment);
descriptor: (Ljavax/swing/text/Segment;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.swing.text.SegmentCache$CachedSegment
ifeq 9
1: aload 0
dup
astore 2
monitorenter
2: aload 1
aconst_null
putfield javax.swing.text.Segment.array:[C
3: aload 1
iconst_0
putfield javax.swing.text.Segment.count:I
4: aload 0
getfield javax.swing.text.SegmentCache.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 2
monitorexit
6: goto 9
StackMap locals: javax.swing.text.SegmentCache javax.swing.text.Segment javax.swing.text.SegmentCache
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/text/SegmentCache;
0 10 1 segment Ljavax/swing/text/Segment;
Exception table:
from to target type
2 6 7 any
7 8 7 any
MethodParameters:
Name Flags
segment
}
SourceFile: "SegmentCache.java"
NestMembers:
javax.swing.text.SegmentCache$CachedSegment
InnerClasses:
private CachedSegment = javax.swing.text.SegmentCache$CachedSegment of javax.swing.text.SegmentCache