Annotation Interface OmitType


@Documented @Repeatable(OmitTypes.class) @Target(TYPE) public @interface OmitType
Annotation indicating that the class should not be present in output javascript. This is typically used when it is expected that all contained members are optimized away.
  • Optional Element Summary

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

    • unless

      String unless
      The type should be omitted 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 should be omitted 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:
      ""