Interface Matcher
public interface Matcher
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Matcher depth.Relative node path from the bundling root if there was a matchboolean
isMatch()
Returns true if there was a match wrt current child node pathboolean
Returns true if matcher for all immediate child node would also be a matching matcher.Returns a matcher for given child node name based on current state
-
Field Details
-
NON_MATCHING
-
-
Method Details
-
next
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
-