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 TypeMethodDescriptionprotected 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) BaseCommandProcessor.findLocalResolver(CommandModel classModel, ParameterModel p, CommandModel rootModel) static ExecutableElementResolverLookup.findLocalResolver(CommandModel classModel, ParameterModel p) Find a local@Resolvemethod for the given parameter.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 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 TypeMethodDescriptionMethodModel.getSenderParameter()Gets the sender parameter model.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)