class javax.swing.colorchooser.ColorModel
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.colorchooser.ColorModel
super_class: java.lang.Object
{
private final java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] labels;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.StringBuilder
dup
ldc "ColorChooser."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield javax.swing.colorchooser.ColorModel.prefix:Ljava/lang/String;
2: aload 0
aload 2
putfield javax.swing.colorchooser.ColorModel.labels:[Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/colorchooser/ColorModel;
0 4 1 name Ljava/lang/String;
0 4 2 labels [Ljava/lang/String;
MethodParameters:
Name Flags
name
labels
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
ldc "rgb"
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "Red"
aastore
dup
iconst_1
ldc "Green"
aastore
dup
iconst_2
ldc "Blue"
aastore
dup
iconst_3
ldc "Alpha"
aastore
invokespecial javax.swing.colorchooser.ColorModel.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/colorchooser/ColorModel;
void setColor(int, float[]);
descriptor: (I[F)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_0
iload 1
bipush 16
ishr
invokestatic javax.swing.colorchooser.ColorModel.normalize:(I)F
fastore
1: aload 2
iconst_1
iload 1
bipush 8
ishr
invokestatic javax.swing.colorchooser.ColorModel.normalize:(I)F
fastore
2: aload 2
iconst_2
iload 1
invokestatic javax.swing.colorchooser.ColorModel.normalize:(I)F
fastore
3: aload 2
iconst_3
iload 1
bipush 24
ishr
invokestatic javax.swing.colorchooser.ColorModel.normalize:(I)F
fastore
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/colorchooser/ColorModel;
0 5 1 color I
0 5 2 model [F
MethodParameters:
Name Flags
color
model
int getColor(float[]);
descriptor: ([F)I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_2
faload
invokestatic javax.swing.colorchooser.ColorModel.to8bit:(F)I
aload 1
iconst_1
faload
invokestatic javax.swing.colorchooser.ColorModel.to8bit:(F)I
bipush 8
ishl
ior
aload 1
iconst_0
faload
invokestatic javax.swing.colorchooser.ColorModel.to8bit:(F)I
bipush 16
ishl
ior
aload 1
iconst_3
faload
invokestatic javax.swing.colorchooser.ColorModel.to8bit:(F)I
bipush 24
ishl
ior
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 model [F
MethodParameters:
Name Flags
model
int getCount();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.colorchooser.ColorModel.labels:[Ljava/lang/String;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
int getMinimum(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 index I
MethodParameters:
Name Flags
index
int getMaximum(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: sipush 255
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 index I
MethodParameters:
Name Flags
index
float getDefault(int);
descriptor: (I)F
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: fconst_0
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 index I
MethodParameters:
Name Flags
index
final java.lang.String getLabel(java.awt.Component, int);
descriptor: (Ljava/awt/Component;I)Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 0
getfield javax.swing.colorchooser.ColorModel.labels:[Ljava/lang/String;
iload 2
aaload
invokevirtual javax.swing.colorchooser.ColorModel.getText:(Ljava/awt/Component;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 component Ljava/awt/Component;
0 1 2 index I
MethodParameters:
Name Flags
component
index
private static float normalize(int);
descriptor: (I)F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 255
iand
i2f
ldc 255.0
fdiv
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value I
MethodParameters:
Name Flags
value
private static int to8bit(float);
descriptor: (F)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc 255.0
fload 0
fmul
f2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value F
MethodParameters:
Name Flags
value
final java.lang.String getText(java.awt.Component, java.lang.String);
descriptor: (Ljava/awt/Component;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.colorchooser.ColorModel.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "Text"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.awt.Component.getLocale:()Ljava/util/Locale;
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ColorModel;
0 1 1 component Ljava/awt/Component;
0 1 2 suffix Ljava/lang/String;
MethodParameters:
Name Flags
component
suffix
final int getInteger(java.awt.Component, java.lang.String);
descriptor: (Ljava/awt/Component;Ljava/lang/String;)I
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.colorchooser.ColorModel.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.awt.Component.getLocale:()Ljava/util/Locale;
invokestatic javax.swing.UIManager.get:(Ljava/lang/Object;Ljava/util/Locale;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
instanceof java.lang.Integer
ifeq 3
2: aload 3
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 3
instanceof java.lang.String
ifeq 7
4: aload 3
checkcast java.lang.String
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
5: ireturn
6: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
7: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/colorchooser/ColorModel;
0 8 1 component Ljava/awt/Component;
0 8 2 suffix Ljava/lang/String;
1 8 3 value Ljava/lang/Object;
Exception table:
from to target type
4 5 6 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
component
suffix
}
SourceFile: "ColorModel.java"