public abstract class org.springframework.boot.cloud.CloudPlatform extends java.lang.Enum<org.springframework.boot.cloud.CloudPlatform>
minor version: 0
major version: 59
flags: flags: (0x4421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT, ACC_ANNOTATION
this_class: org.springframework.boot.cloud.CloudPlatform
super_class: java.lang.Enum
{
public static final org.springframework.boot.cloud.CloudPlatform NONE;
descriptor: Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.springframework.boot.cloud.CloudPlatform CLOUD_FOUNDRY;
descriptor: Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.springframework.boot.cloud.CloudPlatform HEROKU;
descriptor: Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.springframework.boot.cloud.CloudPlatform SAP;
descriptor: Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.springframework.boot.cloud.CloudPlatform KUBERNETES;
descriptor: Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private static final java.lang.String PROPERTY_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "spring.main.cloud-platform"
private static final org.springframework.boot.cloud.CloudPlatform[] ENUM$VALUES;
descriptor: [Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.springframework.boot.cloud.CloudPlatform$1
dup
ldc "NONE"
iconst_0
invokespecial org.springframework.boot.cloud.CloudPlatform$1.<init>:(Ljava/lang/String;I)V
1: putstatic org.springframework.boot.cloud.CloudPlatform.NONE:Lorg/springframework/boot/cloud/CloudPlatform;
2: new org.springframework.boot.cloud.CloudPlatform$2
dup
ldc "CLOUD_FOUNDRY"
iconst_1
invokespecial org.springframework.boot.cloud.CloudPlatform$2.<init>:(Ljava/lang/String;I)V
3: putstatic org.springframework.boot.cloud.CloudPlatform.CLOUD_FOUNDRY:Lorg/springframework/boot/cloud/CloudPlatform;
4: new org.springframework.boot.cloud.CloudPlatform$3
dup
ldc "HEROKU"
iconst_2
invokespecial org.springframework.boot.cloud.CloudPlatform$3.<init>:(Ljava/lang/String;I)V
5: putstatic org.springframework.boot.cloud.CloudPlatform.HEROKU:Lorg/springframework/boot/cloud/CloudPlatform;
6: new org.springframework.boot.cloud.CloudPlatform$4
dup
ldc "SAP"
iconst_3
invokespecial org.springframework.boot.cloud.CloudPlatform$4.<init>:(Ljava/lang/String;I)V
7: putstatic org.springframework.boot.cloud.CloudPlatform.SAP:Lorg/springframework/boot/cloud/CloudPlatform;
8: new org.springframework.boot.cloud.CloudPlatform$5
dup
ldc "KUBERNETES"
iconst_4
invokespecial org.springframework.boot.cloud.CloudPlatform$5.<init>:(Ljava/lang/String;I)V
9: putstatic org.springframework.boot.cloud.CloudPlatform.KUBERNETES:Lorg/springframework/boot/cloud/CloudPlatform;
iconst_5
anewarray org.springframework.boot.cloud.CloudPlatform
dup
iconst_0
getstatic org.springframework.boot.cloud.CloudPlatform.NONE:Lorg/springframework/boot/cloud/CloudPlatform;
aastore
dup
iconst_1
getstatic org.springframework.boot.cloud.CloudPlatform.CLOUD_FOUNDRY:Lorg/springframework/boot/cloud/CloudPlatform;
aastore
dup
iconst_2
getstatic org.springframework.boot.cloud.CloudPlatform.HEROKU:Lorg/springframework/boot/cloud/CloudPlatform;
aastore
dup
iconst_3
getstatic org.springframework.boot.cloud.CloudPlatform.SAP:Lorg/springframework/boot/cloud/CloudPlatform;
aastore
dup
iconst_4
getstatic org.springframework.boot.cloud.CloudPlatform.KUBERNETES:Lorg/springframework/boot/cloud/CloudPlatform;
aastore
putstatic org.springframework.boot.cloud.CloudPlatform.ENUM$VALUES:[Lorg/springframework/boot/cloud/CloudPlatform;
10: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
public boolean isActive(org.springframework.core.env.Environment);
descriptor: (Lorg/springframework/core/env/Environment;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.cloud.CloudPlatform.isEnforced:(Lorg/springframework/core/env/Environment;)Z
ifne 1
aload 0
aload 1
invokevirtual org.springframework.boot.cloud.CloudPlatform.isDetected:(Lorg/springframework/core/env/Environment;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/cloud/CloudPlatform;
0 2 1 environment Lorg/springframework/core/env/Environment;
MethodParameters:
Name Flags
environment
public boolean isEnforced(org.springframework.core.env.Environment);
descriptor: (Lorg/springframework/core/env/Environment;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "spring.main.cloud-platform"
invokeinterface org.springframework.core.env.Environment.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.springframework.boot.cloud.CloudPlatform.isEnforced:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform;
0 1 1 environment Lorg/springframework/core/env/Environment;
MethodParameters:
Name Flags
environment
public boolean isEnforced(org.springframework.boot.context.properties.bind.Binder);
descriptor: (Lorg/springframework/boot/context/properties/bind/Binder;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "spring.main.cloud-platform"
ldc Ljava/lang/String;
invokevirtual org.springframework.boot.context.properties.bind.Binder.bind:(Ljava/lang/String;Ljava/lang/Class;)Lorg/springframework/boot/context/properties/bind/BindResult;
aconst_null
invokevirtual org.springframework.boot.context.properties.bind.BindResult.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.springframework.boot.cloud.CloudPlatform.isEnforced:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform;
0 1 1 binder Lorg/springframework/boot/context/properties/bind/Binder;
MethodParameters:
Name Flags
binder
private boolean isEnforced(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.boot.cloud.CloudPlatform.name:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform;
0 1 1 platform Ljava/lang/String;
MethodParameters:
Name Flags
platform
public abstract boolean isDetected(org.springframework.core.env.Environment);
descriptor: (Lorg/springframework/core/env/Environment;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
environment
public boolean ();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform;
public static org.springframework.boot.cloud.CloudPlatform getActive(org.springframework.core.env.Environment);
descriptor: (Lorg/springframework/core/env/Environment;)Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
ifnull 7
1: invokestatic org.springframework.boot.cloud.CloudPlatform.values:()[Lorg/springframework/boot/cloud/CloudPlatform;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: org.springframework.core.env.Environment top int int org.springframework.boot.cloud.CloudPlatform[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
aload 0
invokevirtual org.springframework.boot.cloud.CloudPlatform.isActive:(Lorg/springframework/core/env/Environment;)Z
ifeq 5
4: aload 1
areturn
end local 1 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 2
7: StackMap locals: org.springframework.core.env.Environment
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 environment Lorg/springframework/core/env/Environment;
3 5 1 cloudPlatform Lorg/springframework/boot/cloud/CloudPlatform;
MethodParameters:
Name Flags
environment
public static org.springframework.boot.cloud.CloudPlatform[] values();
descriptor: ()[Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic org.springframework.boot.cloud.CloudPlatform.ENUM$VALUES:[Lorg/springframework/boot/cloud/CloudPlatform;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray org.springframework.boot.cloud.CloudPlatform
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.springframework.boot.cloud.CloudPlatform valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/boot/cloud/CloudPlatform;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lorg/springframework/boot/cloud/CloudPlatform;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast org.springframework.boot.cloud.CloudPlatform
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Lorg/springframework/boot/cloud/CloudPlatform;>;
SourceFile: "CloudPlatform.java"
NestMembers:
org.springframework.boot.cloud.CloudPlatform$1 org.springframework.boot.cloud.CloudPlatform$2 org.springframework.boot.cloud.CloudPlatform$3 org.springframework.boot.cloud.CloudPlatform$4 org.springframework.boot.cloud.CloudPlatform$5
InnerClasses:
org.springframework.boot.cloud.CloudPlatform$1
org.springframework.boot.cloud.CloudPlatform$2
org.springframework.boot.cloud.CloudPlatform$3
org.springframework.boot.cloud.CloudPlatform$4
org.springframework.boot.cloud.CloudPlatform$5