Annotation Interface TypeChecked


@Documented @Retention(SOURCE) @Target({TYPE,METHOD,CONSTRUCTOR}) public @interface TypeChecked
This will let the Groovy compiler use compile time checks in the style of Java.
Since:
2.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    This annotation is added by @TypeChecked on methods which have type checking turned on.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The list of (classpath resources) paths to type checking DSL scripts, also known as type checking extensions.
    Controls whether type checking is applied or skipped.
  • Element Details

    • value

      Controls whether type checking is applied or skipped. Defaults to TypeCheckingMode.PASS.
      Returns:
      the type-checking mode
      Default:
      PASS
    • extensions

      String[] extensions
      The list of (classpath resources) paths to type checking DSL scripts, also known as type checking extensions.
      Returns:
      an array of paths to groovy scripts that must be on compile classpath
      Default:
      {}