Class NodeStepTypePredicate

java.lang.Object
org.jenkinsci.plugins.workflow.graphanalysis.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 Details

    • 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 Details

    • 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>