Interface AnnotatedParameter<S extends Source>

All Superinterfaces:
CommandParameter<S>, DescriptionHolder, PermissionHolder
All Known Implementing Classes:
AnnotationParameterDecorator

@AvailableSince("1.0.0") public interface AnnotatedParameter<S extends Source> extends CommandParameter<S>
Represents an annotated parameter from using annotation parser
  • Method Details

    • 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 AnnotatedParameter
    • hasAnnotation

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

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