leaves
Returns the context's leaves if this context is a top-level context. For convenience, if this is an LeafReaderContext this returns itself as the only leaf, and it will never return a null value.
Note: this is convenience method since leaves can always be obtained by walking the context tree using .children.
See also
.children
Throws
if this is not a top-level context.