Class CompareIdentityExpression
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.ast.expr.BinaryExpression
org.codehaus.groovy.transform.sc.transformers.CompareIdentityExpression
- All Implemented Interfaces:
- GroovydocHolder<AnnotatedNode>,- NodeMetaDataHandler
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.
- 
Field SummaryFields inherited from class org.codehaus.groovy.ast.expr.ExpressionEMPTY_ARRAYFields inherited from interface groovy.lang.groovydoc.GroovydocHolderDOC_COMMENT
- 
Constructor SummaryConstructorsConstructorDescriptionCompareIdentityExpression(Expression leftExpression, boolean eq, Expression rightExpression) CompareIdentityExpression(Expression leftExpression, Expression rightExpression) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisEq()voidtransformExpression(ExpressionTransformer transformer) Transforms this expression and any nested expressions.voidvisit(GroovyCodeVisitor visitor) Methods inherited from class org.codehaus.groovy.ast.expr.BinaryExpressiongetLeftExpression, getOperation, getRightExpression, getText, isSafe, newAssignmentExpression, newInitializationExpression, setLeftExpression, setRightExpression, setSafe, toStringMethods inherited from class org.codehaus.groovy.ast.expr.ExpressiongetType, transformExpressions, transformExpressionsMethods inherited from class org.codehaus.groovy.ast.AnnotatedNodeaddAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticMethods inherited from class org.codehaus.groovy.ast.ASTNodecopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePositionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandlercopyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, newMetaDataMap, putNodeMetaData, removeNodeMetaData, setNodeMetaData
- 
Constructor Details- 
CompareIdentityExpression
- 
CompareIdentityExpression
 
- 
- 
Method Details- 
isEqpublic boolean isEq()
- 
setType- Overrides:
- setTypein class- Expression
 
- 
transformExpressionDescription copied from class:ExpressionTransforms this expression and any nested expressions.- Overrides:
- transformExpressionin class- BinaryExpression
 
- 
visit- Overrides:
- visitin class- BinaryExpression
 
 
-