Interface PrimitiveMatcher

All Superinterfaces:
Matchers, RepeatableMatcher, RootNode
All Known Implementing Classes:
ConstantNode, ElementNode, MapEntryNode, ParameterNode, StringNode

public interface PrimitiveMatcher extends RepeatableMatcher
Defines API of a primitive matcher - matcher for single target object
  • Method Details

    • matchTarget

      ImmutableMap matchTarget(Object target, ImmutableMap parameters)
      Parameters:
      target - - to be matched element
      parameters - will receive the matching parameter values
      Returns:
      true if `element` matches with pattern of this matcher