Uses of Class
io.github.projectunified.craftcommand.processor.model.CommandModel
Packages that use CommandModel
Package
Description
Bukkit-specific annotation processor for CraftCommand.
Code generation half of the annotation processor.
Processor model classes that represent command metadata at compile time.
Paper-specific annotation processor for CraftCommand.
Annotation-reading half of the annotation processor.
Standalone-specific annotation processor for CraftCommand.
-
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 voidBukkitCommandGenerator.addConstructorStatements(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) protected voidBukkitCommandGenerator.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) static voidBukkitHelperMethods.generate(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Generate all needed helpers into the given TypeSpec, based on which types the command uses.protected voidBukkitCommandGenerator.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBukkitCommandGenerator.generatePlatformHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.generator
Methods in io.github.projectunified.craftcommand.processor.generator with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidBaseCommandGenerator.addConstructorStatements(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) Adds platform-specific constructor statements before the instance and manager are assigned.protected static booleanBaseCommandGenerator.anyMethod(CommandModel model, Predicate<ExecutableElement> predicate) Traverses the methods of a command tree.protected com.palantir.javapoet.CodeBlockBaseCommandGenerator.buildAliasesExpression(CommandModel model) protected voidBaseCommandGenerator.buildCommandInfo(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBaseCommandGenerator.buildSenderCastHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Generates the sender cast helpers needed by a command class.protected voidBaseCommandGenerator.buildSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model, String argsVar, CommandModel rootModel) Generates tab completion routing for a command class, delegating to the suggestion generator.protected voidBaseCommandGenerator.buildTypeSuggestionHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Generates the suggestion helpers of type-driven suggestions (boolean / platform built-ins).protected voidBaseCommandGenerator.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Configures the generated class declaration (superclass, interfaces).voidBaseCommandGenerator.generate(CommandModel model) voidCommandGenerator.generate(CommandModel model) Writes the wrapper class of the given command model.protected abstract voidBaseCommandGenerator.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Adds the platform entry points (execute,tabComplete,getCommandNode, ...).voidBaseCommandGenerator.generateExecuteMethodBody(com.palantir.javapoet.MethodSpec.Builder executeSpec, CommandModel model, String returnStatement) protected voidBaseCommandGenerator.generateHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Generates the execution and suggestion routing plus the sender helpers of the whole command tree.protected voidBaseCommandGenerator.generatePlatformHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Adds platform helper methods referenced from parameter types or entry points.voidBaseCommandGenerator.generateResolverInvocation(com.palantir.javapoet.MethodSpec.Builder methodSpec, MethodModel resolverModel, CommandModel rootModel, com.palantir.javapoet.TypeName pTypeName, String varName, com.palantir.javapoet.CodeBlock senderExpr, List<String> resolverArgVarNames, boolean includeSender) Emits the call to a resolver method that produces a parameter value.voidBaseCommandGenerator.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder spec, CommandModel rootModel, ParameterModel senderParam, com.palantir.javapoet.TypeName senderType, String senderVar) Emits the resolution of the command sender: a named@Resolvemethod, a registered sender resolver, or a platform cast.protected voidBaseCommandGenerator.generateSubcommandClassExecutors(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, CommandModel rootModel) protected voidBaseCommandGenerator.generateSubcommandFieldsAndConstructors(CommandModel model, com.palantir.javapoet.TypeSpec.Builder typeSpec, com.palantir.javapoet.MethodSpec.Builder constructor, String parentFieldName) protected voidBaseCommandGenerator.generateUnknownSubcommandMessage(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model) Emits the message shown when a command without arguments has no default action.BaseCommandGenerator.getInstanceVarExpression(CommandModel classModel, CommandModel rootModel) protected StringBaseCommandGenerator.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) BaseCommandGenerator.getResolverInstanceExpr(MethodModel resolver, CommandModel rootModel) protected StringBaseCommandGenerator.getResolverParamSuggestionMethodName(CommandModel classModel, ParameterModel parameter) protected StringBaseCommandGenerator.getSubcommandFieldName(CommandModel child) protected static StringBaseCommandGenerator.getSubcommandNames(CommandModel model) -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.model
Methods in io.github.projectunified.craftcommand.processor.model that return CommandModelModifier and TypeMethodDescriptionCommandModel.findModel(TypeElement targetClass) Finds the model of a class within this command tree.Methods in io.github.projectunified.craftcommand.processor.model that return types with arguments of type CommandModelModifier and TypeMethodDescriptionCommandModel.getNestedIndex()Gets this model and every nested subcommand model indexed by their class element.CommandModel.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 voidPaperCommandGenerator.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidPaperCommandGenerator.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) voidPaperExecutionSource.generateExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String instanceExpr, CommandModel rootModel) Emits the execution body for one method.protected voidPaperCommandGenerator.generateHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) -
Uses of CommandModel in io.github.projectunified.craftcommand.processor.parser
Methods in io.github.projectunified.craftcommand.processor.parser that return CommandModelModifier and TypeMethodDescriptionCommandParserFactory.parse(TypeElement typeElement) Parses a class 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 voidStandaloneCommandGenerator.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidStandaloneCommandGenerator.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model)