org.schmant.support.text
Class PatternAndStrategy

java.lang.Object
  extended by org.schmant.support.text.PatternAndStrategy

public class PatternAndStrategy
extends Object

Value object that keeps a regexp Pattern together with a ReplacementTextStrategy.

Instances of this class are immutable.

Since:
0.8
Author:
Karl Gustafsson

Constructor Summary
PatternAndStrategy(Pattern p, ReplacementTextStrategy strat)
           
 
Method Summary
 Pattern getPattern()
           
 ReplacementTextStrategy getStrategy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternAndStrategy

public PatternAndStrategy(Pattern p,
                          ReplacementTextStrategy strat)
Method Detail

getPattern

public Pattern getPattern()

getStrategy

public ReplacementTextStrategy getStrategy()