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
public class BinaryDoubleExpressionHelper extends BinaryLongExpressionHelper
-
Field Summary
Fields inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionWriter
stdCompareCodes
-
Constructor Summary
Constructors Constructor Description BinaryDoubleExpressionHelper(WriterController controller)
-
Method Summary
Modifier and Type Method Description protected int
getBitwiseOperationBytecode(int op)
protected int
getCompareCode()
protected ClassNode
getDevisionOpResultType()
protected ClassNode
getNormalOpResultType()
protected int
getShiftOperationBytecode(int type)
protected int
getStandardOperationBytecode(int type)
protected boolean
supportsDivision()
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-