Package picocli

Class CommandLine.AbbreviationMatcher

java.lang.Object
picocli.CommandLine.AbbreviationMatcher
Enclosing class:
CommandLine

static class CommandLine.AbbreviationMatcher extends Object
  • Constructor Details

    • AbbreviationMatcher

      AbbreviationMatcher()
  • Method Details

    • splitIntoChunks

      public static List<String> splitIntoChunks(String command, boolean caseInsensitive)
    • makeCanonical

      private static String makeCanonical(String str)
    • match

      public static <T> CommandLine.AbbreviationMatcher.MatchResult<T> match(Map<String,T> map, String abbreviation, boolean caseInsensitive, CommandLine source)
      Returns the non-abbreviated name if found, otherwise returns the specified original abbreviation name.
    • matchKeyChunks

      private static boolean matchKeyChunks(List<String> abbreviatedKeyChunks, List<String> keyChunks, boolean caseInsensitive)
    • startsWith

      private static boolean startsWith(String str, String prefix, boolean caseInsensitive)
    • isNonAlphabetic

      private static boolean isNonAlphabetic(String str)
    • isAllCandidatesSame

      private static <T> boolean isAllCandidatesSame(Collection<T> candidates)