code: private short acceptNode(Node node) {
  		/***
  		 * 7.1.2.4. Filters and whatToShow flags
  		 * 
  		 * Iterator and TreeWalker apply whatToShow flags before applying
  		 * Filters. If a node is rejected by the active whatToShow flags, a
  		 * Filter will not be called to evaluate that node. When a node is
  		 * rejected by the active whatToShow flags, children of that node will
  		 * still be considered, and Filters may be called to evaluate them.
  		 ***/
  
  		if ((whatToShow & (1 << node.getNodeType() - 1)) != 0)
  			return NodeFilter.FILTER_ACCEPT;
  		else
  			return NodeFilter.FILTER_SKIP;
  	}
docs: Internal function. The node whatToShow and the filter are combined into
  one result.