class org.springframework.boot.context.config.LocationResourceLoader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.context.config.LocationResourceLoader
super_class: java.lang.Object
{
private static final org.springframework.core.io.Resource[] EMPTY_RESOURCES;
descriptor: [Lorg/springframework/core/io/Resource;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Comparator<java.io.File> FILE_PATH_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Ljava/io/File;>;
private static final java.util.Comparator<java.io.File> FILE_NAME_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Ljava/io/File;>;
private final org.springframework.core.io.ResourceLoader resourceLoader;
descriptor: Lorg/springframework/core/io/ResourceLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray org.springframework.core.io.Resource
putstatic org.springframework.boot.context.config.LocationResourceLoader.EMPTY_RESOURCES:[Lorg/springframework/core/io/Resource;
1: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/io/File.getAbsolutePath()Ljava/lang/String; (5)
(Ljava/io/File;)Ljava/lang/String;
invokestatic java.util.Comparator.comparing:(Ljava/util/function/Function;)Ljava/util/Comparator;
putstatic org.springframework.boot.context.config.LocationResourceLoader.FILE_PATH_COMPARATOR:Ljava/util/Comparator;
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/io/File.getName()Ljava/lang/String; (5)
(Ljava/io/File;)Ljava/lang/String;
invokestatic java.util.Comparator.comparing:(Ljava/util/function/Function;)Ljava/util/Comparator;
putstatic org.springframework.boot.context.config.LocationResourceLoader.FILE_NAME_COMPARATOR:Ljava/util/Comparator;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.springframework.core.io.ResourceLoader);
descriptor: (Lorg/springframework/core/io/ResourceLoader;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.boot.context.config.LocationResourceLoader.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 3 1 resourceLoader Lorg/springframework/core/io/ResourceLoader;
MethodParameters:
Name Flags
resourceLoader
boolean isPattern(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 1
aload 1
ldc "*"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 2 1 location Ljava/lang/String;
MethodParameters:
Name Flags
location
org.springframework.core.io.Resource getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/core/io/Resource;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.validateNonPattern:(Ljava/lang/String;)V
1: aload 1
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
astore 1
2: aload 1
invokestatic org.springframework.util.ResourceUtils.isUrl:(Ljava/lang/String;)Z
ifne 4
3: new java.lang.StringBuilder
dup
ldc "file:"
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;
astore 1
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.boot.context.config.LocationResourceLoader.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
aload 1
invokeinterface org.springframework.core.io.ResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 5 1 location Ljava/lang/String;
MethodParameters:
Name Flags
location
private void validateNonPattern(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.isPattern:(Ljava/lang/String;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$2(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 4 1 location Ljava/lang/String;
MethodParameters:
Name Flags
location
org.springframework.core.io.Resource[] getResources(java.lang.String, org.springframework.boot.context.config.LocationResourceLoader$ResourceType);
descriptor: (Ljava/lang/String;Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;)[Lorg/springframework/core/io/Resource;
flags: (0x0000)
Code:
stack=4, locals=16, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.validatePattern:(Ljava/lang/String;Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;)V
1: aload 1
iconst_0
aload 1
ldc "*/"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 2: aload 1
aload 1
ldc "/"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 3: aload 0
aload 3
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
astore 5
start local 5 4: aload 5
invokeinterface org.springframework.core.io.Resource.exists:()Z
ifne 6
5: iconst_1
anewarray org.springframework.core.io.Resource
dup
iconst_0
aload 5
aastore
areturn
6: StackMap locals: java.lang.String java.lang.String org.springframework.core.io.Resource
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.getDirectory:(Ljava/lang/String;Lorg/springframework/core/io/Resource;)Ljava/io/File;
astore 6
start local 6 7: aload 6
aload 0
invokedynamic accept(Lorg/springframework/boot/context/config/LocationResourceLoader;)Ljava/io/FileFilter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/io/File;)Z
org/springframework/boot/context/config/LocationResourceLoader.isVisibleDirectory(Ljava/io/File;)Z (7)
(Ljava/io/File;)Z
invokevirtual java.io.File.listFiles:(Ljava/io/FileFilter;)[Ljava/io/File;
astore 7
start local 7 8: aload 7
ifnonnull 10
9: getstatic org.springframework.boot.context.config.LocationResourceLoader.EMPTY_RESOURCES:[Lorg/springframework/core/io/Resource;
areturn
10: StackMap locals: java.io.File java.io.File[]
StackMap stack:
aload 7
getstatic org.springframework.boot.context.config.LocationResourceLoader.FILE_PATH_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
11: aload 2
getstatic org.springframework.boot.context.config.LocationResourceLoader$ResourceType.DIRECTORY:Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;
if_acmpne 13
12: aload 7
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/core/io/FileSystemResource.<init>(Ljava/io/File;)V (8)
(Ljava/io/File;)Lorg/springframework/core/io/FileSystemResource;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/IntFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$5(I)[Lorg/springframework/core/io/Resource; (6)
(I)[Lorg/springframework/core/io/Resource;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast org.springframework.core.io.Resource[]
areturn
13: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 9
start local 9 14: aload 4
invokedynamic accept(Ljava/lang/String;)Ljava/io/FilenameFilter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/io/File;Ljava/lang/String;)Z
org/springframework/boot/context/config/LocationResourceLoader.lambda$6(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)Z (6)
(Ljava/io/File;Ljava/lang/String;)Z
astore 10
start local 10 15: aload 7
dup
astore 14
arraylength
istore 13
iconst_0
istore 12
goto 22
StackMap locals: org.springframework.boot.context.config.LocationResourceLoader java.lang.String org.springframework.boot.context.config.LocationResourceLoader$ResourceType java.lang.String java.lang.String org.springframework.core.io.Resource java.io.File java.io.File[] top java.util.List java.io.FilenameFilter top int int java.io.File[]
StackMap stack:
16: aload 14
iload 12
aaload
astore 11
start local 11 17: aload 11
aload 10
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
astore 15
start local 15 18: aload 15
ifnull 21
19: aload 15
getstatic org.springframework.boot.context.config.LocationResourceLoader.FILE_NAME_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
20: aload 15
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/core/io/FileSystemResource.<init>(Ljava/io/File;)V (8)
(Ljava/io/File;)Lorg/springframework/core/io/FileSystemResource;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
aload 9
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Lorg/springframework/core/io/FileSystemResource;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
end local 15 end local 11 21: StackMap locals:
StackMap stack:
iinc 12 1
StackMap locals:
StackMap stack:
22: iload 12
iload 13
if_icmplt 16
23: aload 9
getstatic org.springframework.boot.context.config.LocationResourceLoader.EMPTY_RESOURCES:[Lorg/springframework/core/io/Resource;
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.springframework.core.io.Resource[]
areturn
end local 10 end local 9 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 24 1 location Ljava/lang/String;
0 24 2 type Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;
2 24 3 directoryPath Ljava/lang/String;
3 24 4 fileName Ljava/lang/String;
4 24 5 directoryResource Lorg/springframework/core/io/Resource;
7 24 6 directory Ljava/io/File;
8 24 7 subDirectories [Ljava/io/File;
14 24 9 resources Ljava/util/List<Lorg/springframework/core/io/Resource;>;
15 24 10 filter Ljava/io/FilenameFilter;
17 21 11 subDirectory Ljava/io/File;
18 21 15 files [Ljava/io/File;
MethodParameters:
Name Flags
location
type
private void validatePattern(java.lang.String, org.springframework.boot.context.config.LocationResourceLoader$ResourceType);
descriptor: (Ljava/lang/String;Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.springframework.boot.context.config.LocationResourceLoader.isPattern:(Ljava/lang/String;)Z
aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$9(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
1: aload 1
ldc "classpath*:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
3: StackMap locals:
StackMap stack: int
aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$10(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
4: invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
5: aload 1
ldc "*"
invokestatic org.springframework.util.StringUtils.countOccurrencesOf:(Ljava/lang/String;Ljava/lang/String;)I
iconst_1
if_icmpne 6
iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
7: StackMap locals:
StackMap stack: int
aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$11(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
8: invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
9: aload 2
getstatic org.springframework.boot.context.config.LocationResourceLoader$ResourceType.DIRECTORY:Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;
if_acmpeq 10
aload 1
iconst_0
aload 1
ldc "/"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 11
10: StackMap locals:
StackMap stack:
aload 1
11: StackMap locals:
StackMap stack: java.lang.String
astore 3
start local 3 12: aload 3
ldc "*/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$12(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 14 1 location Ljava/lang/String;
0 14 2 type Lorg/springframework/boot/context/config/LocationResourceLoader$ResourceType;
12 14 3 directoryPath Ljava/lang/String;
MethodParameters:
Name Flags
location
type
private java.io.File getDirectory(java.lang.String, org.springframework.core.io.Resource);
descriptor: (Ljava/lang/String;Lorg/springframework/core/io/Resource;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.springframework.core.io.Resource.getFile:()Ljava/io/File;
astore 3
start local 3 1: aload 3
invokevirtual java.io.File.isDirectory:()Z
aload 3
invokedynamic get(Ljava/io/File;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/context/config/LocationResourceLoader.lambda$13(Ljava/io/File;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic org.springframework.util.Assert.state:(ZLjava/util/function/Supplier;)V
2: aload 3
3: areturn
end local 3 4: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new java.lang.IllegalStateException
dup
6: new java.lang.StringBuilder
dup
ldc "Unable to load config data resource from pattern '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
7: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 8 1 patternLocation Ljava/lang/String;
0 8 2 resource Lorg/springframework/core/io/Resource;
1 4 3 directory Ljava/io/File;
5 8 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
patternLocation
resource
private boolean isVisibleDirectory(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.isDirectory:()Z
ifeq 1
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc ".."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/config/LocationResourceLoader;
0 2 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
private static java.lang.String lambda$2(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: ldc "Location '%s' must not be a pattern"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static org.springframework.core.io.Resource[] lambda$5(int);
descriptor: (I)[Lorg/springframework/core/io/Resource;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray org.springframework.core.io.Resource
areturn
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$6(java.lang.String, java.io.File, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 1 start local 2 0: aload 2
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 dir Ljava/io/File;
0 1 2 name Ljava/lang/String;
private static java.lang.String lambda$9(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: ldc "Location '%s' must be a pattern"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$10(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: ldc "Location '%s' cannot use classpath wildcards"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$11(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: ldc "Location '%s' cannot contain multiple wildcards"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$12(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: ldc "Location '%s' must end with '*/'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$13(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' is not a directory"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "LocationResourceLoader.java"
NestMembers:
org.springframework.boot.context.config.LocationResourceLoader$ResourceType
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final ResourceType = org.springframework.boot.context.config.LocationResourceLoader$ResourceType of org.springframework.boot.context.config.LocationResourceLoader