- org.codehaus.groovy.transform.sc.transformers.CompareIdentityExpression
-
- All Implemented Interfaces and Traits:
- org.objectweb.asm.Opcodes
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.
- Authors:
- Cedric Champeau
-
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class BinaryExpression |
getLeftExpression, getOperation, getRightExpression, getText, isSafe, newAssignmentExpression, newInitializationExpression, setLeftExpression, setRightExpression, setSafe, toString, transformExpression, visit |
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setNodeMetaData, setSourcePosition, visit |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.