groovy.transform
[Java] Annotation Type TypeChecked
java.lang.Object
groovy.transform.TypeChecked
@Retention(RetentionPolicy.SOURCE)
@Target({ ElementType.METHOD, ElementType.TYPE,
ElementType.CONSTRUCTOR
})
@GroovyASTTransformationClass("org.codehaus.groovy.transform.StaticTypesTransformation")
public @interface TypeChecked
This will let the Groovy compiler use compile time checks in the style of Java.
- Authors:
- Jochen "blackdrag" Theodorou
Nested Class Summary |
@interface |
TypeChecked.TypeCheckingInfo
This annotation is added by - TypeChecked:
- on methods which have type checking turned on.
|
Required Element Summary |
java.lang.String |
extensions
The list of (classpath resources) paths to type checking DSL scripts, also known
as type checking extensions.
|
Optional Element Summary |
null |
value
@default TypeCheckingMode.PASS
|
extensions
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
value
public TypeCheckingMode value
- @default TypeCheckingMode.PASS
Copyright © 2003-2013 The Codehaus. All rights reserved.