public class org.springframework.beans.propertyeditors.CharacterEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.CharacterEditor
super_class: java.beans.PropertyEditorSupport
{
private static final java.lang.String UNICODE_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\\u"
private static final int UNICODE_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private final boolean allowEmpty;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(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
invokespecial java.beans.PropertyEditorSupport.<init>:()V
1: aload 0
iload 1
putfield org.springframework.beans.propertyeditors.CharacterEditor.allowEmpty:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/beans/propertyeditors/CharacterEditor;
0 3 1 allowEmpty Z
MethodParameters:
Name Flags
allowEmpty
public void setAsText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.beans.propertyeditors.CharacterEditor.allowEmpty:Z
ifeq 3
aload 1
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifne 3
1: aload 0
aconst_null
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.setValue:(Ljava/lang/Object;)V
2: goto 14
3: StackMap locals:
StackMap stack:
aload 1
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "null String cannot be converted to char type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.isUnicodeCharacterSequence:(Ljava/lang/String;)Z
ifeq 8
6: aload 0
aload 1
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.setAsUnicode:(Ljava/lang/String;)V
7: goto 14
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 11
9: aload 0
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.setValue:(Ljava/lang/Object;)V
10: goto 14
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "String ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] with length "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " cannot be converted to char type: neither Unicode nor single character"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/springframework/beans/propertyeditors/CharacterEditor;
0 15 1 text Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
text
public java.lang.String getAsText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.getValue:()Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: ldc ""
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/beans/propertyeditors/CharacterEditor;
1 4 1 value Ljava/lang/Object;
private boolean isUnicodeCharacterSequence(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "\\u"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 1
invokevirtual java.lang.String.length:()I
bipush 6
if_icmpne 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 Lorg/springframework/beans/propertyeditors/CharacterEditor;
0 2 1 sequence Ljava/lang/String;
MethodParameters:
Name Flags
sequence
private void setAsUnicode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "\\u"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 2
start local 2 1: aload 0
iload 2
i2c
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual org.springframework.beans.propertyeditors.CharacterEditor.setValue:(Ljava/lang/Object;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/beans/propertyeditors/CharacterEditor;
0 3 1 text Ljava/lang/String;
1 3 2 code I
MethodParameters:
Name Flags
text
}
SourceFile: "CharacterEditor.java"