org.codehaus.groovy.transform
[Java] Class EqualsAndHashCodeASTTransformation
java.lang.Object
org.codehaus.groovy.transform.AbstractASTTransformation
org.codehaus.groovy.transform.EqualsAndHashCodeASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class EqualsAndHashCodeASTTransformation
extends AbstractASTTransformation
Method Summary |
static void
|
createEquals(ClassNode cNode, boolean includeFields, boolean callSuper, boolean useCanEqual, java.util.List excludes, java.util.List includes)
|
static void
|
createHashCode(ClassNode cNode, boolean cacheResult, boolean includeFields, boolean callSuper, java.util.List excludes, java.util.List includes)
|
void
|
visit(ASTNode[] nodes, SourceUnit source)
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
createEquals
public static void createEquals(ClassNode cNode, boolean includeFields, boolean callSuper, boolean useCanEqual, java.util.List excludes, java.util.List includes)
-
createHashCode
public static void createHashCode(ClassNode cNode, boolean cacheResult, boolean includeFields, boolean callSuper, java.util.List excludes, java.util.List includes)
-
visit
public void visit(ASTNode[] nodes, SourceUnit source)
-
Groovy Documentation