final class javax.swing.colorchooser.ValueFormatter extends javax.swing.JFormattedTextField$AbstractFormatter implements java.awt.event.FocusListener, java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: javax.swing.colorchooser.ValueFormatter
super_class: javax.swing.JFormattedTextField$AbstractFormatter
{
private final javax.swing.text.DocumentFilter filter;
descriptor: Ljavax/swing/text/DocumentFilter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int length;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int radix;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private javax.swing.JFormattedTextField text;
descriptor: Ljavax/swing/JFormattedTextField;
flags: (0x0002) ACC_PRIVATE
static void init(int, boolean, javax.swing.JFormattedTextField);
descriptor: (IZLjavax/swing/JFormattedTextField;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new javax.swing.colorchooser.ValueFormatter
dup
iload 0
iload 1
invokespecial javax.swing.colorchooser.ValueFormatter.<init>:(IZ)V
astore 3
start local 3 1: aload 2
iload 0
invokevirtual javax.swing.JFormattedTextField.setColumns:(I)V
2: aload 2
new javax.swing.text.DefaultFormatterFactory
dup
aload 3
invokespecial javax.swing.text.DefaultFormatterFactory.<init>:(Ljavax/swing/JFormattedTextField$AbstractFormatter;)V
invokevirtual javax.swing.JFormattedTextField.setFormatterFactory:(Ljavax/swing/JFormattedTextField$AbstractFormatterFactory;)V
3: aload 2
iconst_4
invokevirtual javax.swing.JFormattedTextField.setHorizontalAlignment:(I)V
4: aload 2
aload 2
invokevirtual javax.swing.JFormattedTextField.getPreferredSize:()Ljava/awt/Dimension;
invokevirtual javax.swing.JFormattedTextField.setMinimumSize:(Ljava/awt/Dimension;)V
5: aload 2
aload 3
invokevirtual javax.swing.JFormattedTextField.addFocusListener:(Ljava/awt/event/FocusListener;)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 length I
0 7 1 hex Z
0 7 2 text Ljavax/swing/JFormattedTextField;
1 7 3 formatter Ljavax/swing/colorchooser/ValueFormatter;
MethodParameters:
Name Flags
length
hex
text
void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.swing.JFormattedTextField$AbstractFormatter.<init>:()V
1: aload 0
new javax.swing.colorchooser.ValueFormatter$1
dup
aload 0
invokespecial javax.swing.colorchooser.ValueFormatter$1.<init>:(Ljavax/swing/colorchooser/ValueFormatter;)V
putfield javax.swing.colorchooser.ValueFormatter.filter:Ljavax/swing/text/DocumentFilter;
2: aload 0
iload 1
putfield javax.swing.colorchooser.ValueFormatter.length:I
3: aload 0
iload 2
ifeq 4
bipush 16
goto 5
StackMap locals: javax.swing.colorchooser.ValueFormatter int int
StackMap stack: javax.swing.colorchooser.ValueFormatter
4: bipush 10
StackMap locals: javax.swing.colorchooser.ValueFormatter int int
StackMap stack: javax.swing.colorchooser.ValueFormatter int
5: putfield javax.swing.colorchooser.ValueFormatter.radix:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 7 1 length I
0 7 2 hex Z
MethodParameters:
Name Flags
length
hex
public java.lang.Object stringToValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield javax.swing.colorchooser.ValueFormatter.radix:I
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;I)Ljava/lang/Integer;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.NumberFormatException
astore 2
start local 2 3: new java.text.ParseException
dup
ldc "illegal format"
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
astore 3
start local 3 4: aload 3
aload 2
invokevirtual java.text.ParseException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
5: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 6 1 text Ljava/lang/String;
3 6 2 nfe Ljava/lang/NumberFormatException;
4 6 3 pe Ljava/text/ParseException;
Exception table:
from to target type
0 1 2 Class java.lang.NumberFormatException
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
text
public java.lang.String valueToString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.Integer
ifeq 11
1: aload 0
getfield javax.swing.colorchooser.ValueFormatter.radix:I
bipush 10
if_icmpne 3
2: aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 2
start local 2 4: aload 0
getfield javax.swing.colorchooser.ValueFormatter.length:I
istore 3
start local 3 5: iload 3
newarray 5
astore 4
start local 4 6: goto 9
7: StackMap locals: int int char[]
StackMap stack:
aload 4
iload 3
iload 2
bipush 15
iand
aload 0
getfield javax.swing.colorchooser.ValueFormatter.radix:I
invokestatic java.lang.Character.forDigit:(II)C
castore
8: iload 2
iconst_4
ishr
istore 2
9: StackMap locals:
StackMap stack:
iload 3
iinc 3 -1
ifgt 7
10: new java.lang.String
dup
aload 4
invokespecial java.lang.String.<init>:([C)V
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 11: StackMap locals:
StackMap stack:
new java.text.ParseException
dup
ldc "illegal object"
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 12 1 object Ljava/lang/Object;
4 11 2 value I
5 11 3 index I
6 11 4 array [C
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
object
protected javax.swing.text.DocumentFilter getDocumentFilter();
descriptor: ()Ljavax/swing/text/DocumentFilter;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.colorchooser.ValueFormatter.filter:Ljavax/swing/text/DocumentFilter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ValueFormatter;
public void focusGained(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.FocusEvent.getSource:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof javax.swing.JFormattedTextField
ifeq 4
2: aload 0
aload 2
checkcast javax.swing.JFormattedTextField
putfield javax.swing.colorchooser.ValueFormatter.text:Ljavax/swing/JFormattedTextField;
3: aload 0
invokestatic javax.swing.SwingUtilities.invokeLater:(Ljava/lang/Runnable;)V
4: StackMap locals: java.lang.Object
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 5 1 event Ljava/awt/event/FocusEvent;
1 5 2 source Ljava/lang/Object;
MethodParameters:
Name Flags
event
public void focusLost(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 1 1 event Ljava/awt/event/FocusEvent;
MethodParameters:
Name Flags
event
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.colorchooser.ValueFormatter.text:Ljavax/swing/JFormattedTextField;
ifnull 2
1: aload 0
getfield javax.swing.colorchooser.ValueFormatter.text:Ljavax/swing/JFormattedTextField;
invokevirtual javax.swing.JFormattedTextField.selectAll:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ValueFormatter;
private boolean isValid(int);
descriptor: (I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
aload 0
getfield javax.swing.colorchooser.ValueFormatter.length:I
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 2 1 length I
MethodParameters:
Name Flags
length
private boolean isValid(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: iload 4
aload 0
getfield javax.swing.colorchooser.ValueFormatter.radix:I
invokestatic java.lang.Character.digit:(CI)I
ifge 6
5: iconst_0
ireturn
end local 4 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 2
if_icmplt 3
end local 3 8: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/colorchooser/ValueFormatter;
0 9 1 text Ljava/lang/String;
1 9 2 length I
2 8 3 i I
4 6 4 ch C
MethodParameters:
Name Flags
text
}
SourceFile: "ValueFormatter.java"
NestMembers:
javax.swing.colorchooser.ValueFormatter$1
InnerClasses:
public abstract AbstractFormatter = javax.swing.JFormattedTextField$AbstractFormatter of javax.swing.JFormattedTextField
public abstract AbstractFormatterFactory = javax.swing.JFormattedTextField$AbstractFormatterFactory of javax.swing.JFormattedTextField
javax.swing.colorchooser.ValueFormatter$1