org.acmsl.regexpplugin.gnuregexp
Class HelperGNUAdapter

java.lang.Object
  |
  +--org.acmsl.regexpplugin.gnuregexp.HelperGNUAdapter
All Implemented Interfaces:
Helper, org.acmsl.version.Versionable

public class HelperGNUAdapter
extends java.lang.Object
implements Helper

GNU Regexp 1.1.4-specific helper adapter.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro Armend?riz

Field Summary
static org.acmsl.version.Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
HelperGNUAdapter()
           
 
Method Summary
static org.acmsl.version.Version getClassVersion()
          Retrieves the current version of this class.
 org.acmsl.version.Version getVersion()
          Retrieves the current version of this object.
 java.lang.String replaceAll(java.lang.String input, java.lang.String pattern, java.lang.String replacement)
          Finds all occurrences of a specified pattern in given input contents, and replaces them with passed String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final org.acmsl.version.Version VERSION
Concrete version object updated everytime it's checked-in in a CVS repository.

Constructor Detail

HelperGNUAdapter

public HelperGNUAdapter()
Method Detail

replaceAll

public java.lang.String replaceAll(java.lang.String input,
                                   java.lang.String pattern,
                                   java.lang.String replacement)
                            throws MalformedPatternException
Finds all occurrences of a specified pattern in given input contents, and replaces them with passed String.

Specified by:
replaceAll in interface Helper
Parameters:
input - the input text to process.
pattern - the pattern to replace.
replacement - the replacement text.
Returns:
the updated input.
Throws:
MalformedPatternException - if given regexp is malformed.

getVersion

public org.acmsl.version.Version getVersion()
Retrieves the current version of this object.

Specified by:
getVersion in interface org.acmsl.version.Versionable
Returns:
the version object with such information.

getClassVersion

public static org.acmsl.version.Version getClassVersion()
Retrieves the current version of this class.

Returns:
the object with class version information.


Copyright © 2003 ACM S.L.. All Rights Reserved.