Package org.codehaus.groovy.classgen.asm
Class BinaryExpressionMultiTypeDispatcher
java.lang.Object
org.codehaus.groovy.classgen.asm.BinaryExpressionHelper
org.codehaus.groovy.classgen.asm.BinaryExpressionMultiTypeDispatcher
- Direct Known Subclasses:
StaticTypesBinaryExpressionMultiTypeDispatcher
public class BinaryExpressionMultiTypeDispatcher extends BinaryExpressionHelper
This class is for internal use only!
This class will dispatch to the right type adapters according to the
kind of binary expression that is provided.
-
Field Summary
Fields Modifier and Type Field Description protected BinaryExpressionWriter[]
binExpWriter
static java.util.Map<ClassNode,java.lang.Integer>
typeMap
static java.lang.String[]
typeMapKeyNames
Fields inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionHelper
controller
-
Constructor Summary
Constructors Constructor Description BinaryExpressionMultiTypeDispatcher(WriterController wc)
-
Method Summary
Modifier and Type Method Description protected void
assignToArray(Expression orig, Expression receiver, Expression index, Expression rhsValueLoader, boolean safe)
protected boolean
doPrimitiveCompare(ClassNode leftType, ClassNode rightType, BinaryExpression binExp)
protected boolean
doPrimtiveCompare(ClassNode leftType, ClassNode rightType, BinaryExpression binExp)
Deprecated.protected void
evaluateBinaryExpression(java.lang.String message, BinaryExpression binExp)
protected void
evaluateBinaryExpressionWithAssignment(java.lang.String method, BinaryExpression binExp)
protected void
evaluateCompareExpression(MethodCaller compareMethod, BinaryExpression binExp)
protected int
getOperandType(ClassNode type)
protected BinaryExpressionWriter[]
initializeDelegateHelpers()
protected void
writePostOrPrefixMethod(int op, java.lang.String method, Expression expression, Expression orig)
Methods inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionHelper
assignToArray, eval, evaluateArrayAssignmentWithOperator, evaluateElvisEqual, evaluateEqual, evaluatePostfixMethod, evaluatePrefixMethod, evaluateTernary, getController, getIsCaseMethod
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
binExpWriter
-
typeMap
-
typeMapKeyNames
public static final java.lang.String[] typeMapKeyNames
-
-
Constructor Details
-
BinaryExpressionMultiTypeDispatcher
-
-
Method Details
-
initializeDelegateHelpers
-
getOperandType
-
doPrimtiveCompare
@Deprecated protected boolean doPrimtiveCompare(ClassNode leftType, ClassNode rightType, BinaryExpression binExp)Deprecated. -
doPrimitiveCompare
protected boolean doPrimitiveCompare(ClassNode leftType, ClassNode rightType, BinaryExpression binExp) -
evaluateCompareExpression
- Overrides:
evaluateCompareExpression
in classBinaryExpressionHelper
-
evaluateBinaryExpression
- Overrides:
evaluateBinaryExpression
in classBinaryExpressionHelper
-
evaluateBinaryExpressionWithAssignment
protected void evaluateBinaryExpressionWithAssignment(java.lang.String method, BinaryExpression binExp)- Overrides:
evaluateBinaryExpressionWithAssignment
in classBinaryExpressionHelper
-
assignToArray
protected void assignToArray(Expression orig, Expression receiver, Expression index, Expression rhsValueLoader, boolean safe)- Overrides:
assignToArray
in classBinaryExpressionHelper
-
writePostOrPrefixMethod
protected void writePostOrPrefixMethod(int op, java.lang.String method, Expression expression, Expression orig)- Overrides:
writePostOrPrefixMethod
in classBinaryExpressionHelper
-