org.codehaus.groovy.transform
[Java] Class StaticTypesTransformation
java.lang.Object
org.codehaus.groovy.transform.StaticTypesTransformation
- All Implemented Interfaces:
- ASTTransformation
@GroovyASTTransformation(phase = CompilePhase.INSTRUCTION_SELECTION)
public class StaticTypesTransformation
extends Object
Handles the implementation of the TypeChecked transformation.
- Authors:
- Jochen "blackdrag" Theodorou
- Cedric Champeau
- Guillaume Laforge
STATIC_ERROR_PREFIX
public static final String STATIC_ERROR_PREFIX
-
newVisitor
protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit, ClassNode node, TypeCheckerPluginFactory pluginFactory)
- Allows subclasses to provide their own visitor. This is useful for example for transformations relying
on the static type checker.
- Parameters:
unit
- the source unitnode
- the current classnode
- Returns:
- a static type checking visitor
visit
public void visit(ASTNode[] nodes, SourceUnit source)
-
Copyright © 2003-2012 The Codehaus. All rights reserved.