Class ClassBlockMatcher

    • Constructor Detail

      • ClassBlockMatcher

        public ClassBlockMatcher​(Class<? extends Block> blockClass)
        Parameters:
        blockClass - the class of the block to match
    • 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