Interface AnnotatedArgument<S extends CommandSource>

All Superinterfaces:
Argument<S>, DescriptionHolder, PermissionHolder
All Known Implementing Classes:
AnnotationArgumentDecorator

@AvailableSince("1.0.0") public interface AnnotatedArgument<S extends CommandSource> extends Argument<S>
Represents an annotated parameter from using annotation parser
  • Method Details

    • getParsedElement

      @NotNull @NotNull ParseElement<?> getParsedElement()
    • getAnnotation

      @Nullable <A extends Annotation> A getAnnotation(Class<A> clazz)
      Get the instance of specific annotation
      Type Parameters:
      A - the valueType of the annotation
      Parameters:
      clazz - the valueType of annotation
      Returns:
      the specific instance of an annotation of a certain valueType AnnotatedArgument
    • hasAnnotation

      default boolean hasAnnotation(Class<? extends Annotation> clazz)
    • getAnnotations

      Collection<? extends Annotation> getAnnotations()
      Returns:
      the annotations associated with this parameter