public static SearchPattern createAndPattern(SearchPattern leftPattern,SearchPattern rightPattern){
  return new AndPattern(leftPattern,rightPattern);
}

public static SearchPattern createAndPattern ( SearchPattern leftPattern , SearchPattern rightPattern ) { return new AndPattern ( leftPattern , rightPattern ) ; }
returns a search pattern that combines the given two patterns into an " and " pattern . the search result will match both the left pattern and the right pattern .
