Class CompositeBlockMatcher

  • All Implemented Interfaces:
    BlockMatcher

    public class CompositeBlockMatcher
    extends Object
    implements BlockMatcher
    Implementation of BlockMatcher which matches blocks using passed matchers in series.
    Since:
    3.0M3
    Version:
    $Id: 9011a50c3e8015c6527d7899d29f3bcef91bdb5a $
    • Constructor Detail

      • CompositeBlockMatcher

        public CompositeBlockMatcher​(List<BlockMatcher> matchers)
        Parameters:
        matchers - list of matchers to add
      • CompositeBlockMatcher

        public CompositeBlockMatcher​(BlockMatcher... matchers)
        Parameters:
        matchers - vararg list of matchers to add
    • Method Detail

      • match

        public boolean match​(Block block)
        Description copied from interface: BlockMatcher
        True if the provided block is matched.
        Specified by:
        match in interface BlockMatcher
        Parameters:
        block - the block to match
        Returns:
        true if the provided block is matched, false otherwise