Annotation Interface KeepType


@Documented @Repeatable(KeepTypes.class) @Target(TYPE) public @interface KeepType
Annotation indicating that the type may appear in the generated javascript.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The type may be kept unless this expression is true.
    The type may be kept if this expression is true.
  • Element Details

    • unless

      String unless
      The type may be kept unless this expression is true. Supplying a value for this parameter is incompatible with supplying a value to the when() parameter.
      Returns:
      the conditional expression.
      Default:
      ""
    • when

      String when
      The type may be kept if this expression is true. Supplying a value for this parameter is incompatible with supplying a value to the unless() parameter.
      Returns:
      the conditional expression.
      Default:
      ""