Interface AnnotationReplacer<A extends Annotation>

Type Parameters:
A - the valueType of annotation to replace with other annotations

@AvailableSince("1.0.0") public interface AnnotationReplacer<A extends Annotation>
Replaces a custom annotation made by the user, with annotations made from the basic pre-made annotations such as Command
  • Method Summary

    Modifier and Type
    Method
    Description
    replace(@NotNull ParseElement<?> element, A annotation)
    The annotation to replace
  • Method Details

    • replace

      @NotNull @NotNull Collection<Annotation> replace(@NotNull @NotNull ParseElement<?> element, A annotation)
      The annotation to replace
      Parameters:
      element - the loaded element holding this annotation
      annotation - the annotation
      Returns:
      the annotations replaced by this annotation