类 JdkRegexpMatcher

java.lang.Object
com.sh.json.regexp.JdkRegexpMatcher
所有已实现的接口:
RegexpMatcher

public class JdkRegexpMatcher extends Object implements RegexpMatcher
JDK 1.4+ RegexpMatcher implementation.
  • 构造器详细资料

    • JdkRegexpMatcher

      public JdkRegexpMatcher(String pattern)
    • JdkRegexpMatcher

      public JdkRegexpMatcher(String pattern, boolean multiline)
  • 方法详细资料

    • getGroupIfMatches

      public String getGroupIfMatches(String str, int group)
      从接口复制的说明: RegexpMatcher
      Returns the specified group if the string matches the Pattern.
      The Pattern will be managed internally by the RegexpMatcher implementation.
      指定者:
      getGroupIfMatches 在接口中 RegexpMatcher
    • matches

      public boolean matches(String str)
      从接口复制的说明: RegexpMatcher
      Returns true is the string macthes the Pattern.
      The Pattern will be managed internally by the RegexpMatcher implementation.
      指定者:
      matches 在接口中 RegexpMatcher