Class AnyMatcher

java.lang.Object
org.apache.ivy.plugins.matcher.AnyMatcher
All Implemented Interfaces:
Matcher

public class AnyMatcher extends Object implements Matcher
A matcher that will match everything.
  • Field Details

    • INSTANCE

      public static final Matcher INSTANCE
  • Constructor Details

    • AnyMatcher

      public AnyMatcher()
  • Method Details

    • matches

      public boolean matches(String input)
      Description copied from interface: Matcher
      Check whether a given string is matched by this matcher.
      Specified by:
      matches in interface Matcher
      Parameters:
      input - the string to be matched. Cannot be null.
      Returns:
      true if the input string is matched, false otherwise.
    • isExact

      public boolean isExact()
      Description copied from interface: Matcher
      Return if the matcher will match *only* if the expression equals the input. WARN: This is used only as a performance trick, to avoid scanning for things when you already know exactly what you want. In the install task where it used it avoid scanning the repository to list all modules to find that only one matches, and that it has the name requested.
      Specified by:
      isExact in interface Matcher
      Returns:
      true if the matcher only matches when the expression is equals to the input, false otherwise.