|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
static Object
|
checkImmutable(String className, String fieldName, Object field)
This method exists to be binary compatible with 1.7 - 1.8.6 compiled code. |
static Object
|
checkImmutable(Class clazz, String fieldName, Object field)
|
static void
|
checkPropNames(Object instance, Map args)
|
void
|
visit(ASTNode[] nodes, SourceUnit source)
|
Methods inherited from class AbstractASTTransformation | |
---|---|
addError, checkIncludeExclude, checkNotInterface, getMemberList, getMemberStringValue, getMemberValue, hasAnnotation, init, memberHasValue, nonGeneric, shouldSkip, tokenize |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
@SuppressWarningspublic static Object checkImmutable(Class> clazz, String fieldName, Object field) { public static Object checkImmutable(String className, String fieldName, Object field)
@SuppressWarningsif (field.getClass().getAnnotation(MY_CLASS) != null) return field; public static Object checkImmutable(Class clazz, String fieldName, Object field)
public static void checkPropNames(Object instance, Map args)
public void visit(ASTNode[] nodes, SourceUnit source)
Copyright © 2003-2013 The Codehaus. All rights reserved.