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> booleanisAllCandidatesSame(Collection<T> candidates) private static booleanisNonAlphabetic(String str) private static StringmakeCanonical(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 booleanmatchKeyChunks(List<String> abbreviatedKeyChunks, List<String> keyChunks, boolean caseInsensitive) splitIntoChunks(String command, boolean caseInsensitive) private static booleanstartsWith(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
-