code: @Deprecated
      public void setPattern(Pattern pattern) {
          patterns = new ArrayList<Pattern>(1);
          patterns.add(pattern);
      }
docs: Set pattern for text parsing
  
  @param pattern pattern definition object