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.
-
Uses of MethodModel in io.github.projectunified.craftcommand.processor
Methods in io.github.projectunified.craftcommand.processor with parameters of type MethodModelModifier and TypeMethodDescriptionprotected 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 com.palantir.javapoet.MethodSpecBaseCommandProcessor.buildResolverParamSuggestionHelper(CommandModel classModel, MethodModel method, ParameterModel rp, String helperName, CommandModel rootModel) protected voidBaseCommandProcessor.buildSubcommandSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar) booleanBaseCommandProcessor.firstParamIsSender(ExecutableElement resolverMethod, MethodModel commandMethod) intBaseCommandProcessor.getLocalResolverMaxWidth(ExecutableElement resolverMethod, MethodModel commandMethod) intBaseCommandProcessor.getLocalResolverMinWidth(ExecutableElement resolverMethod, MethodModel commandMethod) protected StringBaseCommandProcessor.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) protected StringBaseCommandProcessor.getResolverParamSuggestionMethodName(CommandModel classModel, MethodModel method, String resolverName, int index) protected static StringBaseCommandProcessor.getUsage(MethodModel method, CommandModel classModel) booleanBaseCommandProcessor.hasAnySuggestions(MethodModel method, CommandModel classModel) booleanBaseCommandProcessor.isSenderParam(com.palantir.javapoet.TypeName typeName, MethodModel method) 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 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.CommandModel.getResolverMethod(String name) Gets a resolver method by name.Methods in io.github.projectunified.craftcommand.processor.model that return types with arguments of type MethodModelModifier and TypeMethodDescriptionCommandModel.getResolverMethods()Gets the resolver method models (from @Resolve annotations).CommandModel.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, Map<String, MethodModel> resolverMethods) Constructor parameters in io.github.projectunified.craftcommand.processor.model with type arguments 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, Map<String, MethodModel> resolverMethods) -
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)