@Override public boolean matches() { for (RestrictionPattern pattern : patterns) { if (!pattern.matches()) { return false; } } return true; } }
@Override public boolean matches() { for (RestrictionPattern pattern : patterns) { if (!pattern.matches()) { return false; } } return true; } }
boolean matches() { return restriction == RestrictionPattern.EMPTY || restriction.matches(); }
boolean matches() { return restriction == RestrictionPattern.EMPTY || restriction.matches(); }
boolean matches() { return restriction == RestrictionPattern.EMPTY || restriction.matches(); }
@Override public boolean matches(@Nonnull String path) { for (RestrictionPattern pattern : patterns) { if (!pattern.matches(path)) { return false; } } return true; }
@Override public boolean matches(@NotNull String path) { for (RestrictionPattern pattern : patterns) { if (!pattern.matches(path)) { return false; } } return true; }
boolean matches(@NotNull String treePath) { return restriction == RestrictionPattern.EMPTY || restriction.matches(treePath); }
boolean matches(@Nonnull String treePath) { return restriction == RestrictionPattern.EMPTY || restriction.matches(treePath); }
boolean matches(@NotNull String treePath) { return restriction == RestrictionPattern.EMPTY || restriction.matches(treePath); }
@Override public boolean matches(@NotNull Tree tree, @Nullable PropertyState property) { for (RestrictionPattern pattern : patterns) { if (!pattern.matches(tree, property)) { return false; } } return true; }
@Override public boolean matches(@Nonnull Tree tree, @Nullable PropertyState property) { for (RestrictionPattern pattern : patterns) { if (!pattern.matches(tree, property)) { return false; } } return true; }
boolean matches(@NotNull Tree tree, @Nullable PropertyState property) { return restriction == RestrictionPattern.EMPTY || restriction.matches(tree, property); }
boolean matches(@NotNull Tree tree, @Nullable PropertyState property) { return restriction == RestrictionPattern.EMPTY || restriction.matches(tree, property); }
boolean matches(@Nonnull Tree tree, @Nullable PropertyState property) { return restriction == RestrictionPattern.EMPTY || restriction.matches(tree, property); }
boolean matchesParent(@NotNull String parentPath) { return Text.isDescendantOrEqual(path, parentPath) && (restriction == RestrictionPattern.EMPTY || restriction.matches(parentPath)); }
boolean matchesParent(@NotNull String parentPath) { return Text.isDescendantOrEqual(path, parentPath) && (restriction == RestrictionPattern.EMPTY || restriction.matches(parentPath)); }
boolean matchesParent(@Nonnull String parentPath) { return Text.isDescendantOrEqual(path, parentPath) && (restriction == RestrictionPattern.EMPTY || restriction.matches(parentPath)); }
private static void assertMatch(RestrictionPattern pattern, String testPath, boolean expectedResult) { assertEquals("Pattern : " + pattern + "; TestPath : " + testPath, expectedResult, pattern.matches(testPath)); } }