- canRead() - Method in class net.lenni0451.commandlib.utils.StringReader
-
- canRead(int) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Get if the reader can read the given amount of characters.
- CASE_INSENSITIVE - Static variable in class net.lenni0451.commandlib.utils.comparator.ArgumentComparator
-
A case-insensitive comparator.
- CASE_SENSITIVE - Static variable in class net.lenni0451.commandlib.utils.comparator.ArgumentComparator
-
A case-sensitive comparator.
- cast(Object) - Static method in class net.lenni0451.commandlib.utils.Util
-
Cast anything to anything else.
- ChainExecutionException - Exception in net.lenni0451.commandlib.exceptions
-
An exception which is thrown when the execution of a command chain fails.
- ChainExecutionException(ArgumentParseException, int, int, String, String) - Constructor for exception net.lenni0451.commandlib.exceptions.ChainExecutionException
-
- ChainExecutionException(RuntimeException, int, int, String, String) - Constructor for exception net.lenni0451.commandlib.exceptions.ChainExecutionException
-
- ChainExecutionException(HandledException, int, int, String, String) - Constructor for exception net.lenni0451.commandlib.exceptions.ChainExecutionException
-
- ChainExecutionException(ChainExecutionException.Reason, int, int, String, String) - Constructor for exception net.lenni0451.commandlib.exceptions.ChainExecutionException
-
- ChainExecutionException.Reason - Enum in net.lenni0451.commandlib.exceptions
-
The reason why the execution failed.
- children() - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
- CloseChainsComparator<E> - Class in net.lenni0451.commandlib.utils.comparator
-
Compare failed argument chains by their reason.
- CloseChainsComparator() - Constructor for class net.lenni0451.commandlib.utils.comparator.CloseChainsComparator
-
- CommandExceptionHandler<E> - Interface in net.lenni0451.commandlib.utils.interfaces
-
A functional interface to allow handling exceptions thrown when parsing arguments.
- CommandExecutionException - Exception in net.lenni0451.commandlib.exceptions
-
An exception which is thrown when an error occurs during the execution of a command.
- CommandExecutionException(String) - Constructor for exception net.lenni0451.commandlib.exceptions.CommandExecutionException
-
- CommandExecutionException(String, Map<ArgumentChain<?>, ChainExecutionException>) - Constructor for exception net.lenni0451.commandlib.exceptions.CommandExecutionException
-
- CommandExecutor<E> - Class in net.lenni0451.commandlib
-
The handler for all registered commands.
- CommandExecutor() - Constructor for class net.lenni0451.commandlib.CommandExecutor
-
- CommandExecutor(ArgumentComparator) - Constructor for class net.lenni0451.commandlib.CommandExecutor
-
- compare(String, String) - Method in class net.lenni0451.commandlib.utils.comparator.ArgumentComparator
-
Compare if two strings are equal.
- compare(Map.Entry<ArgumentChain<E>, ChainExecutionException>, Map.Entry<ArgumentChain<E>, ChainExecutionException>) - Method in class net.lenni0451.commandlib.utils.comparator.CloseChainsComparator
-
- compare(Completion, Completion) - Method in class net.lenni0451.commandlib.utils.comparator.CompletionsComparator
-
- compareTo(String, String) - Method in class net.lenni0451.commandlib.utils.comparator.ArgumentComparator
-
Compare two strings.
- complete(Set<String>, String[], ExecutionContext<E>) - Method in interface net.lenni0451.commandlib.nodes.StringArrayNode.Completor
-
- Completion - Class in net.lenni0451.commandlib
-
A completion for the user input suggesting what the user might want to type.
- Completion(int, String) - Constructor for class net.lenni0451.commandlib.Completion
-
- CompletionContext - Class in net.lenni0451.commandlib.contexts
-
A context which is used to store information about the completion process.
- CompletionContext() - Constructor for class net.lenni0451.commandlib.contexts.CompletionContext
-
- completions(E, String) - Method in class net.lenni0451.commandlib.CommandExecutor
-
Get completions for the given command input.
- completions(E, StringReader) - Method in class net.lenni0451.commandlib.CommandExecutor
-
Get completions for the given command input.
- completions(CompletionContext, ExecutionContext<E>, StringReader) - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
Provide the completions of this argument.
- CompletionsComparator - Class in net.lenni0451.commandlib.utils.comparator
-
A comparator to sort command completions.
- CompletionsComparator(ArgumentComparator) - Constructor for class net.lenni0451.commandlib.utils.comparator.CompletionsComparator
-
- completionsProvider() - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
- CompletionsProvider<E> - Interface in net.lenni0451.commandlib.utils.interfaces
-
A functional interface to allow supplying custom completions.
- create() - Static method in class net.lenni0451.commandlib.builder.LineBuilder
-
Create a new line builder.
- read() - Method in class net.lenni0451.commandlib.utils.StringReader
-
- read(int) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read the given amount of characters and move the cursor by the given amount of characters.
- readDecimalNumber() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read a word and ensure that it is a valid decimal number.
- readIntegerNumber() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read a word and ensure that it is a valid integer number.
- readRemaining() - Method in class net.lenni0451.commandlib.utils.StringReader
-
- readString() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read a string starting with a single or double quote.
- readUntil(char) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read until the given character is found or the end of the string is reached.
- readUntil(char, boolean) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read until the given character is found or the end of the string is reached.
- readWord() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read a word until the next whitespace character is found.
- readWordOrString() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Read a word or a string if the next character is a single or double quote.
- reason(String) - Static method in exception net.lenni0451.commandlib.exceptions.ArgumentParseException
-
Create a new exception with the given reason.
- register(ArgumentNode<E, ?>) - Method in class net.lenni0451.commandlib.CommandExecutor
-
Register an argument node.
- register(StringNode<E>) - Method in class net.lenni0451.commandlib.CommandExecutor
-
Register a string argument node.
- remaining() - Method in class net.lenni0451.commandlib.utils.StringReader
-
- require(char...) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Require the next character to be in the given array.
- requirement() - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
- requires(ArgumentRequirement<E>) - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
Set the requirement of this argument node.
- setCompletionsTrim(int) - Method in class net.lenni0451.commandlib.contexts.CompletionContext
-
Set the amount of characters that should be trimmed from the completions.
- setCursor(int) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Set the cursor position.
- skip() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Move the cursor by one character.
- skip(int) - Method in class net.lenni0451.commandlib.utils.StringReader
-
Move the cursor by the given amount of characters.
- skipRequiredWhitespace() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Skip all whitespace characters and ensure that at least one character was skipped.
- skipRequiredWhitespaceOrEOL() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Skip all whitespace characters and ensure that at least one character was skipped.
- skipWhitespace() - Method in class net.lenni0451.commandlib.utils.StringReader
-
Skip all whitespace characters.
- sortMap(Map<K, V>, Comparator<Map.Entry<K, V>>) - Static method in class net.lenni0451.commandlib.utils.Util
-
Sort a map by a comparator.
- startsWith(String, String) - Method in class net.lenni0451.commandlib.utils.comparator.ArgumentComparator
-
Check if string a starts with string b.
- string(String) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string argument node.
- string(String, String) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string argument node.
- string() - Static method in class net.lenni0451.commandlib.types.StringType
-
Create a new string type that parses a single word or a string surrounded by single or double quotes.
- stringArray(String, StringArrayNode.Executor<E>) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string array argument node.
- stringArray(String, StringArrayNode.Executor<E>, StringArrayNode.Completor<E>) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string array argument node.
- stringArray(String, String, StringArrayNode.Executor<E>) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string array argument node.
- stringArray(String, String, StringArrayNode.Executor<E>, StringArrayNode.Completor<E>) - Method in interface net.lenni0451.commandlib.builder.ArgumentBuilder
-
Create a new string array argument node.
- StringArrayNode<E> - Class in net.lenni0451.commandlib.nodes
-
The string array node can be used to handle an argument the traditional way by only receiving a string array.
- StringArrayNode(String, StringArrayNode.Completor<E>) - Constructor for class net.lenni0451.commandlib.nodes.StringArrayNode
-
- StringArrayNode(String, String, StringArrayNode.Completor<E>) - Constructor for class net.lenni0451.commandlib.nodes.StringArrayNode
-
- StringArrayNode.Completor<E> - Interface in net.lenni0451.commandlib.nodes
-
The completor interface for the string array node.
- StringArrayNode.Executor<E> - Interface in net.lenni0451.commandlib.nodes
-
The executor interface for the string array node.
- StringNode<E> - Class in net.lenni0451.commandlib.nodes
-
The string node only matches the given string.
- StringNode(String) - Constructor for class net.lenni0451.commandlib.nodes.StringNode
-
- StringNode(String, String) - Constructor for class net.lenni0451.commandlib.nodes.StringNode
-
- StringReader - Class in net.lenni0451.commandlib.utils
-
A simple string reader used for parsing arguments.
- StringReader(String) - Constructor for class net.lenni0451.commandlib.utils.StringReader
-
- StringType<E> - Class in net.lenni0451.commandlib.types
-
The string type parses a string from the string reader.
- suggestions(CompletionsProvider<E>) - Method in class net.lenni0451.commandlib.builder.LineBuilder
-
Add a completions provider to the last added argument.
- suggestions(CompletionsProvider<E>) - Method in class net.lenni0451.commandlib.nodes.ArgumentNode
-
Set the custom completions provider of this argument node.