org.codehaus.groovy.transform
[Java] Class ImmutableASTTransformation
java.lang.Object
org.codehaus.groovy.transform.AbstractASTTransformation
org.codehaus.groovy.transform.ImmutableASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class ImmutableASTTransformation
extends AbstractASTTransformation
Handles generation of code for the
- Immutable:
- annotation.
- Authors:
- Paul King
checkImmutable
@SuppressWarnings("Unchecked")
public static Object checkImmutable(String className, String fieldName, Object field)
-
checkPropNames
public static void checkPropNames(Object instance, Map args)
-
visit
public void visit(ASTNode[] nodes, SourceUnit source)
-
Copyright © 2003-2011 The Codehaus. All rights reserved.