Package: groovy.transform

## [Java] Annotation Type TypeChecked

- groovy.transform.TypeChecked

-     @Documented
      @Retention(RetentionPolicy.SOURCE)
      @Target({ElementType.TYPE, ElementType.METHOD, ElementType.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
    Modifiers | Name | Description
    --- | --- | ---
    `@interface` | `TypeChecked.TypeCheckingInfo` | This annotation is added by TypeChecked: on methods which have type checking turned on.

  - ### Element Summary

    Optional Element Summary
    Type | Name and Description
    --- | ---
    `String[]` | `extensions` The list of (classpath resources) paths to type checking DSL scripts, also known as type checking extensions.
    `TypeCheckingMode` | `value` Controls whether type checking is applied or skipped.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Element Detail

    - #### public 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:
        {}

    - #### public TypeCheckingMode value

      Controls whether type checking is applied or skipped. Defaults to TypeCheckingMode.PASS.

      Returns:
        the type-checking mode
      Default:
        TypeCheckingMode.PASS