class org.junit.jupiter.api.condition.EnabledOnOsCondition extends org.junit.jupiter.api.condition.BooleanExecutionCondition<org.junit.jupiter.api.condition.EnabledOnOs>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.junit.jupiter.api.condition.EnabledOnOsCondition
super_class: org.junit.jupiter.api.condition.BooleanExecutionCondition
{
static final java.lang.String ENABLED_ON_CURRENT_OS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String DISABLED_ON_CURRENT_OS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "Enabled on operating system: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.junit.jupiter.api.condition.EnabledOnOsCondition.ENABLED_ON_CURRENT_OS:Ljava/lang/String;
1: new java.lang.StringBuilder
dup
ldc "Disabled on operating system: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.junit.jupiter.api.condition.EnabledOnOsCondition.DISABLED_ON_CURRENT_OS:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc Lorg/junit/jupiter/api/condition/EnabledOnOs;
getstatic org.junit.jupiter.api.condition.EnabledOnOsCondition.ENABLED_ON_CURRENT_OS:Ljava/lang/String;
getstatic org.junit.jupiter.api.condition.EnabledOnOsCondition.DISABLED_ON_CURRENT_OS:Ljava/lang/String;
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/junit/jupiter/api/condition/EnabledOnOs.disabledReason()Ljava/lang/String; (9 itf)
(Lorg/junit/jupiter/api/condition/EnabledOnOs;)Ljava/lang/String;
invokespecial org.junit.jupiter.api.condition.BooleanExecutionCondition.<init>:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/junit/jupiter/api/condition/EnabledOnOsCondition;
boolean isEnabled(org.junit.jupiter.api.condition.EnabledOnOs);
descriptor: (Lorg/junit/jupiter/api/condition/EnabledOnOs;)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.junit.jupiter.api.condition.EnabledOnOs.value:()[Lorg/junit/jupiter/api/condition/OS;
astore 2
start local 2 1: aload 2
arraylength
ifle 2
iconst_1
goto 3
StackMap locals: org.junit.jupiter.api.condition.OS[]
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "You must declare at least one OS in @EnabledOnOs"
invokestatic org.junit.platform.commons.util.Preconditions.condition:(ZLjava/lang/String;)V
4: aload 2
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
org/junit/jupiter/api/condition/OS.isCurrentOs()Z (5)
(Lorg/junit/jupiter/api/condition/OS;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/junit/jupiter/api/condition/EnabledOnOsCondition;
0 5 1 annotation Lorg/junit/jupiter/api/condition/EnabledOnOs;
1 5 2 operatingSystems [Lorg/junit/jupiter/api/condition/OS;
MethodParameters:
Name Flags
annotation
boolean isEnabled(java.lang.annotation.Annotation);
descriptor: (Ljava/lang/annotation/Annotation;)Z
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.junit.jupiter.api.condition.EnabledOnOs
invokevirtual org.junit.jupiter.api.condition.EnabledOnOsCondition.isEnabled:(Lorg/junit/jupiter/api/condition/EnabledOnOs;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<Lorg/junit/jupiter/api/condition/EnabledOnOs;>;
SourceFile: "EnabledOnOsCondition.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles