@Internal public class StaticCommandFlagsRegistry extends java.lang.Object implements CommandFlagsRegistry
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticCommandFlagsRegistry.Builder |
CommandFlagsRegistry.CommandFlag| Modifier and Type | Field and Description |
|---|---|
static java.util.EnumSet<CommandFlagsRegistry.CommandFlag> |
EMPTY_FLAGS |
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<CommandFlagsRegistry.CommandFlag> |
getFlags(CommandArguments commandArguments)
Get the flags for a given command.
|
static StaticCommandFlagsRegistry |
registry()
Get the singleton instance of the static command flags registry.
|
public static final java.util.EnumSet<CommandFlagsRegistry.CommandFlag> EMPTY_FLAGS
public static StaticCommandFlagsRegistry registry()
DO NOT USE THIS METHOD UNLESS YOU KNOW WHAT YOU ARE DOING.
public java.util.EnumSet<CommandFlagsRegistry.CommandFlag> getFlags(CommandArguments commandArguments)
For commands with subcommands (e.g., FUNCTION LOAD, ACL SETUSER), this method implements a hierarchical lookup strategy:
getFlags in interface CommandFlagsRegistrycommandArguments - the command arguments containing the command and its parametersCopyright © 2025. All rights reserved.