Groovy 2.2.1

org.codehaus.groovy.transform
[Java] Class StaticTypesTransformation

java.lang.Object
  org.codehaus.groovy.transform.StaticTypesTransformation
All Implemented Interfaces:
ASTTransformation, CompilationUnitAware

@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


Field Summary
static String STATIC_ERROR_PREFIX

 
Method Summary
protected void addTypeCheckingExtensions(StaticTypeCheckingVisitor visitor, Expression extensions)

protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit, ClassNode node)

Allows subclasses to provide their own visitor.

void setCompilationUnit(CompilationUnit unit)

void visit(ASTNode[] nodes, SourceUnit source)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

STATIC_ERROR_PREFIX

public static final String STATIC_ERROR_PREFIX


 
Method Detail

addTypeCheckingExtensions

protected void addTypeCheckingExtensions(StaticTypeCheckingVisitor visitor, Expression extensions)


newVisitor

protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit, ClassNode node)
Allows subclasses to provide their own visitor. This is useful for example for transformations relying on the static type checker.
Parameters:
unit - the source unit
node - the current classnode
Returns:
a static type checking visitor


setCompilationUnit

public void setCompilationUnit(CompilationUnit unit)


visit

public void visit(ASTNode[] nodes, SourceUnit source)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.