public abstract class sun.jvm.hotspot.ui.table.TableModelComparator implements java.util.Comparator<java.lang.Object>
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=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 16
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/Comparable;
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/Comparable;
astore 5
start local 5 4: aload 4
ifnonnull 6
aload 5
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.Comparable java.lang.Comparable
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:
aload 4
aload 5
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
istore 6
start local 6 11: iload 6
ifeq 15
12: aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.ascending:Z
ifeq 13
iload 6
goto 14
StackMap locals: int
StackMap stack:
13: iload 6
ineg
StackMap locals:
StackMap stack: int
14: ireturn
end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
16: iload 3
aload 0
getfield sun.jvm.hotspot.ui.table.TableModelComparator.columns:[I
arraylength
if_icmplt 2
end local 3 17: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/jvm/hotspot/ui/table/TableModelComparator;
0 18 1 row1 Ljava/lang/Object;
0 18 2 row2 Ljava/lang/Object;
1 17 3 i I
3 15 4 o1 Ljava/lang/Comparable<Ljava/lang/Object;>;
4 15 5 o2 Ljava/lang/Comparable<Ljava/lang/Object;>;
11 15 6 result I
MethodParameters:
Name Flags
row1
row2
public abstract java.lang.Comparable<?> getValueForColumn(, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Comparable;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (Ljava/lang/Object;I)Ljava/lang/Comparable<*>;
MethodParameters:
Name Flags
obj
column
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Ljava/lang/Object;>;
SourceFile: "TableModelComparator.java"