Package org.xwiki.rendering.block.match
Class AnyBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.AnyBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
public class AnyBlockMatcher extends Object implements BlockMatcher
Implementation ofBlockMatcher
which match anyBlock
.- Since:
- 3.0M3
- Version:
- $Id: 1830c645e9b1486b76a5280d35ea012eb942a1b2 $
-
-
Field Summary
Fields Modifier and Type Field Description static AnyBlockMatcher
ANYBLOCKMATCHER
Static version ofAnyBlockMatcher
since it's always the same.
-
Constructor Summary
Constructors Constructor Description AnyBlockMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(Block block)
True if the provided block is matched.
-
-
-
Field Detail
-
ANYBLOCKMATCHER
public static final AnyBlockMatcher ANYBLOCKMATCHER
Static version ofAnyBlockMatcher
since it's always the same.
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcher
True if the provided block is matched.- Specified by:
match
in interfaceBlockMatcher
- Parameters:
block
- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-