/** * Creates a copy of this element. The copy will be an * instance of the same class matching the same strings. * Copies of elements are necessary to allow elements to cache * intermediate results while matching strings without * interfering with other threads. * * @return a copy of this element */ public override object Clone() { return(new RepeatElement((Element)elem.Clone(), min, max, type)); }
/** * Creates a new matcher for the specified look-ahead * character input stream. * * @param buffer the character input buffer * * @return the regular expresion matcher * * @since 1.5 */ public Matcher Matcher(ReaderBuffer buffer) { return(new Matcher((Element)element.Clone(), buffer, ignoreCase)); }