Top Description Inners Methods
groovy.transform

public @Interface TypeChecked

extends Annotation
Annotations
@Documented
@Retention:SOURCE
@Target:METHOD, TYPE, CONSTRUCTOR
@GroovyASTTransformationClass:StaticTypesTransformation
Imports
org.codehaus.groovy.transform.GroovyASTTransformationClass, java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

This will let the Groovy compiler use compile time checks in the style of Java.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
TypeChecked.TypeCheckingInfo

This annotation is added by @TypeChecked on methods which have type checking turned on.

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

an array of paths to groovy scripts that must be on compile classpath
extensions
()

The list of (classpath resources) paths to type checking DSL scripts, also known as type checking extensions.

public TypeCheckingMode
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

extensionsback to summary
public String[] extensions()

The list of (classpath resources) paths to type checking DSL scripts, also known as type checking extensions.

Returns:String[]

an array of paths to groovy scripts that must be on compile classpath

valueback to summary
public TypeCheckingMode value()
groovy.transform back to summary

public @Interface TypeChecked.TypeCheckingInfo

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD

This annotation is added by @TypeChecked on methods which have type checking turned on. It is used to embed type information into binary, so that the type checker can use this information, if available, for precompiled classes.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the inferred type
inferredType
()

An encoded type information.

public int

Returns:

the protocol version
version
()

Returns the type checker information protocol number.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

inferredTypeback to summary
public String inferredType()

An encoded type information.

Returns:String

the inferred type

versionback to summary
public int version()

Returns the type checker information protocol number. This is used if the format of the string used in inferredType() changes.

Returns:int

the protocol version