public class org.springframework.beans.propertyeditors.FileEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.FileEditor
super_class: java.beans.PropertyEditorSupport
{
private final org.springframework.core.io.ResourceEditor resourceEditor;
descriptor: Lorg/springframework/core/io/ResourceEditor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.beans.PropertyEditorSupport.<init>:()V
1: aload 0
new org.springframework.core.io.ResourceEditor
dup
invokespecial org.springframework.core.io.ResourceEditor.<init>:()V
putfield org.springframework.beans.propertyeditors.FileEditor.resourceEditor:Lorg/springframework/core/io/ResourceEditor;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/beans/propertyeditors/FileEditor;
public void <init>(org.springframework.core.io.ResourceEditor);
descriptor: (Lorg/springframework/core/io/ResourceEditor;)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 1
ldc "ResourceEditor must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.beans.propertyeditors.FileEditor.resourceEditor:Lorg/springframework/core/io/ResourceEditor;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/beans/propertyeditors/FileEditor;
0 4 1 resourceEditor Lorg/springframework/core/io/ResourceEditor;
MethodParameters:
Name Flags
resourceEditor
public void setAsText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifne 3
1: aload 0
aconst_null
invokevirtual org.springframework.beans.propertyeditors.FileEditor.setValue:(Ljava/lang/Object;)V
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 1
invokestatic org.springframework.util.ResourceUtils.isUrl:(Ljava/lang/String;)Z
ifne 9
5: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
6: aload 2
invokevirtual java.io.File.isAbsolute:()Z
ifeq 9
7: aload 0
aload 2
invokevirtual org.springframework.beans.propertyeditors.FileEditor.setValue:(Ljava/lang/Object;)V
8: return
9: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield org.springframework.beans.propertyeditors.FileEditor.resourceEditor:Lorg/springframework/core/io/ResourceEditor;
aload 1
invokevirtual org.springframework.core.io.ResourceEditor.setAsText:(Ljava/lang/String;)V
10: aload 0
getfield org.springframework.beans.propertyeditors.FileEditor.resourceEditor:Lorg/springframework/core/io/ResourceEditor;
invokevirtual org.springframework.core.io.ResourceEditor.getValue:()Ljava/lang/Object;
checkcast org.springframework.core.io.Resource
astore 3
start local 3 11: aload 2
ifnull 12
aload 3
invokeinterface org.springframework.core.io.Resource.exists:()Z
ifeq 18
12: StackMap locals: org.springframework.core.io.Resource
StackMap stack:
aload 0
aload 3
invokeinterface org.springframework.core.io.Resource.getFile:()Ljava/io/File;
invokevirtual org.springframework.beans.propertyeditors.FileEditor.setValue:(Ljava/lang/Object;)V
13: goto 19
14: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 15: new java.lang.IllegalArgumentException
dup
16: new java.lang.StringBuilder
dup
ldc "Could not retrieve file for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 18: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.springframework.beans.propertyeditors.FileEditor.setValue:(Ljava/lang/Object;)V
19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/springframework/beans/propertyeditors/FileEditor;
0 20 1 text Ljava/lang/String;
4 20 2 file Ljava/io/File;
11 20 3 resource Lorg/springframework/core/io/Resource;
15 18 4 ex Ljava/io/IOException;
Exception table:
from to target type
12 13 14 Class java.io.IOException
Exceptions:
throws java.lang.IllegalArgumentException
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.FileEditor.getValue:()Ljava/lang/Object;
checkcast java.io.File
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
goto 3
StackMap locals: java.io.File
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/FileEditor;
1 4 1 value Ljava/io/File;
}
SourceFile: "FileEditor.java"