Groovy 1.6.4

org.codehaus.groovy.transform
Class ImmutableASTTransformation

java.lang.Object
  org.codehaus.groovy.transform.ImmutableASTTransformation
All Implemented Interfaces:
ASTTransformation

@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
class ImmutableASTTransformation
extends Object

Handles generation of code for the @Immutable annotation. This is experimental, use at your own risk.

author:
Paul King


Constructor Summary
ImmutableASTTransformation()

 
Method Summary
static Object checkImmutable(String className, String fieldName, Object field)

void visit(ASTNode[] nodes, SourceUnit source)

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

Constructor Detail

ImmutableASTTransformation

ImmutableASTTransformation()


 
Method Detail

checkImmutable

public static Object checkImmutable(String className, String fieldName, Object field)


visit

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


 

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