@NotNull public ArrangementEntryMatcher buildMatcher(@NotNull ArrangementMatchCondition condition) throws IllegalArgumentException { ArrangementEntryMatcher matcher = ArrangementUtil.buildMatcher(condition); if (matcher == null) { matcher = myDelegate.buildMatcher(condition); } return matcher; }
@Nonnull public ArrangementEntryMatcher buildMatcher(@Nonnull ArrangementMatchCondition condition) throws IllegalArgumentException { ArrangementEntryMatcher matcher = ArrangementUtil.buildMatcher(condition); if (matcher == null) { matcher = myDelegate.buildMatcher(condition); } return matcher; }
@NotNull @Override public ArrangementEntryMatcher buildMatcher(@NotNull ArrangementMatchCondition condition) throws IllegalArgumentException { throw new IllegalArgumentException("Can't build a matcher for condition " + condition); }
/** * This method is assumed to be used only by third-party developers. All built-in IJ conditions are supposed * to be implemented in terms of {@link StdArrangementTokens}. * * @param condition target condition * @return a matcher for the given condition * @throws IllegalArgumentException if current rearranger doesn't know how to build a matcher from the given condition */ @NotNull ArrangementEntryMatcher buildMatcher(@NotNull ArrangementMatchCondition condition) throws IllegalArgumentException;
/** * This method is assumed to be used only by third-party developers. All built-in IJ conditions are supposed * to be implemented in terms of {@link StdArrangementTokens}. * * @param condition target condition * @return a matcher for the given condition * @throws IllegalArgumentException if current rearranger doesn't know how to build a matcher from the given condition */ @Nonnull ArrangementEntryMatcher buildMatcher(@Nonnull ArrangementMatchCondition condition) throws IllegalArgumentException;