groovy.transform
[Java] Annotation Type CompileStatic
java.lang.Object
groovy.transform.CompileStatic
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target({ ElementType.METHOD, ElementType.TYPE,
ElementType.CONSTRUCTOR, ElementType.FIELD,
ElementType.LOCAL_VARIABLE, ElementType.PACKAGE
})
@GroovyASTTransformationClass("org.codehaus.groovy.transform.sc.StaticCompileTransformation")
public @interface CompileStatic
This will let the Groovy compiler use compile time checks in the style of Java
then perform static compilation, thus bypassing the Groovy meta object protocol.
- Authors:
- Jochen "blackdrag" Theodorou
- Cedric Champeau
value
public TypeCheckingMode value
- @default TypeCheckingMode.PASS
Copyright © 2003-2012 The Codehaus. All rights reserved.