public void gotoEnd ( ) { currentNode = tree ; while ( currentNode . hasChildren ( ) ) { currentNode = currentNode . getChildren ( ) . get ( currentNode . getChildren ( ) . size ( ) - 1 ) ; } }
This method sets the iterator onto the last tree element .