public interface Matcher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Matcher
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Matcher depth.
    Relative node path from the bundling root if there was a match
    boolean
    Returns true if there was a match wrt current child node path
    boolean
    Returns true if matcher for all immediate child node would also be a matching matcher.
    next(String name)
    Returns a matcher for given child node name based on current state
  • Field Details

    • NON_MATCHING

      static final Matcher NON_MATCHING
  • Method Details

    • next

      Matcher next(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

      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