groovy.text
Class RegexUtils

java.lang.Object
  extended by groovy.text.RegexUtils

Deprecated. use Java's JDK 1.5+ equivalent classes instead

public class RegexUtils
extends java.lang.Object

Regex package required when using JDK 1.4 JDKs. Will be removed in the next major release of Groovy.


Field Summary
private static java.lang.String BS
          Deprecated.  
private static java.lang.String E
          Deprecated.  
private static int NO_MATCH
          Deprecated.  
private static java.lang.String Q
          Deprecated.  
 
Constructor Summary
RegexUtils()
          Deprecated.  
 
Method Summary
static java.lang.String quote(java.lang.String s)
          Deprecated. use java.util.regex.Pattern#quote(String) instead
static java.lang.String quoteReplacement(java.lang.String str)
          Deprecated. Replacement for Matcher.quoteReplacement from JDK 1.5
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BS

private static final java.lang.String BS
Deprecated. 
See Also:
Constant Field Values

E

private static final java.lang.String E
Deprecated. 
See Also:
Constant Field Values

Q

private static final java.lang.String Q
Deprecated. 
See Also:
Constant Field Values

NO_MATCH

private static final int NO_MATCH
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

RegexUtils

public RegexUtils()
Deprecated. 
Method Detail

quote

public static java.lang.String quote(java.lang.String s)
Deprecated. use java.util.regex.Pattern#quote(String) instead

Returns a literal pattern String for the specified String. Used to escape strings that may contain unintentional characters with special significance to replaceAll() etc. GROOVY-3287 : This is used instead of the default Retrotranslator backport implementation. See backport attribute in config/build-retro.xml.

Parameters:
s - the original string
Returns:
the escaped string

quoteReplacement

public static java.lang.String quoteReplacement(java.lang.String str)
Deprecated. 
Replacement for Matcher.quoteReplacement from JDK 1.5



Copyright © ${year} The Codehaus. All Rights Reserved.