Class NodeStepTypePredicate

  • All Implemented Interfaces:
    com.google.common.base.Predicate<FlowNode>, Predicate<FlowNode>

    public final class NodeStepTypePredicate
    extends Object
    implements com.google.common.base.Predicate<FlowNode>
    Predicate that matches FlowNodes (specifically StepNodes) with a specific StepDescriptor type.
    • Constructor Detail

      • NodeStepTypePredicate

        public NodeStepTypePredicate​(@NonNull
                                     org.jenkinsci.plugins.workflow.steps.StepDescriptor descriptorType)
      • NodeStepTypePredicate

        public NodeStepTypePredicate​(@NonNull
                                     String functionName)
        Create a filter predicate based on the step name
    • Method Detail

      • getStepDescriptor

        public org.jenkinsci.plugins.workflow.steps.StepDescriptor getStepDescriptor()
      • apply

        public boolean apply​(@Nullable
                             FlowNode input)
        Specified by:
        apply in interface com.google.common.base.Predicate<FlowNode>