public boolean hasChild ( String name ) { for ( ParseTreeNode child : children ) { if ( child . getName ( ) . equals ( name ) ) { return true ; } } return false ; }
This method look for a child with a given name .