Uses of Class
io.github.projectunified.craftcommand.processor.model.ParameterModel
Packages that use ParameterModel
Package
Description
Base annotation processor for CraftCommand.
SPI interfaces for extending the annotation processor.
Processor model classes that represent command metadata at compile time.
-
Uses of ParameterModel in io.github.projectunified.craftcommand.processor
Methods in io.github.projectunified.craftcommand.processor with parameters of type ParameterModelModifier and TypeMethodDescriptionstatic StringLocalNames.declaredName(ParameterModel parameter) The identifier a parameter was declared with in the command class.voidBaseCommandProcessor.runParameterAnnotationHandlers(ParameterModel param, String varName, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec) Runs the SPI parameter handlers of a resolved parameter, delegating to the execution generator. -
Uses of ParameterModel in io.github.projectunified.craftcommand.processor.extension
Methods in io.github.projectunified.craftcommand.processor.extension with parameters of type ParameterModelModifier and TypeMethodDescriptionvoidParameterAnnotationHandler.handle(A annotation, ParameterModel parameter, String varName, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec) Injects custom code (e.g. validation) into the generated method execution code block. -
Uses of ParameterModel in io.github.projectunified.craftcommand.processor.model
Methods in io.github.projectunified.craftcommand.processor.model that return ParameterModelModifier and TypeMethodDescriptionParameterModel.asOptional(String inheritedDefault) Creates an optional copy of this parameter using the default value of a parent parameter.MethodModel.getSenderParameter()Gets the sender parameter model.Creates a copy of this parameter using the Java identifier as its name.Methods in io.github.projectunified.craftcommand.processor.model that return types with arguments of type ParameterModelModifier and TypeMethodDescriptionMethodModel.getParameters()Gets the list of argument parameters.Constructors in io.github.projectunified.craftcommand.processor.model with parameters of type ParameterModelModifierConstructorDescriptionMethodModel(String methodName, String subcommandName, List<String> aliases, String description, ParameterModel senderParameter, List<ParameterModel> parameters, boolean isDefault, ExecutableElement element) -
Uses of ParameterModel in io.github.projectunified.craftcommand.validation.processor.extension
Methods in io.github.projectunified.craftcommand.validation.processor.extension with parameters of type ParameterModelModifier and TypeMethodDescriptionvoidMaxHandler.handle(Max annotation, ParameterModel parameter, String varName, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec) voidMinHandler.handle(Min annotation, ParameterModel parameter, String varName, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec) voidValidateWithHandler.handle(ValidateWith annotation, ParameterModel parameter, String varName, String instanceExpr, String senderVar, com.palantir.javapoet.MethodSpec.Builder methodSpec)