tomp.ext.ext
Class Utils

java.lang.Object
  |
  +--tomp.ext.ext.Utils

public class Utils
extends java.lang.Object

This class is a bridge to Perl5Util (or possibly to other Perl5-like RegExpr processor). The class contains static methods only.


Constructor Summary
Utils()
           
 
Method Summary
static boolean match(java.lang.String pattern, java.lang.String s)
          This fixed-regular expression matcher.
static java.lang.String substitute(java.lang.String match, java.lang.String replace, java.lang.String s)
          This fixed-regular expression substitution is used generally when any substitution is needed.
static java.lang.String substParamNames(java.lang.String s)
          This fixed-regular expression substitution is used when actual parameters are substituted to the $params in the strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

substParamNames

public static java.lang.String substParamNames(java.lang.String s)
This fixed-regular expression substitution is used when actual parameters are substituted to the $params in the strings.

Parameters:
s - substitution input string
Returns:
input string after substitution

substitute

public static java.lang.String substitute(java.lang.String match,
                                          java.lang.String replace,
                                          java.lang.String s)
This fixed-regular expression substitution is used generally when any substitution is needed.

Parameters:
s - substitution input string
Returns:
input string after substitution

match

public static boolean match(java.lang.String pattern,
                            java.lang.String s)
This fixed-regular expression matcher.

Parameters:
pattern - a Per5 match pattern
s - input string
Returns:
true if pattern matched the input string s