@Override public boolean has(String pattern){
  return has(Pattern.compile(pattern.startsWith("^") ? pattern : "^" + pattern,Pattern.DOTALL | Pattern.MULTILINE));
}

@ Override public boolean has ( String pattern ) { return has ( Pattern . compile ( pattern . startsWith ( "^" ) ? pattern : "^" + pattern , Pattern . DOTALL | Pattern . MULTILINE ) ) ; }
this method will determine whether the indicated pattern can be found at this point in the document or not
