public class org.springframework.beans.propertyeditors.FileEditor extends java.beans.PropertyEditorSupport
{
private final org.springframework.core.io.ResourceEditor resourceEditor;
public void <init>()
{
org.springframework.core.io.ResourceEditor v;
org.springframework.beans.propertyeditors.FileEditor v;
v := @this: org.springframework.beans.propertyeditors.FileEditor;
specialinvoke v.<java.beans.PropertyEditorSupport: void <init>()>();
v = new org.springframework.core.io.ResourceEditor;
specialinvoke v.<org.springframework.core.io.ResourceEditor: void <init>()>();
v.<org.springframework.beans.propertyeditors.FileEditor: org.springframework.core.io.ResourceEditor resourceEditor> = v;
return;
}
public void <init>(org.springframework.core.io.ResourceEditor)
{
org.springframework.core.io.ResourceEditor v;
org.springframework.beans.propertyeditors.FileEditor v;
v := @this: org.springframework.beans.propertyeditors.FileEditor;
v := @parameter: org.springframework.core.io.ResourceEditor;
specialinvoke v.<java.beans.PropertyEditorSupport: void <init>()>();
staticinvoke <org.springframework.util.Assert: void notNull(java.lang.Object,java.lang.String)>(v, "ResourceEditor must not be null");
v.<org.springframework.beans.propertyeditors.FileEditor: org.springframework.core.io.ResourceEditor resourceEditor> = v;
return;
}
public void setAsText(java.lang.String) throws java.lang.IllegalArgumentException
{
org.springframework.core.io.ResourceEditor v, v;
org.springframework.beans.propertyeditors.FileEditor v;
java.lang.String v, v, v;
boolean v, v, v, v;
java.io.IOException v;
java.lang.IllegalArgumentException v;
java.io.File v, v, v;
java.lang.Object v;
v := @this: org.springframework.beans.propertyeditors.FileEditor;
v := @parameter: java.lang.String;
v = staticinvoke <org.springframework.util.StringUtils: boolean hasText(java.lang.String)>(v);
if v != 0 goto label;
virtualinvoke v.<org.springframework.beans.propertyeditors.FileEditor: void setValue(java.lang.Object)>(null);
return;
label:
v = null;
v = staticinvoke <org.springframework.util.ResourceUtils: boolean isUrl(java.lang.String)>(v);
if v != 0 goto label;
v = new java.io.File;
specialinvoke v.<java.io.File: void <init>(java.lang.String)>(v);
v = v;
v = virtualinvoke v.<java.io.File: boolean isAbsolute()>();
if v == 0 goto label;
virtualinvoke v.<org.springframework.beans.propertyeditors.FileEditor: void setValue(java.lang.Object)>(v);
return;
label:
v = v.<org.springframework.beans.propertyeditors.FileEditor: org.springframework.core.io.ResourceEditor resourceEditor>;
virtualinvoke v.<org.springframework.core.io.ResourceEditor: void setAsText(java.lang.String)>(v);
v = v.<org.springframework.beans.propertyeditors.FileEditor: org.springframework.core.io.ResourceEditor resourceEditor>;
v = virtualinvoke v.<org.springframework.core.io.ResourceEditor: java.lang.Object getValue()>();
if v == null goto label;
v = interfaceinvoke v.<org.springframework.core.io.Resource: boolean exists()>();
if v == 0 goto label;
label:
v = interfaceinvoke v.<org.springframework.core.io.Resource: java.io.File getFile()>();
virtualinvoke v.<org.springframework.beans.propertyeditors.FileEditor: void setValue(java.lang.Object)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.IllegalArgumentException;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.springframework.core.io.Resource,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Could not retrieve file for \u0001: \u0001");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
virtualinvoke v.<org.springframework.beans.propertyeditors.FileEditor: void setValue(java.lang.Object)>(v);
label:
return;
catch java.io.IOException from label to label with label;
}
public java.lang.String getAsText()
{
java.lang.Object v;
java.lang.String v;
org.springframework.beans.propertyeditors.FileEditor v;
v := @this: org.springframework.beans.propertyeditors.FileEditor;
v = virtualinvoke v.<org.springframework.beans.propertyeditors.FileEditor: java.lang.Object getValue()>();
if v == null goto label;
v = virtualinvoke v.<java.io.File: java.lang.String getPath()>();
goto label;
label:
v = "";
label:
return v;
}
}