abstract class org.junit.jupiter.api.condition.BooleanExecutionCondition<A extends java.lang.annotation.Annotation> implements org.junit.jupiter.api.extension.ExecutionCondition
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: org.junit.jupiter.api.condition.BooleanExecutionCondition
super_class: java.lang.Object
{
private final java.lang.Class<A> annotationType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TA;>;
private final java.lang.String enabledReason;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String disabledReason;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Function<A, java.lang.String> customDisabledReason;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<TA;Ljava/lang/String;>;
void <init>(java.lang.Class<A>, java.lang.String, java.lang.String, java.util.function.Function<A, java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.junit.jupiter.api.condition.BooleanExecutionCondition.annotationType:Ljava/lang/Class;
2: aload 0
aload 2
putfield org.junit.jupiter.api.condition.BooleanExecutionCondition.enabledReason:Ljava/lang/String;
3: aload 0
aload 3
putfield org.junit.jupiter.api.condition.BooleanExecutionCondition.disabledReason:Ljava/lang/String;
4: aload 0
aload 4
putfield org.junit.jupiter.api.condition.BooleanExecutionCondition.customDisabledReason:Ljava/util/function/Function;
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<TA;>;
0 6 1 annotationType Ljava/lang/Class<TA;>;
0 6 2 enabledReason Ljava/lang/String;
0 6 3 disabledReason Ljava/lang/String;
0 6 4 customDisabledReason Ljava/util/function/Function<TA;Ljava/lang/String;>;
Signature: (Ljava/lang/Class<TA;>;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function<TA;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
annotationType
enabledReason
disabledReason
customDisabledReason
abstract boolean isEnabled();
descriptor: (Ljava/lang/annotation/Annotation;)Z
flags: (0x0400) ACC_ABSTRACT
Signature: (TA;)Z
MethodParameters:
Name Flags
annotation
public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext);
descriptor: (Lorg/junit/jupiter/api/extension/ExtensionContext;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.junit.jupiter.api.extension.ExtensionContext.getElement:()Ljava/util/Optional;
aload 0
getfield org.junit.jupiter.api.condition.BooleanExecutionCondition.annotationType:Ljava/lang/Class;
invokestatic org.junit.platform.commons.util.AnnotationUtils.findAnnotation:(Ljava/util/Optional;Ljava/lang/Class;)Ljava/util/Optional;
1: aload 0
invokedynamic apply(Lorg/junit/jupiter/api/condition/BooleanExecutionCondition;)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/BooleanExecutionCondition.lambda$0(Ljava/lang/annotation/Annotation;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult; (7)
(Ljava/lang/annotation/Annotation;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
2: aload 0
invokedynamic get(Lorg/junit/jupiter/api/condition/BooleanExecutionCondition;)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/junit/jupiter/api/condition/BooleanExecutionCondition.enabledByDefault()Lorg/junit/jupiter/api/extension/ConditionEvaluationResult; (7)
()Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast org.junit.jupiter.api.extension.ConditionEvaluationResult
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<TA;>;
0 4 1 context Lorg/junit/jupiter/api/extension/ExtensionContext;
MethodParameters:
Name Flags
context
private org.junit.jupiter.api.extension.ConditionEvaluationResult enabledByDefault();
descriptor: ()Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: ldc "@%s is not present"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.junit.jupiter.api.condition.BooleanExecutionCondition.annotationType:Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic org.junit.jupiter.api.extension.ConditionEvaluationResult.enabled:(Ljava/lang/String;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<TA;>;
1 2 1 reason Ljava/lang/String;
private org.junit.jupiter.api.extension.ConditionEvaluationResult lambda$0(java.lang.annotation.Annotation);
descriptor: (Ljava/lang/annotation/Annotation;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.junit.jupiter.api.condition.BooleanExecutionCondition.isEnabled:(Ljava/lang/annotation/Annotation;)Z
ifeq 1
aload 0
getfield org.junit.jupiter.api.condition.BooleanExecutionCondition.enabledReason:Ljava/lang/String;
invokestatic org.junit.jupiter.api.extension.ConditionEvaluationResult.enabled:(Ljava/lang/String;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
goto 2
1: StackMap locals:
StackMap stack:
aload 0
getfield org.junit.jupiter.api.condition.BooleanExecutionCondition.disabledReason:Ljava/lang/String;
aload 0
getfield org.junit.jupiter.api.condition.BooleanExecutionCondition.customDisabledReason:Ljava/util/function/Function;
aload 1
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic org.junit.jupiter.api.extension.ConditionEvaluationResult.disabled:(Ljava/lang/String;Ljava/lang/String;)Lorg/junit/jupiter/api/extension/ConditionEvaluationResult;
StackMap locals:
StackMap stack: org.junit.jupiter.api.extension.ConditionEvaluationResult
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/junit/jupiter/api/condition/BooleanExecutionCondition<TA;>;
0 3 1 annotation TA;
}
Signature: <A::Ljava/lang/annotation/Annotation;>Ljava/lang/Object;Lorg/junit/jupiter/api/extension/ExecutionCondition;
SourceFile: "BooleanExecutionCondition.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles