Uses of Class
io.github.projectunified.craftcommand.processor.model.CommandModel
Packages that use CommandModel
Package
Description
Base annotation processor for CraftCommand.
Bukkit-specific annotation processor for CraftCommand.
Processor model classes that represent command metadata at compile time.
Paper-specific annotation processor for CraftCommand.
Argument parsing utilities for the annotation processor.
Standalone-specific annotation processor for CraftCommand.
-
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) static CommandModelResolverLookup.findModelForClass(CommandModel current, TypeElement targetClass) Walk the command tree to find theCommandModelwhose element equalstargetClass.Methods in io.github.projectunified.craftcommand.processor with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidBaseCommandProcessor.addConstructorStatements(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) protected voidBaseCommandProcessor.addPlatformFields(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected com.palantir.javapoet.CodeBlockBaseCommandProcessor.buildAliasesExpression(CommandModel model) protected voidBaseCommandProcessor.buildBooleanSuggestionHelper(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBaseCommandProcessor.buildCommandInfo(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBaseCommandProcessor.buildExecutionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model, String argsVar, String instanceVar, CommandModel rootModel, String returnStatement) protected voidBaseCommandProcessor.buildMethodExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar, int initialOffset, 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 com.palantir.javapoet.MethodSpecBaseCommandProcessor.buildResolverParamSuggestionHelper(CommandModel classModel, MethodModel method, ParameterModel rp, String helperName, CommandModel rootModel) protected voidBaseCommandProcessor.buildSenderCastHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBaseCommandProcessor.buildSubcommandSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar) voidBaseCommandProcessor.buildSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model, String argsVar, String instanceVar, CommandModel rootModel) protected voidBaseCommandProcessor.buildWrapperClass(CommandModel model, TypeElement typeElement) protected voidBaseCommandProcessor.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) BaseCommandProcessor.findLocalResolver(CommandModel classModel, ParameterModel p, CommandModel rootModel) static ExecutableElementResolverLookup.findLocalResolver(CommandModel classModel, ParameterModel p) Find a local@Resolvemethod for the given parameter.BaseCommandProcessor.findModelForClass(CommandModel current, TypeElement targetClass) static CommandModelResolverLookup.findModelForClass(CommandModel current, TypeElement targetClass) Walk the command tree to find theCommandModelwhose element equalstargetClass.protected abstract voidBaseCommandProcessor.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) voidBaseCommandProcessor.generateExecuteMethodBody(com.palantir.javapoet.MethodSpec.Builder executeSpec, CommandModel model, String returnStatement) protected voidBaseCommandProcessor.generateHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBaseCommandProcessor.generatePlatformHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) voidBaseCommandProcessor.generateResolverInvocation(com.palantir.javapoet.MethodSpec.Builder methodSpec, ExecutableElement localResolver, CommandModel classModel, CommandModel rootModel, com.palantir.javapoet.TypeName pTypeName, String varName, String senderVarName, List<String> resolverArgVarNames, boolean includeSender) protected voidBaseCommandProcessor.generateSubcommandClassExecutors(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, CommandModel rootModel) protected voidBaseCommandProcessor.generateSubcommandFieldsAndConstructors(CommandModel model, com.palantir.javapoet.TypeSpec.Builder typeSpec, com.palantir.javapoet.MethodSpec.Builder constructor, String parentFieldName) protected voidBaseCommandProcessor.generateUnknownSubcommandMessage(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model) BaseCommandProcessor.getInstanceVarExpression(CommandModel classModel, CommandModel rootModel) protected StringBaseCommandProcessor.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) BaseCommandProcessor.getResolverInstanceExpr(ExecutableElement resolver, CommandModel classModel, CommandModel rootModel) protected StringBaseCommandProcessor.getResolverParamSuggestionMethodName(CommandModel classModel, MethodModel method, String resolverName, int index) protected StringBaseCommandProcessor.getSubcommandFieldName(CommandModel child) protected static StringBaseCommandProcessor.getSubcommandNames(CommandModel model) protected static StringBaseCommandProcessor.getUsage(MethodModel method, CommandModel classModel) booleanBaseCommandProcessor.hasAnySuggestions(MethodModel method, CommandModel classModel) booleanBaseCommandProcessor.isParamDirectSuggestionAvailable(ParameterModel p, CommandModel classModel) booleanBaseCommandProcessor.isParamSuggestionAvailable(ParameterModel p, CommandModel classModel) voidBaseCommandProcessor.resolveParameter(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel p, String varName, String senderVarName, String argsVar, String argIdxVar, boolean hasDynamic, int paramIndex) voidBaseCommandProcessor.resolveResolverParameters(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, MethodModel resolverModel, String varName, String senderVarName, String argsVar, String argIdxVar, ParameterModel parentParam, boolean hasDynamic, int paramIndex) voidBaseCommandProcessor.resolveSender(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.bukkit
Methods in io.github.projectunified.craftcommand.processor.bukkit with parameters of type CommandModelModifier and TypeMethodDescriptionprotected voidBukkitCommandProcessor.addConstructorStatements(com.palantir.javapoet.MethodSpec.Builder constructorBuilder, CommandModel model) protected voidBukkitCommandProcessor.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 voidBukkitCommandProcessor.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) protected voidBukkitCommandProcessor.generatePlatformHelpers(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidBukkitCommandProcessor.generateUnknownSubcommandMessage(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel model) static booleanBukkitHelperMethods.hasParameterType(CommandModel model, String typeName) Check if any method in the command tree has a parameter of the given type name. -
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 voidPaperCommandProcessor.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidPaperCommandProcessor.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) voidPaperExecutionSource.generateExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String instanceExpr, CommandModel rootModel) protected voidPaperCommandProcessor.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 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.configureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) protected voidStandaloneCommandProcessor.generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement)