public class CompositeBlockMatcher extends Object implements BlockMatcher
BlockMatcher
which matches blocks using passed matchers in series.Constructor and Description |
---|
CompositeBlockMatcher(BlockMatcher... matchers) |
CompositeBlockMatcher(List<BlockMatcher> matchers) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Block block)
True if the provided block is matched.
|
public CompositeBlockMatcher(List<BlockMatcher> matchers)
matchers
- list of matchers to addpublic CompositeBlockMatcher(BlockMatcher... matchers)
matchers
- vararg list of matchers to addpublic boolean match(Block block)
BlockMatcher
match
in interface BlockMatcher
block
- the block to matchCopyright © 2004–2021 XWiki. All rights reserved.