public class org.springframework.beans.propertyeditors.URIEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.URIEditor
super_class: java.beans.PropertyEditorSupport
{
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final boolean encode;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial org.springframework.beans.propertyeditors.URIEditor.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
public void <init>(boolean);
descriptor: (Z)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 0
aconst_null
putfield org.springframework.beans.propertyeditors.URIEditor.classLoader:Ljava/lang/ClassLoader;
2: aload 0
iload 1
putfield org.springframework.beans.propertyeditors.URIEditor.encode:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
0 4 1 encode Z
MethodParameters:
Name Flags
encode
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.springframework.beans.propertyeditors.URIEditor.<init>:(Ljava/lang/ClassLoader;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
0 2 1 classLoader Ljava/lang/ClassLoader;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
classLoader
public void <init>(java.lang.ClassLoader, boolean);
descriptor: (Ljava/lang/ClassLoader;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.beans.PropertyEditorSupport.<init>:()V
1: aload 0
aload 1
ifnull 2
aload 1
goto 3
StackMap locals: org.springframework.beans.propertyeditors.URIEditor java.lang.ClassLoader int
StackMap stack: org.springframework.beans.propertyeditors.URIEditor
2: invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
StackMap locals: org.springframework.beans.propertyeditors.URIEditor java.lang.ClassLoader int
StackMap stack: org.springframework.beans.propertyeditors.URIEditor java.lang.ClassLoader
3: putfield org.springframework.beans.propertyeditors.URIEditor.classLoader:Ljava/lang/ClassLoader;
4: aload 0
iload 2
putfield org.springframework.beans.propertyeditors.URIEditor.encode:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
0 6 1 classLoader Ljava/lang/ClassLoader;
0 6 2 encode Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
classLoader
encode
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
ifeq 14
1: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
getfield org.springframework.beans.propertyeditors.URIEditor.classLoader:Ljava/lang/ClassLoader;
ifnull 10
aload 2
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
3: new org.springframework.core.io.ClassPathResource
dup
4: aload 2
ldc "classpath:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 0
getfield org.springframework.beans.propertyeditors.URIEditor.classLoader:Ljava/lang/ClassLoader;
5: invokespecial org.springframework.core.io.ClassPathResource.<init>:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
astore 3
start local 3 6: aload 0
aload 3
invokevirtual org.springframework.core.io.ClassPathResource.getURI:()Ljava/net/URI;
invokevirtual org.springframework.beans.propertyeditors.URIEditor.setValue:(Ljava/lang/Object;)V
7: goto 15
8: StackMap locals: org.springframework.beans.propertyeditors.URIEditor java.lang.String java.lang.String org.springframework.core.io.ClassPathResource
StackMap stack: java.io.IOException
astore 4
start local 4 9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Could not retrieve URI 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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 10: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 2
invokevirtual org.springframework.beans.propertyeditors.URIEditor.createURI:(Ljava/lang/String;)Ljava/net/URI;
invokevirtual org.springframework.beans.propertyeditors.URIEditor.setValue:(Ljava/lang/Object;)V
11: goto 15
12: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 3
start local 3 13: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid URI syntax: "
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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 14: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual org.springframework.beans.propertyeditors.URIEditor.setValue:(Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
0 16 1 text Ljava/lang/String;
2 14 2 uri Ljava/lang/String;
6 10 3 resource Lorg/springframework/core/io/ClassPathResource;
9 10 4 ex Ljava/io/IOException;
13 14 3 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
6 7 8 Class java.io.IOException
10 11 12 Class java.net.URISyntaxException
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
text
protected java.net.URI createURI(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URI;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: aload 0
getfield org.springframework.beans.propertyeditors.URIEditor.encode:Z
ifeq 11
iload 2
iconst_m1
if_icmpeq 11
2: aload 1
bipush 35
iload 2
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 3
start local 3 3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 4: aload 1
iload 2
iconst_1
iadd
iload 3
ifle 5
iload 3
goto 6
StackMap locals: org.springframework.beans.propertyeditors.URIEditor java.lang.String int int java.lang.String
StackMap stack: java.lang.String int
5: aload 1
invokevirtual java.lang.String.length:()I
StackMap locals: org.springframework.beans.propertyeditors.URIEditor java.lang.String int int java.lang.String
StackMap stack: java.lang.String int int
6: invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 7: iload 3
ifle 8
aload 1
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 9
StackMap locals: java.lang.String
StackMap stack:
8: aconst_null
StackMap locals:
StackMap stack: java.lang.String
9: astore 6
start local 6 10: new java.net.URI
dup
aload 4
aload 5
aload 6
invokespecial java.net.URI.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 6 end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
new java.net.URI
dup
aload 1
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/beans/propertyeditors/URIEditor;
0 12 1 value Ljava/lang/String;
1 12 2 colonIndex I
3 11 3 fragmentIndex I
4 11 4 scheme Ljava/lang/String;
7 11 5 ssp Ljava/lang/String;
10 11 6 fragment Ljava/lang/String;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
value
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.URIEditor.getValue:()Ljava/lang/Object;
checkcast java.net.URI
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.net.URI.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.net.URI
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/URIEditor;
1 4 1 value Ljava/net/URI;
}
SourceFile: "URIEditor.java"