Class PatternReplacementMap


  • public final class PatternReplacementMap
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMapping​(java.util.regex.Pattern pattern, java.lang.String replacement)  
      java.lang.String attemptReplace​(java.lang.String testString)  
      java.util.Iterator patterns()  
      void removeMapping​(java.util.regex.Pattern pattern)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatternReplacementMap

        public PatternReplacementMap()
    • Method Detail

      • addMapping

        public void addMapping​(java.util.regex.Pattern pattern,
                               java.lang.String replacement)
      • removeMapping

        public void removeMapping​(java.util.regex.Pattern pattern)
      • patterns

        public java.util.Iterator patterns()
      • size

        public int size()
      • attemptReplace

        public java.lang.String attemptReplace​(java.lang.String testString)
        Returns:
        null if there was no match, designated replacement otherwise.