public class StaticTypesTransformation extends java.lang.Object implements ASTTransformation, CompilationUnitAware
TypeChecked transformation.| Modifier and Type | Field and Description | 
|---|---|
| protected CompilationUnit | compilationUnit | 
| static java.lang.String | STATIC_ERROR_PREFIX | 
| Constructor and Description | 
|---|
| StaticTypesTransformation() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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)The method is invoked when an AST Transformation is active. | 
public static final java.lang.String STATIC_ERROR_PREFIX
protected CompilationUnit compilationUnit
public void visit(ASTNode[] nodes, SourceUnit source)
ASTTransformationvisit in interface ASTTransformationnodes - The ASTnodes when the call was triggered. Element 0 is the AnnotationNode that triggered this
      annotation to be activated. Element 1 is the AnnotatedNode decorated, such as a MethodNode or ClassNode. For
      global transformations it is usually safe to ignore this parameter.source - The source unit being compiled. The source unit may contain several classes. For global transformations,
      information about the AST can be retrieved from this object.protected void addTypeCheckingExtensions(StaticTypeCheckingVisitor visitor, Expression extensions)
protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit, ClassNode node)
unit - the source unitnode - the current classnodepublic void setCompilationUnit(CompilationUnit unit)
setCompilationUnit in interface CompilationUnitAware