public class CompareIdentityExpression extends BinaryExpression
Compares two objects using identity comparison. This expression will generate bytecode using the IF_ACMPNE instruction, instead of using the "equals" method that is currently mapped to "==" in Groovy. This expression should only be used to compare to objects, not primitives, and only in the context of reference equality check.
Constructor and description |
---|
CompareIdentityExpression
(Expression leftExpression, Expression rightExpression) |
Type | Name and description |
---|---|
Expression |
transformExpression(ExpressionTransformer transformer) |
void |
visit(GroovyCodeVisitor visitor) |
Copyright © 2003-2014 The Codehaus. All rights reserved.