Class StandaloneCommandGenerator
java.lang.Object
io.github.projectunified.craftcommand.processor.generator.BaseCommandGenerator
io.github.projectunified.craftcommand.processor.standalone.StandaloneCommandGenerator
- All Implemented Interfaces:
CommandGenerator
Generates
*$StandaloneCommand wrappers.-
Field Summary
Fields inherited from class io.github.projectunified.craftcommand.processor.generator.BaseCommandGenerator
DEFAULT_PERMISSION_MESSAGE, PERMISSION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureClass(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Configures the generated class declaration (superclass, interfaces).protected voidgenerateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Adds the platform entry points (execute,tabComplete,getCommandNode, ...).protected com.palantir.javapoet.TypeNameTheCommandManagertype, including its sender type argument.com.palantir.javapoet.ClassNameThe platform's native sender type.protected StringThe suffix appended to the command class name, for example"$BukkitCommand".Methods inherited from class io.github.projectunified.craftcommand.processor.generator.BaseCommandGenerator
addConstructorStatements, anyMethod, buildAliasesExpression, buildCommandInfo, buildSenderCastHelpers, buildSuggestionRouting, buildTypeSuggestionHelpers, call, firstParamIsSender, firstParamIsSender, generate, generateExecuteMethodBody, generateHelpers, generatePlatformHelpers, generateResolverInvocation, generateSenderResolution, generateSubcommandClassExecutors, generateSubcommandFieldsAndConstructors, generateUnknownSubcommandMessage, getBuiltInWidth, getInstanceVarExpression, getLocalResolverMaxWidth, getLocalResolverMinWidth, getParameterSuggestionMethodName, getResolverInstanceExpr, getResolverParamSuggestionMethodName, getResolverSenderExpression, getSenderExpression, getSubcommandFieldName, getSubcommandNames, i18nKey, isI18nKey, isSenderBaseType, isSenderParam, isSenderType, onBeforeExecute, runParameterAnnotationHandlers, senderTypeRegistry, typeSupport
-
Constructor Details
-
StandaloneCommandGenerator
-
-
Method Details
-
getWrapperClassSuffix
Description copied from class:BaseCommandGeneratorThe suffix appended to the command class name, for example"$BukkitCommand".- Specified by:
getWrapperClassSuffixin classBaseCommandGenerator
-
configureClass
Description copied from class:BaseCommandGeneratorConfigures the generated class declaration (superclass, interfaces).- Overrides:
configureClassin classBaseCommandGenerator
-
getSenderTypeName
public com.palantir.javapoet.ClassName getSenderTypeName()Description copied from class:BaseCommandGeneratorThe platform's native sender type.- Specified by:
getSenderTypeNamein classBaseCommandGenerator
-
getManagerType
protected com.palantir.javapoet.TypeName getManagerType()Description copied from class:BaseCommandGeneratorTheCommandManagertype, including its sender type argument.- Specified by:
getManagerTypein classBaseCommandGenerator
-
generateEntryMethods
protected void generateEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model) Description copied from class:BaseCommandGeneratorAdds the platform entry points (execute,tabComplete,getCommandNode, ...).- Specified by:
generateEntryMethodsin classBaseCommandGenerator
-