private boolean hasNext(Pattern pattern){
  if (!hasNext()) {
    return false;
  }
  Matcher matcher=pattern.matcher(gserValue.substring(pos,length));
  return matcher.find();
}

private boolean hasNext ( Pattern pattern ) { if ( ! hasNext ( ) ) { return false ; } Matcher matcher = pattern . matcher ( gserValue . substring ( pos , length ) ) ; return matcher . find ( ) ; }
determines if the remaining gser string matches the provided pattern .
