Class ArgumentAssemblerImpl<C>
java.lang.Object
org.incendo.cloud.annotations.assembler.ArgumentAssemblerImpl<C>
- All Implemented Interfaces:
ArgumentAssembler<C>
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentAssemblerImpl(@NonNull AnnotationParser<C> annotationParser) Creates a new argument assembler. -
Method Summary
Modifier and TypeMethodDescriptionassembleArgument(@NonNull SyntaxFragment syntaxFragment, @NonNull ArgumentDescriptor descriptor) Assembles a command component from the givendescriptor.
-
Constructor Details
-
ArgumentAssemblerImpl
Creates a new argument assembler.- Parameters:
annotationParser- annotation parser instance
-
-
Method Details
-
assembleArgument
public @NonNull CommandComponent<C> assembleArgument(@NonNull SyntaxFragment syntaxFragment, @NonNull ArgumentDescriptor descriptor) Description copied from interface:ArgumentAssemblerAssembles a command component from the givendescriptor.- Specified by:
assembleArgumentin interfaceArgumentAssembler<C>- Parameters:
syntaxFragment- the syntax fragment for the argumentdescriptor- the descriptor- Returns:
- the assembled command component
-