类 RegexParser


  • public class RegexParser
    extends java.lang.Object
    Generic classes for wildcard characters, decisions, and standard canonical transformations that can be supported by ConfigCenter.
    作者:
    tianhu E-mail:
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private static char QUESTION_MARK  
    • 构造器概要

      构造器 
      构造器 说明
      RegexParser()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static boolean containsWildcard​(java.lang.String regex)  
      private static java.lang.Boolean isAsciiAlphaLower​(char ch)  
      private static java.lang.Boolean isAsciiAlphanumeric​(char ch)  
      private static java.lang.Boolean isAsciiAlphaUpper​(char ch)  
      private static java.lang.Boolean isAsciiNumeric​(char ch)  
      static java.lang.String regexFormat​(java.lang.String regex)
      Replace input string non-regular special characters with standard regular expression strings; Replace '*' with '.* '?
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • QUESTION_MARK

        private static final char QUESTION_MARK
        另请参阅:
        常量字段值
    • 构造器详细资料

      • RegexParser

        public RegexParser()
    • 方法详细资料

      • regexFormat

        public static java.lang.String regexFormat​(java.lang.String regex)
        Replace input string non-regular special characters with standard regular expression strings; Replace '*' with '.* '? 'is replaced by '{n}', n is the number of consecutive ?; Other special characters that are not alphabetic or numeric are preceded by '\'.
        参数:
        regex - The expression to be formatted
        返回:
        format content.
      • containsWildcard

        public static boolean containsWildcard​(java.lang.String regex)
      • isAsciiAlphanumeric

        private static java.lang.Boolean isAsciiAlphanumeric​(char ch)
      • isAsciiNumeric

        private static java.lang.Boolean isAsciiNumeric​(char ch)
      • isAsciiAlphaUpper

        private static java.lang.Boolean isAsciiAlphaUpper​(char ch)
      • isAsciiAlphaLower

        private static java.lang.Boolean isAsciiAlphaLower​(char ch)