class org.junit.jupiter.api.condition.EnabledOnJreCondition extends org.junit.jupiter.api.condition.BooleanExecutionCondition<org.junit.jupiter.api.condition.EnabledOnJre>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.junit.jupiter.api.condition.EnabledOnJreCondition
super_class: org.junit.jupiter.api.condition.BooleanExecutionCondition
{
static final java.lang.String ENABLED_ON_CURRENT_JRE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String DISABLED_ON_CURRENT_JRE;
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 JRE version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "java.version"
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;
1: putstatic org.junit.jupiter.api.condition.EnabledOnJreCondition.ENABLED_ON_CURRENT_JRE:Ljava/lang/String;
2: new java.lang.StringBuilder
dup
ldc "Disabled on JRE version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "java.version"
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;
3: putstatic org.junit.jupiter.api.condition.EnabledOnJreCondition.DISABLED_ON_CURRENT_JRE:Ljava/lang/String;
4: 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/EnabledOnJre;
getstatic org.junit.jupiter.api.condition.EnabledOnJreCondition.ENABLED_ON_CURRENT_JRE:Ljava/lang/String;
getstatic org.junit.jupiter.api.condition.EnabledOnJreCondition.DISABLED_ON_CURRENT_JRE: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/EnabledOnJre.disabledReason()Ljava/lang/String; (9 itf)
(Lorg/junit/jupiter/api/condition/EnabledOnJre;)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/EnabledOnJreCondition;
boolean isEnabled(org.junit.jupiter.api.condition.EnabledOnJre);
descriptor: (Lorg/junit/jupiter/api/condition/EnabledOnJre;)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.EnabledOnJre.value:()[Lorg/junit/jupiter/api/condition/JRE;
astore 2
start local 2 1: aload 2
arraylength
ifle 2
iconst_1
goto 3
StackMap locals: org.junit.jupiter.api.condition.JRE[]
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "You must declare at least one JRE in @EnabledOnJre"
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/JRE.isCurrentVersion()Z (5)
(Lorg/junit/jupiter/api/condition/JRE;)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/EnabledOnJreCondition;
0 5 1 annotation Lorg/junit/jupiter/api/condition/EnabledOnJre;
1 5 2 versions [Lorg/junit/jupiter/api/condition/JRE;
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.EnabledOnJre
invokevirtual org.junit.jupiter.api.condition.EnabledOnJreCondition.isEnabled:(Lorg/junit/jupiter/api/condition/EnabledOnJre;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<Lorg/junit/jupiter/api/condition/EnabledOnJre;>;
SourceFile: "EnabledOnJreCondition.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles