public class OrBlockMatcher extends Object implements BlockMatcher
BlockMatcher
which matches blocks by matching with any
of the configured matchers. This is different from CompositeBlockMatcher
which does an AND
.Constructor and Description |
---|
OrBlockMatcher(BlockMatcher... matchers) |
OrBlockMatcher(List<BlockMatcher> matchers) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Block block)
True if the provided block is matched.
|
public OrBlockMatcher(List<BlockMatcher> matchers)
matchers
- list of matchers to addpublic OrBlockMatcher(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.