Class Parser


  • public final class Parser
    extends java.lang.Object
    Avoid using regex !!!
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Parser.RegexException  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> compatParseMap​(java.lang.String input)  
      static boolean isMatch​(java.lang.String pattern, java.lang.String input)  
      static boolean isMatch​(java.util.regex.Pattern pattern, java.lang.String input)  
      static java.lang.String matchGroup​(java.lang.String pattern, java.lang.String input, int group)  
      static java.lang.String matchGroup​(java.util.regex.Pattern pat, java.lang.String input, int group)  
      static java.lang.String matchGroup1​(java.lang.String pattern, java.lang.String input)  
      static java.lang.String matchGroup1​(java.util.regex.Pattern pattern, java.lang.String input)  
      static java.lang.String matchGroup1MultiplePatterns​(java.util.regex.Pattern[] patterns, java.lang.String input)  
      static java.util.regex.Matcher matchMultiplePatterns​(java.util.regex.Pattern[] patterns, java.lang.String input)  
      • Methods inherited from class java.lang.Object

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

      • matchGroup1MultiplePatterns

        public static java.lang.String matchGroup1MultiplePatterns​(java.util.regex.Pattern[] patterns,
                                                                   java.lang.String input)
                                                            throws Parser.RegexException
        Throws:
        Parser.RegexException
      • isMatch

        public static boolean isMatch​(java.lang.String pattern,
                                      java.lang.String input)
      • isMatch

        public static boolean isMatch​(@Nonnull
                                      java.util.regex.Pattern pattern,
                                      java.lang.String input)
      • compatParseMap

        @Nonnull
        public static java.util.Map<java.lang.String,​java.lang.String> compatParseMap​(@Nonnull
                                                                                            java.lang.String input)