@ Unstable public long indexOf ( Block child ) { CounterBlockMatcher counter = new CounterBlockMatcher ( child ) ; Block found = getFirstBlock ( counter , Axes . ANCESTOR_OR_SELF ) ; return found != null ? counter . getCount ( ) : - 1 ; }
Find the index of the block in the tree .