class org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder implements org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder
super_class: java.lang.Object
{
private final java.util.LinkedList<org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder> builders;
descriptor: Ljava/util/LinkedList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedList<Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
public void addPathSegments(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.ObjectUtils.isEmpty:([Ljava/lang/Object;)Z
ifne 9
1: aload 0
ldc Lorg/springframework/web/util/UriComponentsBuilder$PathSegmentComponentBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.getLastBuilder:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder
astore 2
start local 2 2: aload 0
ldc Lorg/springframework/web/util/UriComponentsBuilder$FullPathComponentBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.getLastBuilder:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder
astore 3
start local 3 3: aload 2
ifnonnull 8
4: new org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder
dup
invokespecial org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder.<init>:()V
astore 2
5: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
aload 2
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
6: aload 3
ifnull 8
7: aload 3
invokevirtual org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder.removeTrailingSlash:()V
8: StackMap locals: org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder
StackMap stack:
aload 2
aload 1
invokevirtual org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder.append:([Ljava/lang/String;)V
end local 3 end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
0 10 1 pathSegments [Ljava/lang/String;
2 9 2 psBuilder Lorg/springframework/web/util/UriComponentsBuilder$PathSegmentComponentBuilder;
3 9 3 fpBuilder Lorg/springframework/web/util/UriComponentsBuilder$FullPathComponentBuilder;
MethodParameters:
Name Flags
pathSegments
public void addPath(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 11
1: aload 0
ldc Lorg/springframework/web/util/UriComponentsBuilder$PathSegmentComponentBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.getLastBuilder:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder
astore 2
start local 2 2: aload 0
ldc Lorg/springframework/web/util/UriComponentsBuilder$FullPathComponentBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.getLastBuilder:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder
astore 3
start local 3 3: aload 2
ifnull 7
4: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
aload 1
goto 6
StackMap locals: org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder
StackMap stack:
5: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
6: astore 1
7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 10
8: new org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder
dup
invokespecial org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder.<init>:()V
astore 3
9: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
aload 3
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals:
StackMap stack:
aload 3
aload 1
invokevirtual org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder.append:(Ljava/lang/String;)V
end local 3 end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
0 12 1 path Ljava/lang/String;
2 11 2 psBuilder Lorg/springframework/web/util/UriComponentsBuilder$PathSegmentComponentBuilder;
3 11 3 fpBuilder Lorg/springframework/web/util/UriComponentsBuilder$FullPathComponentBuilder;
MethodParameters:
Name Flags
path
private <T> T getLastBuilder(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.isEmpty:()Z
ifne 4
1: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.getLast:()Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 4
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
0 5 1 builderClass Ljava/lang/Class<TT;>;
2 4 2 last Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
builderClass
public org.springframework.web.util.HierarchicalUriComponents$PathComponent build();
descriptor: ()Lorg/springframework/web/util/HierarchicalUriComponents$PathComponent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.size:()I
istore 1
start local 1 1: new java.util.ArrayList
dup
iload 1
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 2: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder int java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder
astore 3
start local 3 4: aload 3
invokeinterface org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder.build:()Lorg/springframework/web/util/HierarchicalUriComponents$PathComponent;
astore 5
start local 5 5: aload 5
ifnull 7
6: aload 2
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 10
9: getstatic org.springframework.web.util.HierarchicalUriComponents.NULL_PATH_COMPONENT:Lorg/springframework/web/util/HierarchicalUriComponents$PathComponent;
areturn
10: StackMap locals: org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder int java.util.List
StackMap stack:
aload 2
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 12
11: aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.springframework.web.util.HierarchicalUriComponents$PathComponent
areturn
12: StackMap locals:
StackMap stack:
new org.springframework.web.util.HierarchicalUriComponents$PathComponentComposite
dup
aload 2
invokespecial org.springframework.web.util.HierarchicalUriComponents$PathComponentComposite.<init>:(Ljava/util/List;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
1 13 1 size I
2 13 2 components Ljava/util/List<Lorg/springframework/web/util/HierarchicalUriComponents$PathComponent;>;
4 7 3 componentBuilder Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;
5 7 5 pathComponent Lorg/springframework/web/util/HierarchicalUriComponents$PathComponent;
public org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder cloneBuilder();
descriptor: ()Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder
dup
invokespecial org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder
astore 2
start local 2 3: aload 1
getfield org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.builders:Ljava/util/LinkedList;
aload 2
invokeinterface org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder.cloneBuilder:()Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
1 6 1 compositeBuilder Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
3 4 2 builder Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;
public org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder cloneBuilder();
descriptor: ()Lorg/springframework/web/util/UriComponentsBuilder$PathComponentBuilder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder.cloneBuilder:()Lorg/springframework/web/util/UriComponentsBuilder$CompositePathComponentBuilder;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "UriComponentsBuilder.java"
NestHost: org.springframework.web.util.UriComponentsBuilder
InnerClasses:
abstract PathComponent = org.springframework.web.util.HierarchicalUriComponents$PathComponent of org.springframework.web.util.HierarchicalUriComponents
final PathComponentComposite = org.springframework.web.util.HierarchicalUriComponents$PathComponentComposite of org.springframework.web.util.HierarchicalUriComponents
private CompositePathComponentBuilder = org.springframework.web.util.UriComponentsBuilder$CompositePathComponentBuilder of org.springframework.web.util.UriComponentsBuilder
private FullPathComponentBuilder = org.springframework.web.util.UriComponentsBuilder$FullPathComponentBuilder of org.springframework.web.util.UriComponentsBuilder
private abstract PathComponentBuilder = org.springframework.web.util.UriComponentsBuilder$PathComponentBuilder of org.springframework.web.util.UriComponentsBuilder
private PathSegmentComponentBuilder = org.springframework.web.util.UriComponentsBuilder$PathSegmentComponentBuilder of org.springframework.web.util.UriComponentsBuilder