org.acmsl.regexpplugin
Interface Helper

All Superinterfaces:
org.acmsl.version.Versionable
All Known Implementing Classes:
HelperGNUAdapter, HelperOROAdapter, HelperRegexpAdapter

public interface Helper
extends org.acmsl.version.Versionable

Represents a regexp helper. Different implementations vary but they all must respect this set of methods.

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.
 
Method Summary
 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 interface org.acmsl.version.Versionable
getVersion
 

Field Detail

VERSION

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

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.

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.


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