public class org.springframework.core.io.ResourceEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.core.io.ResourceEditor
super_class: java.beans.PropertyEditorSupport
{
private final org.springframework.core.io.ResourceLoader resourceLoader;
descriptor: Lorg/springframework/core/io/ResourceLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.springframework.core.env.PropertyResolver propertyResolver;
descriptor: Lorg/springframework/core/env/PropertyResolver;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final boolean ignoreUnresolvablePlaceholders;
descriptor: Z
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
new org.springframework.core.io.DefaultResourceLoader
dup
invokespecial org.springframework.core.io.DefaultResourceLoader.<init>:()V
aconst_null
invokespecial org.springframework.core.io.ResourceEditor.<init>:(Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/PropertyResolver;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/core/io/ResourceEditor;
public void <init>(org.springframework.core.io.ResourceLoader, org.springframework.core.env.PropertyResolver);
descriptor: (Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/PropertyResolver;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokespecial org.springframework.core.io.ResourceEditor.<init>:(Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/PropertyResolver;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/core/io/ResourceEditor;
0 2 1 resourceLoader Lorg/springframework/core/io/ResourceLoader;
0 2 2 propertyResolver Lorg/springframework/core/env/PropertyResolver;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
resourceLoader
propertyResolver
public void <init>(org.springframework.core.io.ResourceLoader, org.springframework.core.env.PropertyResolver, boolean);
descriptor: (Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/PropertyResolver;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.beans.PropertyEditorSupport.<init>:()V
1: aload 1
ldc "ResourceLoader 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.core.io.ResourceEditor.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
3: aload 0
aload 2
putfield org.springframework.core.io.ResourceEditor.propertyResolver:Lorg/springframework/core/env/PropertyResolver;
4: aload 0
iload 3
putfield org.springframework.core.io.ResourceEditor.ignoreUnresolvablePlaceholders:Z
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/ResourceEditor;
0 6 1 resourceLoader Lorg/springframework/core/io/ResourceLoader;
0 6 2 propertyResolver Lorg/springframework/core/env/PropertyResolver;
0 6 3 ignoreUnresolvablePlaceholders Z
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
resourceLoader
propertyResolver
ignoreUnresolvablePlaceholders
public void setAsText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 4
1: aload 0
aload 1
invokevirtual org.springframework.core.io.ResourceEditor.resolvePath:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
aload 0
getfield org.springframework.core.io.ResourceEditor.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
aload 2
invokeinterface org.springframework.core.io.ResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
invokevirtual org.springframework.core.io.ResourceEditor.setValue:(Ljava/lang/Object;)V
end local 2 3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual org.springframework.core.io.ResourceEditor.setValue:(Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/ResourceEditor;
0 6 1 text Ljava/lang/String;
2 3 2 locationToUse Ljava/lang/String;
MethodParameters:
Name Flags
text
protected java.lang.String resolvePath(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.core.io.ResourceEditor.propertyResolver:Lorg/springframework/core/env/PropertyResolver;
ifnonnull 2
1: aload 0
new org.springframework.core.env.StandardEnvironment
dup
invokespecial org.springframework.core.env.StandardEnvironment.<init>:()V
putfield org.springframework.core.io.ResourceEditor.propertyResolver:Lorg/springframework/core/env/PropertyResolver;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.ResourceEditor.ignoreUnresolvablePlaceholders:Z
ifeq 3
aload 0
getfield org.springframework.core.io.ResourceEditor.propertyResolver:Lorg/springframework/core/env/PropertyResolver;
aload 1
invokeinterface org.springframework.core.env.PropertyResolver.resolvePlaceholders:(Ljava/lang/String;)Ljava/lang/String;
goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.ResourceEditor.propertyResolver:Lorg/springframework/core/env/PropertyResolver;
aload 1
invokeinterface org.springframework.core.env.PropertyResolver.resolveRequiredPlaceholders:(Ljava/lang/String;)Ljava/lang/String;
4: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/core/io/ResourceEditor;
0 5 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
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.core.io.ResourceEditor.getValue:()Ljava/lang/Object;
checkcast org.springframework.core.io.Resource
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
goto 3
StackMap locals: org.springframework.core.io.Resource
StackMap stack:
2: ldc ""
StackMap locals:
StackMap stack: java.lang.String
3: areturn
4: StackMap locals:
StackMap stack: java.io.IOException
pop
5: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/ResourceEditor;
1 6 1 value Lorg/springframework/core/io/Resource;
Exception table:
from to target type
1 3 4 Class java.io.IOException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
}
SourceFile: "ResourceEditor.java"