public class org.springframework.beans.propertyeditors.PathEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.PathEditor
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.PathEditor.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/PathEditor;
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.PathEditor.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/PathEditor;
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
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
ifeq 10
aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 10
4: new java.net.URI
dup
aload 1
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 3
start local 3 5: aload 3
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
ifnull 10
6: iconst_0
istore 2
7: aload 0
aload 3
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokevirtual org.springframework.beans.propertyeditors.PathEditor.setValue:(Ljava/lang/Object;)V
8: return
end local 3 9: StackMap locals: org.springframework.beans.propertyeditors.PathEditor java.lang.String int
StackMap stack: java.lang.Exception
pop
10: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.beans.propertyeditors.PathEditor.resourceEditor:Lorg/springframework/core/io/ResourceEditor;
aload 1
invokevirtual org.springframework.core.io.ResourceEditor.setAsText:(Ljava/lang/String;)V
11: aload 0
getfield org.springframework.beans.propertyeditors.PathEditor.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 12: aload 3
ifnonnull 15
13: aload 0
aconst_null
invokevirtual org.springframework.beans.propertyeditors.PathEditor.setValue:(Ljava/lang/Object;)V
14: goto 22
15: StackMap locals: org.springframework.core.io.Resource
StackMap stack:
aload 3
invokeinterface org.springframework.core.io.Resource.exists:()Z
ifne 18
iload 2
ifeq 18
16: aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokevirtual org.springframework.beans.propertyeditors.PathEditor.setValue:(Ljava/lang/Object;)V
17: goto 22
18: StackMap locals:
StackMap stack:
aload 0
aload 3
invokeinterface org.springframework.core.io.Resource.getFile:()Ljava/io/File;
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokevirtual org.springframework.beans.propertyeditors.PathEditor.setValue:(Ljava/lang/Object;)V
19: goto 22
20: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 21: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Failed to 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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 22: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/springframework/beans/propertyeditors/PathEditor;
0 23 1 text Ljava/lang/String;
3 23 2 nioPathCandidate Z
5 9 3 uri Ljava/net/URI;
12 23 3 resource Lorg/springframework/core/io/Resource;
21 22 4 ex Ljava/io/IOException;
Exception table:
from to target type
4 8 9 Class java.net.URISyntaxException
4 8 9 Class java.nio.file.FileSystemNotFoundException
18 19 20 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.PathEditor.getValue:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.nio.file.Path
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/PathEditor;
1 4 1 value Ljava/nio/file/Path;
}
SourceFile: "PathEditor.java"