private Node getLastChild ( Node node ) { if ( node == null ) return null ; Node newNode = node . getLastChild ( ) ; if ( newNode == null ) return null ; int accept = acceptNode ( newNode ) ; if ( accept == NodeFilter . FILTER_ACCEPT ) return newNode ; else if ( accept == NodeFilter . FILTER_SKIP && newNode . hasChildNodes ( ) ) return getLastChild ( newNode ) ; // if (accept == NodeFilter.REJECT_NODE) return getPreviousSibling ( newNode ) ; }
Internal function . Return the last child Node from the input node after applying filter whatToshow . The current node is not consulted or set .