protected void printNode ( Node n ) { printTabs ( n . getDepth ( ) ) ; System . out . println ( "- \"" + n . getToken ( ) + "\"" ) ; for ( Node c : n . getChildren ( ) ) { printNode ( c ) ; } }
method will print the node and then iterate over the children