public class org.springframework.web.util.UriTemplate implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.util.UriTemplate
super_class: java.lang.Object
{
private final java.lang.String uriTemplate;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.web.util.UriComponents uriComponents;
descriptor: Lorg/springframework/web/util/UriComponents;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.lang.String> variableNames;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private final java.util.regex.Pattern matchPattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "'uriTemplate' must not be null"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.web.util.UriTemplate.uriTemplate:Ljava/lang/String;
3: aload 0
aload 1
invokestatic org.springframework.web.util.UriComponentsBuilder.fromUriString:(Ljava/lang/String;)Lorg/springframework/web/util/UriComponentsBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder.build:()Lorg/springframework/web/util/UriComponents;
putfield org.springframework.web.util.UriTemplate.uriComponents:Lorg/springframework/web/util/UriComponents;
4: aload 1
invokestatic org.springframework.web.util.UriTemplate$TemplateInfo.parse:(Ljava/lang/String;)Lorg/springframework/web/util/UriTemplate$TemplateInfo;
astore 2
start local 2 5: aload 0
aload 2
invokevirtual org.springframework.web.util.UriTemplate$TemplateInfo.getVariableNames:()Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.springframework.web.util.UriTemplate.variableNames:Ljava/util/List;
6: aload 0
aload 2
invokevirtual org.springframework.web.util.UriTemplate$TemplateInfo.getMatchPattern:()Ljava/util/regex/Pattern;
putfield org.springframework.web.util.UriTemplate.matchPattern:Ljava/util/regex/Pattern;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/util/UriTemplate;
0 8 1 uriTemplate Ljava/lang/String;
5 8 2 info Lorg/springframework/web/util/UriTemplate$TemplateInfo;
MethodParameters:
Name Flags
uriTemplate
public java.util.List<java.lang.String> getVariableNames();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.UriTemplate.variableNames:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/UriTemplate;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public java.net.URI expand(java.util.Map<java.lang.String, ?>);
descriptor: (Ljava/util/Map;)Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.UriTemplate.uriComponents:Lorg/springframework/web/util/UriComponents;
aload 1
invokevirtual org.springframework.web.util.UriComponents.expand:(Ljava/util/Map;)Lorg/springframework/web/util/UriComponents;
astore 2
start local 2 1: aload 2
invokevirtual org.springframework.web.util.UriComponents.encode:()Lorg/springframework/web/util/UriComponents;
astore 3
start local 3 2: aload 3
invokevirtual org.springframework.web.util.UriComponents.toUri:()Ljava/net/URI;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/UriTemplate;
0 3 1 uriVariables Ljava/util/Map<Ljava/lang/String;*>;
1 3 2 expandedComponents Lorg/springframework/web/util/UriComponents;
2 3 3 encodedComponents Lorg/springframework/web/util/UriComponents;
Signature: (Ljava/util/Map<Ljava/lang/String;*>;)Ljava/net/URI;
MethodParameters:
Name Flags
uriVariables
public java.net.URI expand(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/net/URI;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.UriTemplate.uriComponents:Lorg/springframework/web/util/UriComponents;
aload 1
invokevirtual org.springframework.web.util.UriComponents.expand:([Ljava/lang/Object;)Lorg/springframework/web/util/UriComponents;
astore 2
start local 2 1: aload 2
invokevirtual org.springframework.web.util.UriComponents.encode:()Lorg/springframework/web/util/UriComponents;
astore 3
start local 3 2: aload 3
invokevirtual org.springframework.web.util.UriComponents.toUri:()Ljava/net/URI;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/UriTemplate;
0 3 1 uriVariableValues [Ljava/lang/Object;
1 3 2 expandedComponents Lorg/springframework/web/util/UriComponents;
2 3 3 encodedComponents Lorg/springframework/web/util/UriComponents;
MethodParameters:
Name Flags
uriVariableValues
public boolean matches(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.util.UriTemplate.matchPattern:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 3: aload 2
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/UriTemplate;
0 4 1 uri Ljava/lang/String;
3 4 2 matcher Ljava/util/regex/Matcher;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
uri
public java.util.Map<java.lang.String, java.lang.String> match(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ldc "'uri' must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: new java.util.LinkedHashMap
dup
aload 0
getfield org.springframework.web.util.UriTemplate.variableNames:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 2
start local 2 2: aload 0
getfield org.springframework.web.util.UriTemplate.matchPattern:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 3
start local 3 3: aload 3
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 11
4: iconst_1
istore 4
start local 4 5: goto 10
6: StackMap locals: java.util.Map java.util.regex.Matcher int
StackMap stack:
aload 0
getfield org.springframework.web.util.UriTemplate.variableNames:Ljava/util/List;
iload 4
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 7: aload 3
iload 4
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 6
start local 6 8: aload 2
aload 5
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 5 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
aload 3
invokevirtual java.util.regex.Matcher.groupCount:()I
if_icmple 6
end local 4 11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/web/util/UriTemplate;
0 12 1 uri Ljava/lang/String;
2 12 2 result Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 12 3 matcher Ljava/util/regex/Matcher;
5 11 4 i I
7 9 5 name Ljava/lang/String;
8 9 6 value Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
uri
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.UriTemplate.uriTemplate:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/UriTemplate;
}
SourceFile: "UriTemplate.java"
NestMembers:
org.springframework.web.util.UriTemplate$TemplateInfo
InnerClasses:
private final TemplateInfo = org.springframework.web.util.UriTemplate$TemplateInfo of org.springframework.web.util.UriTemplate