public class javax.swing.text.NumberFormatter extends javax.swing.text.InternationalFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.NumberFormatter
super_class: javax.swing.text.InternationalFormatter
{
private java.lang.String specialChars;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.text.NumberFormat.getNumberInstance:()Ljava/text/NumberFormat;
invokespecial javax.swing.text.NumberFormatter.<init>:(Ljava/text/NumberFormat;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/NumberFormatter;
public void <init>(java.text.NumberFormat);
descriptor: (Ljava/text/NumberFormat;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.InternationalFormatter.<init>:(Ljava/text/Format;)V
1: aload 0
aload 1
invokevirtual javax.swing.text.NumberFormatter.setFormat:(Ljava/text/Format;)V
2: aload 0
iconst_1
invokevirtual javax.swing.text.NumberFormatter.setAllowsInvalid:(Z)V
3: aload 0
iconst_0
invokevirtual javax.swing.text.NumberFormatter.setCommitsOnValidEdit:(Z)V
4: aload 0
iconst_0
invokevirtual javax.swing.text.NumberFormatter.setOverwriteMode:(Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/NumberFormatter;
0 6 1 format Ljava/text/NumberFormat;
MethodParameters:
Name Flags
format
public void setFormat(java.text.Format);
descriptor: (Ljava/text/Format;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.InternationalFormatter.setFormat:(Ljava/text/Format;)V
1: aload 0
invokevirtual javax.swing.text.NumberFormatter.getDecimalFormatSymbols:()Ljava/text/DecimalFormatSymbols;
astore 2
start local 2 2: aload 2
ifnull 16
3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 4: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getCurrencySymbol:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getDecimalSeparator:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getGroupingSeparator:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getInfinity:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getInternationalCurrencySymbol:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getMinusSign:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getMonetaryDecimalSeparator:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getNaN:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: aload 3
aload 2
invokevirtual java.text.DecimalFormatSymbols.getPercent:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
13: aload 3
bipush 43
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: aload 0
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield javax.swing.text.NumberFormatter.specialChars:Ljava/lang/String;
end local 3 15: goto 17
16: StackMap locals: java.text.DecimalFormatSymbols
StackMap stack:
aload 0
ldc ""
putfield javax.swing.text.NumberFormatter.specialChars:Ljava/lang/String;
17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljavax/swing/text/NumberFormatter;
0 18 1 format Ljava/text/Format;
2 18 2 dfs Ljava/text/DecimalFormatSymbols;
4 15 3 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
format
java.lang.Object stringToValue(java.lang.String, java.text.Format);
descriptor: (Ljava/lang/String;Ljava/text/Format;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.text.Format.parseObject:(Ljava/lang/String;)Ljava/lang/Object;
astore 3
start local 3 3: aload 0
aload 3
aload 0
invokevirtual javax.swing.text.NumberFormatter.getValueClass:()Ljava/lang/Class;
invokevirtual javax.swing.text.NumberFormatter.convertValueToValueClass:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/NumberFormatter;
0 4 1 text Ljava/lang/String;
0 4 2 f Ljava/text/Format;
3 4 3 value Ljava/lang/Object;
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
text
f
private convertValueToValueClass(, java.lang.Class<?>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 14
aload 1
instanceof java.lang.Number
ifeq 14
1: aload 1
checkcast java.lang.Number
astore 3
start local 3 2: aload 2
ldc Ljava/lang/Integer;
if_acmpne 4
3: aload 3
invokevirtual java.lang.Number.intValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
4: StackMap locals: java.lang.Number
StackMap stack:
aload 2
ldc Ljava/lang/Long;
if_acmpne 6
5: aload 3
invokevirtual java.lang.Number.longValue:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
6: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/Float;
if_acmpne 8
7: aload 3
invokevirtual java.lang.Number.floatValue:()F
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
areturn
8: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/Double;
if_acmpne 10
9: aload 3
invokevirtual java.lang.Number.doubleValue:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
areturn
10: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/Byte;
if_acmpne 12
11: aload 3
invokevirtual java.lang.Number.byteValue:()B
invokestatic java.lang.Byte.valueOf:(B)Ljava/lang/Byte;
areturn
12: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/Short;
if_acmpne 14
13: aload 3
invokevirtual java.lang.Number.shortValue:()S
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
areturn
end local 3 14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/swing/text/NumberFormatter;
0 15 1 value Ljava/lang/Object;
0 15 2 valueClass Ljava/lang/Class<*>;
2 14 3 numberValue Ljava/lang/Number;
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
value
valueClass
private char getPositiveSign();
descriptor: ()C
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 43
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/NumberFormatter;
private char getMinusSign();
descriptor: ()C
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getDecimalFormatSymbols:()Ljava/text/DecimalFormatSymbols;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual java.text.DecimalFormatSymbols.getMinusSign:()C
ireturn
3: StackMap locals: java.text.DecimalFormatSymbols
StackMap stack:
bipush 45
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/NumberFormatter;
1 4 1 dfs Ljava/text/DecimalFormatSymbols;
private char getDecimalSeparator();
descriptor: ()C
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getDecimalFormatSymbols:()Ljava/text/DecimalFormatSymbols;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual java.text.DecimalFormatSymbols.getDecimalSeparator:()C
ireturn
3: StackMap locals: java.text.DecimalFormatSymbols
StackMap stack:
bipush 46
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/NumberFormatter;
1 4 1 dfs Ljava/text/DecimalFormatSymbols;
private java.text.DecimalFormatSymbols getDecimalFormatSymbols();
descriptor: ()Ljava/text/DecimalFormatSymbols;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getFormat:()Ljava/text/Format;
astore 1
start local 1 1: aload 1
instanceof java.text.DecimalFormat
ifeq 3
2: aload 1
checkcast java.text.DecimalFormat
invokevirtual java.text.DecimalFormat.getDecimalFormatSymbols:()Ljava/text/DecimalFormatSymbols;
areturn
3: StackMap locals: java.text.Format
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/NumberFormatter;
1 4 1 f Ljava/text/Format;
boolean isLegalInsertText(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getAllowsInvalid:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
istore 2
start local 2 3: goto 9
4: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 5: iload 3
invokestatic java.lang.Character.isDigit:(C)Z
ifne 8
6: aload 0
getfield javax.swing.text.NumberFormatter.specialChars:Ljava/lang/String;
iload 3
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 8
7: iconst_0
ireturn
end local 3 8: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
9: iload 2
ifge 4
end local 2 10: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/text/NumberFormatter;
0 11 1 text Ljava/lang/String;
3 10 2 counter I
5 8 3 aChar C
MethodParameters:
Name Flags
text
boolean isLiteral(java.util.Map<?, ?>);
descriptor: (Ljava/util/Map;)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.InternationalFormatter.isLiteral:(Ljava/util/Map;)Z
ifne 20
1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map.size:()I
istore 2
start local 2 4: aload 1
getstatic java.text.NumberFormat$Field.GROUPING_SEPARATOR:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 8
5: iinc 2 -1
6: aload 1
getstatic java.text.NumberFormat$Field.INTEGER:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 8
7: iinc 2 -1
8: StackMap locals: int
StackMap stack:
aload 1
getstatic java.text.NumberFormat$Field.EXPONENT_SYMBOL:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 10
9: iinc 2 -1
10: StackMap locals:
StackMap stack:
aload 1
getstatic java.text.NumberFormat$Field.PERCENT:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 12
11: iinc 2 -1
12: StackMap locals:
StackMap stack:
aload 1
getstatic java.text.NumberFormat$Field.PERMILLE:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 14
13: iinc 2 -1
14: StackMap locals:
StackMap stack:
aload 1
getstatic java.text.NumberFormat$Field.CURRENCY:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 16
15: iinc 2 -1
16: StackMap locals:
StackMap stack:
aload 1
getstatic java.text.NumberFormat$Field.SIGN:Ljava/text/NumberFormat$Field;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 18
17: iinc 2 -1
18: StackMap locals:
StackMap stack:
iload 2
ifne 19
iconst_1
ireturn
StackMap locals:
StackMap stack:
19: iconst_0
ireturn
end local 2 20: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/swing/text/NumberFormatter;
0 21 1 attrs Ljava/util/Map<**>;
4 20 2 size I
Signature: (Ljava/util/Map<**>;)Z
MethodParameters:
Name Flags
attrs
boolean isNavigatable(int);
descriptor: (I)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial javax.swing.text.InternationalFormatter.isNavigatable:(I)Z
ifne 3
1: aload 0
iload 1
invokevirtual javax.swing.text.NumberFormatter.getBufferedChar:(I)C
aload 0
invokevirtual javax.swing.text.NumberFormatter.getDecimalSeparator:()C
if_icmpne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/NumberFormatter;
0 4 1 index I
MethodParameters:
Name Flags
index
private java.text.NumberFormat$Field getFieldFrom(int, int);
descriptor: (II)Ljava/text/NumberFormat$Field;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.isValidMask:()Z
ifeq 16
1: aload 0
invokevirtual javax.swing.text.NumberFormatter.getFormattedTextField:()Ljavax/swing/JFormattedTextField;
invokevirtual javax.swing.JFormattedTextField.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
istore 3
start local 3 2: aload 0
invokevirtual javax.swing.text.NumberFormatter.getIterator:()Ljava/text/AttributedCharacterIterator;
astore 4
start local 4 3: iload 1
iload 3
if_icmplt 15
4: iload 1
iload 2
iadd
istore 1
5: goto 15
6: StackMap locals: int java.text.AttributedCharacterIterator
StackMap stack:
aload 4
iload 1
invokeinterface java.text.AttributedCharacterIterator.setIndex:(I)C
pop
7: aload 4
invokeinterface java.text.AttributedCharacterIterator.getAttributes:()Ljava/util/Map;
astore 5
start local 5 8: aload 5
ifnull 14
aload 5
invokeinterface java.util.Map.size:()I
ifle 14
9: aload 5
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: javax.swing.text.NumberFormatter int int int java.text.AttributedCharacterIterator java.util.Map top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 6
start local 6 11: aload 6
instanceof java.text.NumberFormat$Field
ifeq 13
12: aload 6
checkcast java.text.NumberFormat$Field
areturn
end local 6 13: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
14: StackMap locals: javax.swing.text.NumberFormatter int int int java.text.AttributedCharacterIterator java.util.Map
StackMap stack:
iload 1
iload 2
iadd
istore 1
end local 5 15: StackMap locals:
StackMap stack:
iload 1
iflt 16
iload 1
iload 3
if_icmplt 6
end local 4 end local 3 16: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/swing/text/NumberFormatter;
0 17 1 index I
0 17 2 direction I
2 16 3 max I
3 16 4 iterator Ljava/text/AttributedCharacterIterator;
8 15 5 attrs Ljava/util/Map<**>;
11 13 6 key Ljava/lang/Object;
MethodParameters:
Name Flags
index
direction
void replace(javax.swing.text.DocumentFilter$FilterBypass, int, int, java.lang.String, javax.swing.text.AttributeSet);
descriptor: (Ljavax/swing/text/DocumentFilter$FilterBypass;IILjava/lang/String;Ljavax/swing/text/AttributeSet;)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getAllowsInvalid:()Z
ifne 4
iload 3
ifne 4
aload 4
ifnull 4
1: aload 4
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 4
2: aload 0
aload 1
iload 2
aload 4
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokevirtual javax.swing.text.NumberFormatter.toggleSignIfNecessary:(Ljavax/swing/text/DocumentFilter$FilterBypass;IC)Z
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
aload 4
aload 5
invokespecial javax.swing.text.InternationalFormatter.replace:(Ljavax/swing/text/DocumentFilter$FilterBypass;IILjava/lang/String;Ljavax/swing/text/AttributeSet;)V
5: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/NumberFormatter;
0 6 1 fb Ljavax/swing/text/DocumentFilter$FilterBypass;
0 6 2 offset I
0 6 3 length I
0 6 4 string Ljava/lang/String;
0 6 5 attr Ljavax/swing/text/AttributeSet;
Exceptions:
throws javax.swing.text.BadLocationException
MethodParameters:
Name Flags
fb
offset
length
string
attr
private boolean toggleSignIfNecessary(javax.swing.text.DocumentFilter$FilterBypass, int, char);
descriptor: (Ljavax/swing/text/DocumentFilter$FilterBypass;IC)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
invokevirtual javax.swing.text.NumberFormatter.getMinusSign:()C
if_icmpeq 1
iload 3
aload 0
invokevirtual javax.swing.text.NumberFormatter.getPositiveSign:()C
if_icmpne 23
1: StackMap locals:
StackMap stack:
aload 0
iload 2
iconst_m1
invokevirtual javax.swing.text.NumberFormatter.getFieldFrom:(II)Ljava/text/NumberFormat$Field;
astore 4
start local 4 2: aload 4
ifnull 6
3: aload 4
getstatic java.text.NumberFormat$Field.EXPONENT:Ljava/text/NumberFormat$Field;
if_acmpeq 10
4: aload 4
getstatic java.text.NumberFormat$Field.EXPONENT_SYMBOL:Ljava/text/NumberFormat$Field;
if_acmpeq 10
5: aload 4
getstatic java.text.NumberFormat$Field.EXPONENT_SIGN:Ljava/text/NumberFormat$Field;
if_acmpeq 10
6: StackMap locals: java.text.NumberFormat$Field
StackMap stack:
aload 0
iload 3
aload 0
invokevirtual javax.swing.text.NumberFormatter.getPositiveSign:()C
if_icmpne 7
iconst_1
goto 8
StackMap locals:
StackMap stack: javax.swing.text.NumberFormatter
7: iconst_0
StackMap locals: javax.swing.text.NumberFormatter javax.swing.text.DocumentFilter$FilterBypass int int java.text.NumberFormat$Field
StackMap stack: javax.swing.text.NumberFormatter int
8: invokevirtual javax.swing.text.NumberFormatter.toggleSign:(Z)Ljava/lang/Object;
astore 5
start local 5 9: goto 11
end local 5 10: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 3
invokevirtual javax.swing.text.NumberFormatter.toggleExponentSign:(IC)Ljava/lang/Object;
astore 5
start local 5 11: StackMap locals: java.lang.Object
StackMap stack:
aload 5
ifnull 23
aload 0
aload 5
iconst_0
invokevirtual javax.swing.text.NumberFormatter.isValidValue:(Ljava/lang/Object;Z)Z
ifeq 23
12: aload 0
iload 2
invokevirtual javax.swing.text.NumberFormatter.getLiteralCountTo:(I)I
istore 6
start local 6 13: aload 0
aload 5
invokevirtual javax.swing.text.NumberFormatter.valueToString:(Ljava/lang/Object;)Ljava/lang/String;
astore 7
start local 7 14: aload 1
iconst_0
aload 1
invokevirtual javax.swing.text.DocumentFilter$FilterBypass.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
invokevirtual javax.swing.text.DocumentFilter$FilterBypass.remove:(II)V
15: aload 1
iconst_0
aload 7
aconst_null
invokevirtual javax.swing.text.DocumentFilter$FilterBypass.insertString:(ILjava/lang/String;Ljavax/swing/text/AttributeSet;)V
16: aload 0
aload 5
invokevirtual javax.swing.text.NumberFormatter.updateValue:(Ljava/lang/Object;)V
17: aload 0
aload 0
iload 2
invokevirtual javax.swing.text.NumberFormatter.getLiteralCountTo:(I)I
18: iload 6
isub
iload 2
iadd
iconst_1
19: invokevirtual javax.swing.text.NumberFormatter.repositionCursor:(II)V
20: iconst_1
ireturn
end local 7 end local 6 end local 5 21: StackMap locals: javax.swing.text.NumberFormatter javax.swing.text.DocumentFilter$FilterBypass int int java.text.NumberFormat$Field
StackMap stack: java.text.ParseException
pop
22: aload 0
invokevirtual javax.swing.text.NumberFormatter.invalidEdit:()V
end local 4 23: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljavax/swing/text/NumberFormatter;
0 24 1 fb Ljavax/swing/text/DocumentFilter$FilterBypass;
0 24 2 offset I
0 24 3 aChar C
2 23 4 field Ljava/text/NumberFormat$Field;
9 10 5 newValue Ljava/lang/Object;
11 21 5 newValue Ljava/lang/Object;
13 21 6 lc I
14 21 7 string Ljava/lang/String;
Exception table:
from to target type
2 20 21 Class java.text.ParseException
Exceptions:
throws javax.swing.text.BadLocationException
MethodParameters:
Name Flags
fb
offset
aChar
private java.lang.Object toggleSign(boolean);
descriptor: (Z)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual javax.swing.text.NumberFormatter.getFormattedTextField:()Ljavax/swing/JFormattedTextField;
invokevirtual javax.swing.JFormattedTextField.getText:()Ljava/lang/String;
invokevirtual javax.swing.text.NumberFormatter.stringToValue:(Ljava/lang/String;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnull 26
2: aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnull 26
aload 3
invokevirtual java.lang.String.length:()I
ifle 26
4: iload 1
ifeq 8
5: aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpne 12
6: aload 3
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
7: goto 12
8: StackMap locals: java.lang.Object java.lang.String
StackMap stack:
aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 43
if_icmpne 10
9: aload 3
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.String.length:()I
ifle 12
aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpeq 12
11: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
12: StackMap locals:
StackMap stack:
aload 3
ifnull 26
13: aload 0
invokevirtual javax.swing.text.NumberFormatter.getValueClass:()Ljava/lang/Class;
astore 4
start local 4 14: aload 4
ifnonnull 16
15: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 4
16: StackMap locals: java.lang.Class
StackMap stack:
aload 4
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
17: aload 4
invokevirtual java.lang.Class.getModifiers:()I
invokestatic sun.swing.SwingUtilities2.checkAccess:(I)V
18: aload 4
19: iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
20: invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 5
start local 5 21: aload 5
ifnull 26
22: aload 5
invokevirtual java.lang.reflect.Constructor.getModifiers:()I
invokestatic sun.swing.SwingUtilities2.checkAccess:(I)V
23: aload 5
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
24: areturn
end local 5 25: StackMap locals:
StackMap stack: java.lang.Throwable
pop
end local 4 end local 3 26: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljavax/swing/text/NumberFormatter;
0 27 1 positive Z
1 27 2 value Ljava/lang/Object;
3 26 3 string Ljava/lang/String;
14 26 4 valueClass Ljava/lang/Class<*>;
21 25 5 cons Ljava/lang/reflect/Constructor<*>;
Exception table:
from to target type
16 24 25 Class java.lang.Throwable
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
positive
private java.lang.Object toggleExponentSign(int, char);
descriptor: (IC)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.swing.text.NumberFormatter.getFormattedTextField:()Ljavax/swing/JFormattedTextField;
invokevirtual javax.swing.JFormattedTextField.getText:()Ljava/lang/String;
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: aload 0
getstatic java.text.NumberFormat$Field.EXPONENT_SIGN:Ljava/text/NumberFormat$Field;
invokevirtual javax.swing.text.NumberFormatter.getAttributeStart:(Ljava/text/AttributedCharacterIterator$Attribute;)I
istore 5
start local 5 3: iload 5
iflt 6
4: iconst_1
istore 4
5: iload 5
istore 1
6: StackMap locals: java.lang.String int int
StackMap stack:
iload 2
aload 0
invokevirtual javax.swing.text.NumberFormatter.getPositiveSign:()C
if_icmpne 9
7: aload 0
iload 1
iload 4
aconst_null
invokevirtual javax.swing.text.NumberFormatter.getReplaceString:(IILjava/lang/String;)Ljava/lang/String;
astore 3
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 4
10: new java.lang.String
dup
iconst_1
newarray 5
dup
iconst_0
iload 2
castore
invokespecial java.lang.String.<init>:([C)V
11: invokevirtual javax.swing.text.NumberFormatter.getReplaceString:(IILjava/lang/String;)Ljava/lang/String;
astore 3
12: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual javax.swing.text.NumberFormatter.stringToValue:(Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/text/NumberFormatter;
0 13 1 offset I
0 13 2 aChar C
1 13 3 string Ljava/lang/String;
2 13 4 replaceLength I
3 13 5 loc I
Exceptions:
throws javax.swing.text.BadLocationException, java.text.ParseException
MethodParameters:
Name Flags
offset
aChar
}
SourceFile: "NumberFormatter.java"
InnerClasses:
public Attribute = java.text.AttributedCharacterIterator$Attribute of java.text.AttributedCharacterIterator
public Field = java.text.NumberFormat$Field of java.text.NumberFormat
public abstract FilterBypass = javax.swing.text.DocumentFilter$FilterBypass of javax.swing.text.DocumentFilter