Uses of Class
io.github.projectunified.craftcommand.processor.model.CommandModel
Packages that use CommandModel
Package
Description
-
Uses of CommandModel in io.github.projectunified.craftcommand.processor
Methods in io.github.projectunified.craftcommand.processor that return CommandModelModifier and TypeMethodDescriptionBaseCommandProcessor.findModelForClass(CommandModel current, TypeElement targetClass) Methods in io.github.projectunified.craftcommand.processor with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidBaseCommandProcessor.buildAdditionalHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Generates additional platform-independent helper methods (like suggestBoolean and sender casting helpers).protected com.palantir.javapoet.CodeBlockBaseCommandProcessor.buildAliasesExpression(CommandModel model) protected abstract voidBaseCommandProcessor.buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) Generates platform-specific main wrapper entry methods (e.g. onCommand or execute).protected voidBaseCommandProcessor.buildExecutionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model, String argsVar, String instanceVar, CommandModel rootModel, String returnStatement) protected voidBaseCommandProcessor.buildLocalResolverParameter(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, ParameterModel p, com.palantir.javapoet.TypeName pTypeName, String varName, ExecutableElement localResolver, CommandModel rootModel, String senderVarName, String argsVar, String argIdxVar, boolean hasDynamic, int i) protected voidBaseCommandProcessor.buildMethodExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String instanceVar, CommandModel rootModel, ExecutionSource source) protected voidBaseCommandProcessor.buildMethodExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar, String instanceVar, CommandModel rootModel) protected com.palantir.javapoet.MethodSpecBaseCommandProcessor.buildParameterSuggestionHelper(CommandModel classModel, MethodModel method, ParameterModel p, int index, CommandModel rootModel) protected voidBaseCommandProcessor.buildParameterSuggestions(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, CommandModel rootModel) protected voidBaseCommandProcessor.buildSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) protected voidBaseCommandProcessor.buildSubcommandSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar) protected voidBaseCommandProcessor.buildSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model, String argsVar, String instanceVar, CommandModel rootModel) protected voidBaseCommandProcessor.buildWrapperClass(CommandModel model, TypeElement typeElement) Generates the wrapper class for the command model using JavaPoet.protected voidBaseCommandProcessor.configureConstructor(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) Configures the constructor for platform-specific statements (e.g., registering command).BaseCommandProcessor.findLocalResolver(CommandModel classModel, ParameterModel p, CommandModel rootModel) BaseCommandProcessor.findModelForClass(CommandModel current, TypeElement targetClass) protected voidBaseCommandProcessor.generateExecuteMethodBody(com.palantir.javapoet.MethodSpec.Builder executeSpec, CommandModel model, String returnStatement) voidArrayExecutionSource.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) voidExecutionSource.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) Generates code for platform-specific execution setup or static checks (e.g. checking command length).protected voidBaseCommandProcessor.generateFieldsAndConstructorStatements(CommandModel model, com.palantir.javapoet.TypeSpec.Builder typeSpec, com.palantir.javapoet.MethodSpec.Builder constructor, String parentFieldName) voidArrayExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel p, String varName, String senderVarName, int paramIndex) voidExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel p, String varName, String senderVar, int paramIndex) Generates code to parse and resolve a specific command parameter.voidArrayExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) voidExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) Generates code to resolve and cast the command sender.protected voidBaseCommandProcessor.generateSubcommandClassExecutors(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, CommandModel rootModel) protected voidBaseCommandProcessor.generateUnknownSubcommandMessage(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model) Generates statements to handle cases where an unknown subcommand is typed.protected Set<com.palantir.javapoet.TypeName> BaseCommandProcessor.getDynamicResolverTypes(CommandModel model) Recursively retrieves all unique custom parameter types requiring dynamic/global resolvers across the entire command hierarchy (main class, nested subcommand classes, and methods).BaseCommandProcessor.getInstanceVarExpression(CommandModel classModel, CommandModel rootModel) protected StringBaseCommandProcessor.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) protected StringBaseCommandProcessor.getSubcommandFieldName(CommandModel child) protected static StringBaseCommandProcessor.getSubcommandNames(CommandModel model) Utility method to format a list of all subcommand names defined in a command model. -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.bukkit
Methods in io.github.projectunified.craftcommand.processor.bukkit with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidBukkitCommandProcessor.buildAdditionalHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBukkitCommandProcessor.buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) Generates Bukkit-specific wrapper entry methods.protected voidBukkitCommandProcessor.configureConstructor(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) protected voidBukkitCommandProcessor.generateUnknownSubcommandMessage(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model) -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.model
Methods in io.github.projectunified.craftcommand.processor.model that return types with arguments of type CommandModelModifier and TypeMethodDescriptionCommandModel.getNestedSubcommands()Gets the nested class-level subcommands. -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.paper
Methods in io.github.projectunified.craftcommand.processor.paper with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidPaperBasicCommandProcessor.buildAdditionalHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidPaperBasicCommandProcessor.buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) protected voidPaperCommandProcessor.buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) voidPaperExecutionSource.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) voidPaperExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel pm, String varName, String senderVarName, int paramIndex) voidPaperExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.parser
Methods in io.github.projectunified.craftcommand.processor.parser that return CommandModelModifier and TypeMethodDescriptionstatic CommandModelCommandParser.parse(TypeElement typeElement, ProcessingEnvironment env) Parses the given TypeElement if annotated with@Command. -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.standalone
Methods in io.github.projectunified.craftcommand.processor.standalone with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidStandaloneCommandProcessor.buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) Generates all standalone-specific entry methods for the wrapper class.