Package picocli
Class CommandLine.AbbreviationMatcher
java.lang.Object
picocli.CommandLine.AbbreviationMatcher
- Enclosing class:
CommandLine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> boolean
isAllCandidatesSame
(Collection<T> candidates) private static boolean
isNonAlphabetic
(String str) private static String
makeCanonical
(String str) 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.private static boolean
matchKeyChunks
(List<String> abbreviatedKeyChunks, List<String> keyChunks, boolean caseInsensitive) splitIntoChunks
(String command, boolean caseInsensitive) private static boolean
startsWith
(String str, String prefix, boolean caseInsensitive)
-
Constructor Details
-
AbbreviationMatcher
AbbreviationMatcher()
-
-
Method Details
-
splitIntoChunks
-
makeCanonical
-
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
-
startsWith
-
isNonAlphabetic
-
isAllCandidatesSame
-