Description
For example instead of having to write:
List<HeaderBlock> headers = (List) root.getBlocks(new ClassBlockMatcher(HeaderBlock.class), Block.Axes.DESCENDANT); SectionBlock rootSection = (SectionBlock) context.getCurrentMacroBlock().getFirstBlock( new ClassBlockMatcher(SectionBlock.class), Block.Axes.ANCESTOR);
Be able to write:
List<HeaderBlock> headers = root.getBlocks(new ClassBlockMatcher(HeaderBlock.class), Block.Axes.DESCENDANT); SectionBlock rootSection = context.getCurrentMacroBlock().getFirstBlock( new ClassBlockMatcher(SectionBlock.class), Block.Axes.ANCESTOR);