Class SimilarNamedWays.RegExprRule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.regex.Pattern regExpr  
      private java.lang.String replacement  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegExprRule​(java.lang.String expression, java.lang.String replacement)
      Create a new rule to replace by regular expression
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String normalize​(java.lang.String name)
      Normalize the string by replacing parts.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • regExpr

        private final java.util.regex.Pattern regExpr
      • replacement

        private final java.lang.String replacement
    • Constructor Detail

      • RegExprRule

        public RegExprRule​(java.lang.String expression,
                           java.lang.String replacement)
        Create a new rule to replace by regular expression
        Parameters:
        expression - The regular expression
        replacement - The replacement