Uses of Class
io.github.projectunified.craftcommand.processor.model.MethodModel
Packages that use MethodModel
Package
Description
Base annotation processor for CraftCommand.
SPI interfaces for extending the annotation processor.
Processor model classes that represent command metadata at compile time.
Paper-specific annotation processor for CraftCommand.
Argument parsing utilities for the annotation processor.
-
Uses of MethodModel in io.github.projectunified.craftcommand.processor
Methods in io.github.projectunified.craftcommand.processor with parameters of type MethodModelModifier and TypeMethodDescriptionbooleanBaseCommandProcessor.firstParamIsSender(ExecutableElement resolverMethod, MethodModel commandMethod) voidBaseCommandProcessor.generateResolverInvocation(com.palantir.javapoet.MethodSpec.Builder methodSpec, MethodModel resolverModel, CommandModel rootModel, com.palantir.javapoet.TypeName pTypeName, String varName, String senderVarName, List<String> resolverArgVarNames, boolean includeSender) Emits the call to a resolver method that produces a parameter value, delegating to the execution generator.intBaseCommandProcessor.getLocalResolverMaxWidth(MethodModel resolverModel, MethodModel commandMethod) intBaseCommandProcessor.getLocalResolverMinWidth(MethodModel resolverModel, MethodModel commandMethod) protected StringBaseCommandProcessor.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) The generated helper name for a parameter's suggestions.BaseCommandProcessor.getResolverInstanceExpr(MethodModel resolver, CommandModel rootModel) protected StringBaseCommandProcessor.getResolverParamSuggestionMethodName(CommandModel classModel, MethodModel method, String resolverName, int index) The generated helper name for a resolver parameter's suggestions.protected static StringBaseCommandProcessor.getUsage(MethodModel method) booleanBaseCommandProcessor.isSenderParam(com.palantir.javapoet.TypeName typeName, MethodModel method) -
Uses of MethodModel in io.github.projectunified.craftcommand.processor.extension
Methods in io.github.projectunified.craftcommand.processor.extension with parameters of type MethodModelModifier and TypeMethodDescriptionvoidMethodAnnotationHandler.handle(A annotation, MethodModel method, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec) Injects custom code (e.g. permission/cooldown checks) into the generated method execution code block. -
Uses of MethodModel in io.github.projectunified.craftcommand.processor.model
Methods in io.github.projectunified.craftcommand.processor.model that return MethodModelModifier and TypeMethodDescriptionCommandModel.getDefaultMethod()Gets the default execution method.ParameterModel.getResolverMethod()Gets the resolver method linked by a named@Resolve.ParameterModel.getSuggestMethod()Gets the suggest provider method linked by@Suggest.Methods in io.github.projectunified.craftcommand.processor.model that return types with arguments of type MethodModelModifier and TypeMethodDescriptionCommandModel.getSubcommands()Gets the method-level subcommands.Constructors in io.github.projectunified.craftcommand.processor.model with parameters of type MethodModelModifierConstructorDescriptionCommandModel(com.palantir.javapoet.ClassName className, String packageName, String commandName, List<String> aliases, String description, MethodModel defaultMethod, List<MethodModel> subcommands, List<CommandModel> nestedSubcommands, TypeElement element) ParameterModel(String name, TypeMirror type, boolean greedy, boolean optional, String defaultValue, String suggestProvider, String resolveName, MethodModel resolverMethod, MethodModel suggestMethod, VariableElement element) Constructs a ParameterModel. -
Uses of MethodModel in io.github.projectunified.craftcommand.processor.paper
Methods in io.github.projectunified.craftcommand.processor.paper with parameters of type MethodModelModifier and TypeMethodDescriptionvoidPaperExecutionSource.generateExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String instanceExpr, CommandModel rootModel) -
Uses of MethodModel in io.github.projectunified.craftcommand.processor.parser
Methods in io.github.projectunified.craftcommand.processor.parser that return MethodModelModifier and TypeMethodDescriptionstatic MethodModelCommandParser.parseResolverMethod(ExecutableElement method) Parses a resolver or suggestion provider method into a model.