[Java] Class CompareIdentityExpression
- org.codehaus.groovy.transform.sc.transformers.CompareIdentityExpression
- All Implemented Interfaces and Traits:
- org.objectweb.asm.Opcodes
public class CompareIdentityExpression extends BinaryExpression implements org.objectweb.asm.Opcodes
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.
Fields inherited from class | Fields |
---|---|
class Expression | EMPTY_ARRAY |
Constructor Summary
Constructor and description |
---|
CompareIdentityExpression
(Expression leftExpression, Expression rightExpression) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public Expression |
transformExpression(ExpressionTransformer transformer) | |
public void |
visit(GroovyCodeVisitor visitor) |
Inherited Methods Summary
Constructor Detail
public CompareIdentityExpression(Expression leftExpression, Expression rightExpression)
Method Detail
@Override public Expression transformExpression(ExpressionTransformer transformer)
@Override public void visit(GroovyCodeVisitor visitor)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/transform/sc/transformers/CompareIdentityExpression.html