Interface Matcher


  • public interface Matcher
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int depth()
      Matcher depth.
      java.lang.String getMatchedPath()
      Relative node path from the bundling root if there was a match
      boolean isMatch()
      Returns true if there was a match wrt current child node path
      boolean matchesAllChildren()
      Returns true if matcher for all immediate child node would also be a matching matcher.
      Matcher next​(java.lang.String name)
      Returns a matcher for given child node name based on current state
    • Field Detail

      • NON_MATCHING

        static final Matcher NON_MATCHING
    • Method Detail

      • next

        Matcher next​(java.lang.String name)
        Returns a matcher for given child node name based on current state
        Parameters:
        name - child node name
        Returns:
        child matcher
      • isMatch

        boolean isMatch()
        Returns true if there was a match wrt current child node path
      • getMatchedPath

        java.lang.String getMatchedPath()
        Relative node path from the bundling root if there was a match
      • depth

        int depth()
        Matcher depth. For match done for 'x/y' depth is 2
      • matchesAllChildren

        boolean matchesAllChildren()
        Returns true if matcher for all immediate child node would also be a matching matcher. This would be the case if IncludeMatcher with '*' or '**' as pattern for child nodes