|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompatibilityBlock
Add a backward compatibility layer to the Block
class.
Method Summary | ||
---|---|---|
|
getChildrenByType(Class<T> blockClass,
boolean recurse)
Deprecated. since 3.0M3 use #getBlocks(new ClassBlockMatcher(blockClass), Axes.DESCENDANT) instead if
recurse was true and #getBlocks(new ClassBlockMatcher(blockClass), Axes.CHILD)
otherwise |
|
|
getParentBlockByType(Class<T> blockClass)
Deprecated. since 3.0M3 use #getBlocks(BlockMatcher, Axes) instead |
|
|
getPreviousBlockByType(Class<T> blockClass,
boolean recurse)
Deprecated. since 3.0M3 use #getBlocks(BlockMatcher, Axes) instead |
Method Detail |
---|
@Deprecated <T extends Block> T getParentBlockByType(Class<T> blockClass)
#getBlocks(BlockMatcher, Axes)
instead
The difference with getPreviousBlockByType(Class, boolean)
is that this one only look at parent when
getPreviousBlockByType(Class, boolean)
look at previous block in the same parent.
T
- the class of the Blocks to returnblockClass
- the block class to look for
@Deprecated <T extends Block> T getPreviousBlockByType(Class<T> blockClass, boolean recurse)
#getBlocks(BlockMatcher, Axes)
instead
The difference with #getParentBlockByType(Class)
is that this one look also at previous block in the same
parent when #getParentBlockByType(Class)
only look at parents.
T
- the class of the Blocks to returnblockClass
- the block class to look forrecurse
- if true also search in parents levels
@Deprecated <T extends Block> List<T> getChildrenByType(Class<T> blockClass, boolean recurse)
#getBlocks(new ClassBlockMatcher(blockClass), Axes.DESCENDANT)
instead if
recurse
was true and #getBlocks(new ClassBlockMatcher(blockClass), Axes.CHILD)
otherwise
T
- the class of the Blocks to returnblockClass
- the block class to look forrecurse
- if true also search recursively children
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |