com.cleancode.format
Class REConverter.REPiece

java.lang.Object
  extended by com.cleancode.format.REConverter.REPiece
Enclosing class:
REConverter

public static class REConverter.REPiece
extends Object

A container class for holding regular expression objects to run against the input.


Constructor Summary
REConverter.REPiece(String name, String target, String replace)
          Construct an REConverter object.
REConverter.REPiece(String name, String target, String replace, boolean oneOnly)
          Construct an REConverter object.
REConverter.REPiece(String name, String target, String replace, int cflags)
          Construct an REConverter object.
REConverter.REPiece(String name, String target, String replace, int cflags, boolean oneOnly)
          Construct an REConverter object.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

REConverter.REPiece

public REConverter.REPiece(String name,
                           String target,
                           String replace,
                           int cflags,
                           boolean oneOnly)
Construct an REConverter object.

Parameters:
name - Descriptive name for diagnostic purposes.
target - Regular expression to match.
replace - Regular expression to replace.
cflags - Flags to pass to Pattern.compile.
oneOnly - Flag specifying to replace the first occurrence or all occurrences.

REConverter.REPiece

public REConverter.REPiece(String name,
                           String target,
                           String replace,
                           boolean oneOnly)
Construct an REConverter object.

Parameters:
name - Descriptive name for diagnostic purposes.
target - Regular expression to match.
replace - Regular expression to replace.
oneOnly - Flag specifying to replace the first occurrence or all occurrences.

REConverter.REPiece

public REConverter.REPiece(String name,
                           String target,
                           String replace,
                           int cflags)
Construct an REConverter object.

Parameters:
name - Descriptive name for diagnostic purposes.
target - Regular expression to match.
replace - Regular expression to replace.
cflags - Flags to pass to Pattern.compile.

REConverter.REPiece

public REConverter.REPiece(String name,
                           String target,
                           String replace)
Construct an REConverter object.

Parameters:
name - Descriptive name for diagnostic purposes.
target - Regular expression to match.
replace - Regular expression to replace.
Method Detail

toString

public String toString()
Overrides:
toString in class Object


CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads