Interface Matcher
-
public interface Matcher
-
-
Field Summary
Fields Modifier and Type Field Description static Matcher
NON_MATCHING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
depth()
Matcher depth.String
getMatchedPath()
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
matchesAllChildren()
Returns true if matcher for all immediate child node would also be a matching matcher.Matcher
next(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(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
-
-