All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grim.annotations.OmitSymbol Maven / Gradle / Ivy

The newest version!
package grim.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Target;

/**
 * Annotation indicating when a java element should be omitted from generated javascript.
 */
@Documented
@Repeatable( OmitSymbols.class )
@Target( { ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR } )
public @interface OmitSymbol
{
  /**
   * The symbol should be omitted unless this expression is true.
   * Supplying a value for this parameter is incompatible with supplying a value to the {@link #when()} parameter.
   *
   * @return the conditional expression.
   */
  String unless() default "";

  /**
   * The symbol should be omitted if this expression is true.
   * Supplying a value for this parameter is incompatible with supplying a value to the {@link #unless()} parameter.
   *
   * @return the conditional expression.
   */
  String when() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy