public abstract class sun.jvm.hotspot.ui.table.TableModelComparator implements java.util.Comparator
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.jvm.hotspot.ui.table.TableModelComparator
super_class: java.lang.Object
{
private boolean ascending;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected javax.swing.table.TableModel model;
descriptor: Ljavax/swing/table/TableModel;
flags: (0x0004) ACC_PROTECTED
private int[] columns;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
public void <init>(javax.swing.table.TableModel);
descriptor: (Ljavax/swing/table/TableModel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.jvm.hotspot.ui.table.TableModelComparator.model:Ljavax/swing/table/TableModel;
2: aload 0
aload 1
invokeinterface javax.swing.table.TableModel.getColumnCount:()I
newarray 10
putfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
3: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iconst_0
iconst_m1
iastore
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
0 5 1 model Ljavax/swing/table/TableModel;
MethodParameters:
Name Flags
model
public void addColumn(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.model:Ljavax/swing/table/TableModel;
invokeinterface javax.swing.table.TableModel.getColumnCount:()I
newarray 10
astore 2
start local 2 1: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iconst_1
aload 2
iconst_0
aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
aload 2
putfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
3: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iconst_0
iload 1
iastore
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
0 5 1 column I
1 5 2 tempArray [I
MethodParameters:
Name Flags
column
public int getColumn();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iconst_0
iaload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
public void setAscending(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.jvm.hotspot.ui.table.TableModelComparator.ascending:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
0 2 1 ascending Z
MethodParameters:
Name Flags
ascending
public boolean isAscending();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.ascending:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 20
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iload 3
iaload
invokevirtual sun.jvm.hotspot.ui.table.TableModelComparator.getValueForColumn:(Ljava/lang/Object;I)Ljava/lang/Object;
astore 4
start local 4 3: aload 0
aload 2
aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
iload 3
iaload
invokevirtual sun.jvm.hotspot.ui.table.TableModelComparator.getValueForColumn:(Ljava/lang/Object;I)Ljava/lang/Object;
astore 5
start local 5 4: aload 4
ifnonnull 6
aload 5
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.Object java.lang.Object
StackMap stack:
aload 4
ifnonnull 8
7: iconst_m1
ireturn
8: StackMap locals:
StackMap stack:
aload 5
ifnonnull 10
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 11: aload 4
instanceof java.lang.Comparable
ifeq 15
12: aload 4
checkcast java.lang.Comparable
astore 7
start local 7 13: aload 5
checkcast java.lang.Comparable
astore 8
start local 8 14: aload 7
aload 8
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
istore 6
end local 8 end local 7 15: StackMap locals: int
StackMap stack:
iload 6
ifeq 19
16: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.ascending:Z
ifeq 17
iload 6
goto 18
StackMap locals:
StackMap stack:
17: iload 6
ineg
StackMap locals:
StackMap stack: int
18: ireturn
end local 6 end local 5 end local 4 19: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
20: iload 3
aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
arraylength
if_icmplt 2
end local 3 21: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
0 22 1 row1 Ljava/lang/Object;
0 22 2 row2 Ljava/lang/Object;
1 21 3 i I
3 19 4 o1 Ljava/lang/Object;
4 19 5 o2 Ljava/lang/Object;
11 19 6 result I
13 15 7 c1 Ljava/lang/Comparable;
14 15 8 c2 Ljava/lang/Comparable;
MethodParameters:
Name Flags
row1
row2
public abstract java.lang.Object getValueForColumn(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
obj
column
}
SourceFile: "TableModelComparator.java"