final class org.springframework.boot.env.ConfigTreePropertySource$PropertyFile
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.boot.env.ConfigTreePropertySource$PropertyFile
super_class: java.lang.Object
{
private static final org.springframework.boot.origin.TextResourceOrigin$Location START_OF_FILE;
descriptor: Lorg/springframework/boot/origin/TextResourceOrigin$Location;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.nio.file.Path path;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.core.io.PathResource resource;
descriptor: Lorg/springframework/core/io/PathResource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.boot.origin.Origin origin;
descriptor: Lorg/springframework/boot/origin/Origin;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent cachedContent;
descriptor: Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFileContent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean autoTrimTrailingNewLine;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.springframework.boot.origin.TextResourceOrigin$Location
dup
iconst_0
iconst_0
invokespecial org.springframework.boot.origin.TextResourceOrigin$Location.<init>:(II)V
putstatic org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.START_OF_FILE:Lorg/springframework/boot/origin/TextResourceOrigin$Location;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.nio.file.Path, java.util.Set<org.springframework.boot.env.ConfigTreePropertySource$Option>);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.path:Ljava/nio/file/Path;
2: aload 0
new org.springframework.core.io.PathResource
dup
aload 1
invokespecial org.springframework.core.io.PathResource.<init>:(Ljava/nio/file/Path;)V
putfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.resource:Lorg/springframework/core/io/PathResource;
3: aload 0
new org.springframework.boot.origin.TextResourceOrigin
dup
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.resource:Lorg/springframework/core/io/PathResource;
getstatic org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.START_OF_FILE:Lorg/springframework/boot/origin/TextResourceOrigin$Location;
invokespecial org.springframework.boot.origin.TextResourceOrigin.<init>:(Lorg/springframework/core/io/Resource;Lorg/springframework/boot/origin/TextResourceOrigin$Location;)V
putfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.origin:Lorg/springframework/boot/origin/Origin;
4: aload 0
aload 2
getstatic org.springframework.boot.env.ConfigTreePropertySource$Option.AUTO_TRIM_TRAILING_NEW_LINE:Lorg/springframework/boot/env/ConfigTreePropertySource$Option;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
putfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.autoTrimTrailingNewLine:Z
5: aload 0
aload 2
getstatic org.springframework.boot.env.ConfigTreePropertySource$Option.ALWAYS_READ:Lorg/springframework/boot/env/ConfigTreePropertySource$Option;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
aconst_null
goto 7
6: StackMap locals: org.springframework.boot.env.ConfigTreePropertySource$PropertyFile java.nio.file.Path java.util.Set
StackMap stack: org.springframework.boot.env.ConfigTreePropertySource$PropertyFile
new org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent
dup
aload 1
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.resource:Lorg/springframework/core/io/PathResource;
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.origin:Lorg/springframework/boot/origin/Origin;
iconst_1
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.autoTrimTrailingNewLine:Z
invokespecial org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent.<init>:(Ljava/nio/file/Path;Lorg/springframework/core/io/Resource;Lorg/springframework/boot/origin/Origin;ZZ)V
7: StackMap locals: org.springframework.boot.env.ConfigTreePropertySource$PropertyFile java.nio.file.Path java.util.Set
StackMap stack: org.springframework.boot.env.ConfigTreePropertySource$PropertyFile org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent
putfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.cachedContent:Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFileContent;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFile;
0 9 1 path Ljava/nio/file/Path;
0 9 2 options Ljava/util/Set<Lorg/springframework/boot/env/ConfigTreePropertySource$Option;>;
Signature: (Ljava/nio/file/Path;Ljava/util/Set<Lorg/springframework/boot/env/ConfigTreePropertySource$Option;>;)V
MethodParameters:
Name Flags
path
options
org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent getContent();
descriptor: ()Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFileContent;
flags: (0x0000)
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.cachedContent:Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFileContent;
ifnull 2
1: aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.cachedContent:Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFileContent;
areturn
2: StackMap locals:
StackMap stack:
new org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent
dup
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.path:Ljava/nio/file/Path;
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.resource:Lorg/springframework/core/io/PathResource;
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.origin:Lorg/springframework/boot/origin/Origin;
iconst_0
aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.autoTrimTrailingNewLine:Z
invokespecial org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent.<init>:(Ljava/nio/file/Path;Lorg/springframework/core/io/Resource;Lorg/springframework/boot/origin/Origin;ZZ)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFile;
org.springframework.boot.origin.Origin getOrigin();
descriptor: ()Lorg/springframework/boot/origin/Origin;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.origin:Lorg/springframework/boot/origin/Origin;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFile;
static java.util.Map<java.lang.String, org.springframework.boot.env.ConfigTreePropertySource$PropertyFile> findAll(java.nio.file.Path, java.util.Set<org.springframework.boot.env.ConfigTreePropertySource$Option>);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 2
start local 2 1: aload 0
bipush 100
invokedynamic test()Ljava/util/function/BiPredicate;
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;)Z
org/springframework/boot/env/ConfigTreePropertySource$PropertyFile.isPropertyFile(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z (6)
(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.find:(Ljava/nio/file/Path;ILjava/util/function/BiPredicate;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
aload 0
aload 1
aload 2
invokedynamic accept(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/Map;)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
org/springframework/boot/env/ConfigTreePropertySource$PropertyFile.lambda$1(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/Map;Ljava/nio/file/Path;)V (6)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: aload 2
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
3: areturn
end local 2 4: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unable to find files in '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 sourceDirectory Ljava/nio/file/Path;
0 6 1 options Ljava/util/Set<Lorg/springframework/boot/env/ConfigTreePropertySource$Option;>;
1 4 2 propertyFiles Ljava/util/Map<Ljava/lang/String;Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFile;>;
5 6 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 3 4 Class java.io.IOException
Signature: (Ljava/nio/file/Path;Ljava/util/Set<Lorg/springframework/boot/env/ConfigTreePropertySource$Option;>;)Ljava/util/Map<Ljava/lang/String;Lorg/springframework/boot/env/ConfigTreePropertySource$PropertyFile;>;
MethodParameters:
Name Flags
sourceDirectory
options
private static boolean isPropertyFile(java.nio.file.Path, java.nio.file.attribute.BasicFileAttributes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.hasHiddenPathElement:(Ljava/nio/file/Path;)Z
ifne 2
aload 1
invokeinterface java.nio.file.attribute.BasicFileAttributes.isRegularFile:()Z
ifne 1
aload 1
invokeinterface java.nio.file.attribute.BasicFileAttributes.isSymbolicLink:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 path Ljava/nio/file/Path;
0 3 1 attributes Ljava/nio/file/attribute/BasicFileAttributes;
MethodParameters:
Name Flags
path
attributes
private static boolean hasHiddenPathElement(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: goto 4
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 path Ljava/nio/file/Path;
1 6 1 iterator Ljava/util/Iterator<Ljava/nio/file/Path;>;
MethodParameters:
Name Flags
path
private static java.lang.String getName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getNameCount:()I
istore 1
start local 1 1: iload 1
iconst_1
if_icmpne 3
2: aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
3: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 11
6: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 2
iload 3
ifeq 7
ldc "."
goto 8
StackMap locals:
StackMap stack: java.lang.StringBuilder
7: ldc ""
StackMap locals: java.nio.file.Path int java.lang.StringBuilder int
StackMap stack: java.lang.StringBuilder java.lang.String
8: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 2
aload 0
iload 3
invokeinterface java.nio.file.Path.getName:(I)Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
10: iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 1
if_icmplt 6
end local 3 12: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 relativePath Ljava/nio/file/Path;
1 13 1 nameCount I
4 13 2 name Ljava/lang/StringBuilder;
5 12 3 i I
MethodParameters:
Name Flags
relativePath
private static void lambda$1(java.nio.file.Path, java.util.Set, java.util.Map, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/Map;Ljava/nio/file/Path;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=5, args_size=4
start local 3 0: aload 0
aload 3
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokestatic org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.getName:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 4
start local 4 1: aload 4
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 5
2: aload 1
getstatic org.springframework.boot.env.ConfigTreePropertySource$Option.USE_LOWERCASE_NAMES:Lorg/springframework/boot/env/ConfigTreePropertySource$Option;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 4
3: aload 4
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 4
4: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 4
new org.springframework.boot.env.ConfigTreePropertySource$PropertyFile
dup
aload 3
aload 1
invokespecial org.springframework.boot.env.ConfigTreePropertySource$PropertyFile.<init>:(Ljava/nio/file/Path;Ljava/util/Set;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 5: StackMap locals:
StackMap stack:
return
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 6 3 path Ljava/nio/file/Path;
1 5 4 name Ljava/lang/String;
}
SourceFile: "ConfigTreePropertySource.java"
NestHost: org.springframework.boot.env.ConfigTreePropertySource
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Option = org.springframework.boot.env.ConfigTreePropertySource$Option of org.springframework.boot.env.ConfigTreePropertySource
private final PropertyFile = org.springframework.boot.env.ConfigTreePropertySource$PropertyFile of org.springframework.boot.env.ConfigTreePropertySource
private final PropertyFileContent = org.springframework.boot.env.ConfigTreePropertySource$PropertyFileContent of org.springframework.boot.env.ConfigTreePropertySource
public final Location = org.springframework.boot.origin.TextResourceOrigin$Location of org.springframework.boot.origin.TextResourceOrigin