Class StandaloneCommandProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.projectunified.craftcommand.processor.BaseCommandProcessor
io.github.projectunified.craftcommand.processor.standalone.StandaloneCommandProcessor
- All Implemented Interfaces:
Processor
@AutoService(javax.annotation.processing.Processor.class)
@SupportedAnnotationTypes("io.github.projectunified.craftcommand.annotation.Command")
@SupportedSourceVersion(RELEASE_8)
public class StandaloneCommandProcessor
extends BaseCommandProcessor
-
Field Summary
Fields inherited from class io.github.projectunified.craftcommand.processor.BaseCommandProcessor
resolverLookupFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanchorBuildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) Phase 4: Generate platform-specific entry methods (execute, tabComplete, getCommandNode, etc.).protected voidanchorConfigureType(com.palantir.javapoet.TypeSpec.Builder typeSpec) Phase 1: Configure the class declaration (superclass, interfaces).protected com.palantir.javapoet.TypeNameReturns the platform-specific command manager type.protected com.palantir.javapoet.ClassNameReturns the platform-specific command sender type name.protected StringReturns the wrapper class suffix specific to the platform.Methods inherited from class io.github.projectunified.craftcommand.processor.BaseCommandProcessor
anchorAdditionalFields, anchorAdditionalHelpers, anchorConstructorBottom, anchorConstructorTop, anchorExtraMethods, buildAdditionalHelpers, buildAliasesExpression, buildBuiltInParameter, buildExecutionRouting, buildLocalResolverParameter, buildMethodExecution, buildMethodExecution, buildParameterSuggestionHelper, buildParameterSuggestions, buildResolverParamSuggestionHelper, buildSenderResolution, buildSubcommandSuggestionRouting, buildSuggestionRouting, buildWrapperClass, createExecutionSource, findAnnotationUp, findLocalResolver, findModelForClass, findSuggestionProvider, findSuggestMethod, firstParamIsSender, firstParamIsSender, generateAssignDefaultValue, generateExecuteMethodBody, generateFieldsAndConstructorStatements, generateResolverInvocation, generateResolverResolution, generateResolveSingleArgument, generateSubcommandClassExecutors, generateUnknownSubcommandMessage, getAssignmentValueForType, getBuiltInWidth, getDefaultPrimitiveValue, getInstanceVarExpression, getLocalResolverMaxWidth, getLocalResolverMinWidth, getParameterSuggestionMethodName, getResolverInstanceExpr, getResolverParamSuggestionMethodName, getResolverSenderExpression, getSenderExpression, getSimpleName, getSubcommandFieldName, getSubcommandNames, getUsage, i18nKey, init, isBuiltInType, isField, isI18nKey, isPlatformBuiltInType, isSenderBaseType, isSenderParam, isSenderType, isStringArray, onBeforeExecute, process, registerTypes, resolveParameterForType, runParameterAnnotationHandlers, senderTypeRegistryMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
StandaloneCommandProcessor
public StandaloneCommandProcessor()
-
-
Method Details
-
getWrapperClassSuffix
Description copied from class:BaseCommandProcessorReturns the wrapper class suffix specific to the platform.- Specified by:
getWrapperClassSuffixin classBaseCommandProcessor- Returns:
- the class name suffix (e.g. "$BukkitCommand" or "$StandaloneCommand")
-
anchorConfigureType
protected void anchorConfigureType(com.palantir.javapoet.TypeSpec.Builder typeSpec) Description copied from class:BaseCommandProcessorPhase 1: Configure the class declaration (superclass, interfaces).- Overrides:
anchorConfigureTypein classBaseCommandProcessor
-
getSenderTypeName
protected com.palantir.javapoet.ClassName getSenderTypeName()Description copied from class:BaseCommandProcessorReturns the platform-specific command sender type name.- Specified by:
getSenderTypeNamein classBaseCommandProcessor
-
getManagerType
protected com.palantir.javapoet.TypeName getManagerType()Description copied from class:BaseCommandProcessorReturns the platform-specific command manager type.- Specified by:
getManagerTypein classBaseCommandProcessor
-
anchorBuildEntryMethods
protected void anchorBuildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement) Description copied from class:BaseCommandProcessorPhase 4: Generate platform-specific entry methods (execute, tabComplete, getCommandNode, etc.).- Overrides:
anchorBuildEntryMethodsin classBaseCommandProcessor
-