public <T extends Node>T jjtGetChild(Class<T> type){
  for (  Node n : children) {
    if (type.isInstance(n)) {
      return (T)n;
    }
  }
  return null;
}

public < T extends Node > T jjtGetChild ( Class < T > type ) { for ( Node n : children ) { if ( type . isInstance ( n ) ) { return ( T ) n ; } } return null ; }
gets the ( first ) child of this node that is of the specific type .
