Package org.codehaus.groovy.classgen.asm
Class BinaryDoubleExpressionHelper
java.lang.Object
org.codehaus.groovy.classgen.asm.BinaryExpressionWriter
org.codehaus.groovy.classgen.asm.BinaryLongExpressionHelper
org.codehaus.groovy.classgen.asm.BinaryDoubleExpressionHelper
-
Field Summary
Fields inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionWriter
stdCompareCodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getBitwiseOperationBytecode
(int op) protected int
protected ClassNode
protected ClassNode
protected int
getShiftOperationBytecode
(int type) protected int
getStandardOperationBytecode
(int type) protected boolean
protected boolean
writeBitwiseOp
(int op, boolean simulate) writes some the bitwise operations.protected void
writeMinusMinus
(org.objectweb.asm.MethodVisitor mv) protected void
writePlusPlus
(org.objectweb.asm.MethodVisitor mv) protected boolean
writeShiftOp
(int type, boolean simulate) Write shifting operations.Methods inherited from class org.codehaus.groovy.classgen.asm.BinaryLongExpressionHelper
doubleTwoOperands, removeTwoOperands
Methods inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionWriter
arrayGet, arraySet, getArrayGetCaller, getArrayGetResultType, getArraySetCaller, getController, setArraySetAndGet, write, writeDivision, writePostOrPrefixMethod, writeSpaceship, writeStdCompare, writeStdOperators
-
Constructor Details
-
BinaryDoubleExpressionHelper
-
-
Method Details
-
writeBitwiseOp
protected boolean writeBitwiseOp(int op, boolean simulate) Description copied from class:BinaryExpressionWriter
writes some the bitwise operations. type is one of BITWISE_OR, BITWISE_AND, BITWISE_XOR- Overrides:
writeBitwiseOp
in classBinaryExpressionWriter
- Parameters:
op
- the token type- Returns:
- true if a successful bitwise operation write
-
getBitwiseOperationBytecode
protected int getBitwiseOperationBytecode(int op) - Overrides:
getBitwiseOperationBytecode
in classBinaryLongExpressionHelper
-
getCompareCode
protected int getCompareCode()- Overrides:
getCompareCode
in classBinaryLongExpressionHelper
-
getNormalOpResultType
- Overrides:
getNormalOpResultType
in classBinaryLongExpressionHelper
-
writeShiftOp
protected boolean writeShiftOp(int type, boolean simulate) Description copied from class:BinaryExpressionWriter
Write shifting operations. Type is one of LEFT_SHIFT, RIGHT_SHIFT, or RIGHT_SHIFT_UNSIGNED- Overrides:
writeShiftOp
in classBinaryExpressionWriter
- Parameters:
type
- the token type- Returns:
- true on a successful shift operation write
-
getShiftOperationBytecode
protected int getShiftOperationBytecode(int type) - Overrides:
getShiftOperationBytecode
in classBinaryLongExpressionHelper
-
getStandardOperationBytecode
protected int getStandardOperationBytecode(int type) - Overrides:
getStandardOperationBytecode
in classBinaryLongExpressionHelper
-
writeMinusMinus
protected void writeMinusMinus(org.objectweb.asm.MethodVisitor mv) - Overrides:
writeMinusMinus
in classBinaryLongExpressionHelper
-
writePlusPlus
protected void writePlusPlus(org.objectweb.asm.MethodVisitor mv) - Overrides:
writePlusPlus
in classBinaryLongExpressionHelper
-
getDevisionOpResultType
- Overrides:
getDevisionOpResultType
in classBinaryLongExpressionHelper
-
supportsDivision
protected boolean supportsDivision()- Overrides:
supportsDivision
in classBinaryLongExpressionHelper
-