Uses of Class
io.github.projectunified.craftcommand.processor.model.MethodModel
Packages that use MethodModel
Package
Description
-
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 instanceVar, CommandModel rootModel, ExecutionSource source) protected voidBaseCommandProcessor.buildMethodExecution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar, String instanceVar, CommandModel rootModel) protected com.palantir.javapoet.MethodSpecBaseCommandProcessor.buildParameterSuggestionHelper(CommandModel classModel, MethodModel method, ParameterModel p, int index, CommandModel rootModel) protected voidBaseCommandProcessor.buildSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) protected voidBaseCommandProcessor.buildSubcommandSuggestionRouting(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, String argsVar) voidArrayExecutionSource.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) voidExecutionSource.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) Generates code for platform-specific execution setup or static checks (e.g. checking command length).voidArrayExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel p, String varName, String senderVarName, int paramIndex) voidExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel p, String varName, String senderVar, int paramIndex) Generates code to parse and resolve a specific command parameter.voidArrayExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) voidExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName) Generates code to resolve and cast the command sender.protected StringBaseCommandProcessor.getParameterSuggestionMethodName(CommandModel classModel, MethodModel method, int index) protected static StringBaseCommandProcessor.getUsage(MethodModel method) Utility method to build the command usage syntax string for a command 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.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) Constructs a CommandModel. -
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.generateExecutionSetup(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel) voidPaperExecutionSource.generateParameterResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, ParameterModel pm, String varName, String senderVarName, int paramIndex) voidPaperExecutionSource.generateSenderResolution(com.palantir.javapoet.MethodSpec.Builder methodSpec, CommandModel classModel, MethodModel method, CommandModel rootModel, String senderVarName, ParameterModel senderParam, com.palantir.javapoet.TypeName senderParamTypeName)