public class org.springframework.beans.propertyeditors.PathEditor extends java.beans.PropertyEditorSupport
{
private final org.springframework.core.io.ResourceEditor resourceEditor;
public void <init>()
{
org.springframework.beans.propertyeditors.PathEditor v;
org.springframework.core.io.ResourceEditor v;
v := @this: org.springframework.beans.propertyeditors.PathEditor;
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.PathEditor: org.springframework.core.io.ResourceEditor resourceEditor> = v;
return;
}
public void <init>(org.springframework.core.io.ResourceEditor)
{
org.springframework.beans.propertyeditors.PathEditor v;
org.springframework.core.io.ResourceEditor v;
v := @this: org.springframework.beans.propertyeditors.PathEditor;
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.PathEditor: 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;
java.net.URISyntaxException v;
java.lang.String[] v;
org.springframework.beans.propertyeditors.PathEditor v;
java.lang.String v, v, v;
java.net.URI v;
java.nio.file.Path v, v, v, v, v;
boolean v, v, v, v, v;
java.nio.file.FileSystemNotFoundException v;
java.io.IOException v;
java.lang.IllegalArgumentException v;
java.io.File v;
java.lang.Object v;
v := @this: org.springframework.beans.propertyeditors.PathEditor;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("classpath:");
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = v;
if v == 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("/");
if v != 0 goto label;
label:
v = new java.net.URI;
specialinvoke v.<java.net.URI: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<java.net.URI: java.lang.String getScheme()>();
if v == null goto label;
v = 0;
v = staticinvoke <java.nio.file.Paths: java.nio.file.Path get(java.net.URI)>(v);
v = interfaceinvoke v.<java.nio.file.Path: java.nio.file.Path normalize()>();
virtualinvoke v.<org.springframework.beans.propertyeditors.PathEditor: void setValue(java.lang.Object)>(v);
label:
return;
label:
v := @caughtexception;
goto label;
label:
v := @caughtexception;
label:
v = v.<org.springframework.beans.propertyeditors.PathEditor: 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.PathEditor: org.springframework.core.io.ResourceEditor resourceEditor>;
v = virtualinvoke v.<org.springframework.core.io.ResourceEditor: java.lang.Object getValue()>();
if v != null goto label;
virtualinvoke v.<org.springframework.beans.propertyeditors.PathEditor: void setValue(java.lang.Object)>(null);
goto label;
label:
v = interfaceinvoke v.<org.springframework.core.io.Resource: boolean exists()>();
if v != 0 goto label;
if v == 0 goto label;
v = newarray (java.lang.String)[0];
v = staticinvoke <java.nio.file.Paths: java.nio.file.Path get(java.lang.String,java.lang.String[])>(v, v);
v = interfaceinvoke v.<java.nio.file.Path: java.nio.file.Path normalize()>();
virtualinvoke v.<org.springframework.beans.propertyeditors.PathEditor: void setValue(java.lang.Object)>(v);
goto label;
label:
v = interfaceinvoke v.<org.springframework.core.io.Resource: java.io.File getFile()>();
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
virtualinvoke v.<org.springframework.beans.propertyeditors.PathEditor: void setValue(java.lang.Object)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.IllegalArgumentException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.springframework.core.io.Resource)>(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[])>("Failed to retrieve file for \u0001");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch java.net.URISyntaxException from label to label with label;
catch java.nio.file.FileSystemNotFoundException from label to label with label;
catch java.io.IOException from label to label with label;
}
public java.lang.String getAsText()
{
java.lang.Object v;
org.springframework.beans.propertyeditors.PathEditor v;
java.lang.String v;
v := @this: org.springframework.beans.propertyeditors.PathEditor;
v = virtualinvoke v.<org.springframework.beans.propertyeditors.PathEditor: java.lang.Object getValue()>();
if v == null goto label;
v = interfaceinvoke v.<java.nio.file.Path: java.lang.String toString()>();
goto label;
label:
v = "";
label:
return v;
}
}