@Test public void doubleWildcardBacktrackingTest() { final PathMatcher pm = new PathMatcher( new PathMatcher.LiteralNameMatch("1"), new PathMatcher.DoubleWildcardMatch(), new PathMatcher.LiteralNameMatch("2"), new PathMatcher.DoubleWildcardMatch(), new PathMatcher.LiteralNameMatch("3")); assertTrue(pm.match(Arrays.asList("1", "a", "b", "2", "c", "d", "3"))); assertTrue(pm.match(Arrays.asList("1", "2", "3"))); assertFalse(pm.match(Arrays.asList("1", "a", "b", "2", "c", "d"))); assertTrue(pm.match(Arrays.asList("1", "2", "2", "2", "2", "2", "3"))); }
public boolean match(List<String> grp_path) { return match_cache_.getUnchecked(grp_path).isMatched(); }
PathMatcher { public boolean match(List<String> grp_path) { return match_cache_.getUnchecked(grp_path).isMatched(); } }
PathMatcher { public boolean match(List<String> grp_path) { return match_cache_.getUnchecked(grp_path).isMatched(); } PathMatcher(List<IdentifierMatch> matchers);  PathMatcher(IdentifierMatch... matchers); }
PathMatcher { public boolean match(List<String> grp_path) { return match_cache_.getUnchecked(grp_path).isMatched(); } PathMatcher(List<IdentifierMatch> matchers);  PathMatcher(IdentifierMatch... matchers); boolean match(List<String> grp_path); boolean isLiteral(); Optional<SimpleGroupPath> asLiteral(); Optional<VisitorType> visitNonLiteral(VisitorType v); StringBuilder configString(); @Override String toString(); static PathMatcher valueOf(String str); static PathMatcher valueOf(Reader reader); @Override int hashCode(); @Override boolean equals(Object obj); }
PathMatcher { public boolean match(List<String> grp_path) { return match_cache_.getUnchecked(grp_path).isMatched(); } PathMatcher(List<IdentifierMatch> matchers);  PathMatcher(IdentifierMatch... matchers); boolean match(List<String> grp_path); boolean isLiteral(); Optional<SimpleGroupPath> asLiteral(); Optional<VisitorType> visitNonLiteral(VisitorType v); StringBuilder configString(); @Override String toString(); static PathMatcher valueOf(String str); static PathMatcher valueOf(Reader reader); @Override int hashCode(); @Override boolean equals(Object obj);  }