public class BinaryDoubleExpressionHelper
extends BinaryLongExpressionHelper
Binary expression helper specialized for double operations.
| Fields inherited from class | Fields |
|---|---|
class BinaryExpressionWriter |
stdCompareCodes |
| Constructor and description |
|---|
BinaryDoubleExpressionHelper(WriterController controller)Creates a double-specialized binary expression helper. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected int |
getBitwiseOperationBytecode(int op)* * Returns the bitwise opcode for the supplied token. * *
|
|
protected int |
getCompareCode()* *
|
|
protected int |
getCompareCode(int type)* Returns the compare opcode for a comparison operator. The default is * getCompareCode(); a floating-point type overrides it so that a * NaN operand makes the comparison false. * *
|
|
protected ClassNode |
getDevisionOpResultType()* *
|
|
protected ClassNode |
getNormalOpResultType()* *
|
|
protected int |
getShiftOperationBytecode(int type)* * Returns the shift opcode for the supplied token. * *
|
|
protected int |
getStandardOperationBytecode(int type)* * Returns the arithmetic opcode for the supplied token. * *
|
|
protected boolean |
supportsDivision()* *
|
|
protected boolean |
writeBitwiseOp(int op, boolean simulate)* writes some the bitwise operations. type is one of BITWISE_OR, * BITWISE_AND, BITWISE_XOR *
|
|
protected void |
writeMinusMinus(org.objectweb.asm.MethodVisitor mv)* * Emits a prefix/postfix decrement. * *
|
|
protected void |
writePlusPlus(org.objectweb.asm.MethodVisitor mv)* * Emits a prefix/postfix increment. * *
|
|
protected boolean |
writeShiftOp(int type, boolean simulate)* Write shifting operations. * Type is one of LEFT_SHIFT, RIGHT_SHIFT, or RIGHT_SHIFT_UNSIGNED * *
|
Creates a double-specialized binary expression helper.
controller - the active writer controller* * Returns the bitwise opcode for the supplied token. * *
type - the normalized token index
** *
* Returns the compare opcode for a comparison operator. The default is * getCompareCode(); a floating-point type overrides it so that a * NaN operand makes the comparison false. * *
type - the token type of the comparison operator
*
DCMPL yields -1 and DCMPG yields 1 for a NaN operand, so DCMPL is used for
> and >= and DCMPG otherwise; either way the
comparison is false, as in Java (JLS 15.20.1).
* *
* *
* * Returns the shift opcode for the supplied token. * *
type - the normalized token index
** * Returns the arithmetic opcode for the supplied token. * *
type - the normalized token index
** *
* writes some the bitwise operations. type is one of BITWISE_OR, * BITWISE_AND, BITWISE_XOR *
type - the token type
** * Emits a prefix/postfix decrement. * *
mv - the current method visitor* * Emits a prefix/postfix increment. * *
mv - the current method visitor* Write shifting operations. * Type is one of LEFT_SHIFT, RIGHT_SHIFT, or RIGHT_SHIFT_UNSIGNED * *
type - the token type
*Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.