@param node the node whose associated taxon is being requested. @return the taxon object associated with the given node, or null if the node is an internal node.
(Node node)
| 307 | * if the node is an internal node. |
| 308 | */ |
| 309 | public Taxon getTaxon(Node node) { |
| 310 | if (!(node instanceof ReRootedNode)) { |
| 311 | throw new IllegalArgumentException("Node, " + node.toString() + " is not an instance of SimpleRootedNode. It is an instance of "+node.getClass().getName()); |
| 312 | } |
| 313 | return ((ReRootedNode)node).getTaxon(); |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * @param node the node |
no test coverage detected