public class BinaryObjectExpressionHelper
extends BinaryExpressionWriter
Binary expression helper used for object operations that fall back to dynamic dispatch.
| Fields inherited from class | Fields |
|---|---|
class BinaryExpressionWriter |
stdCompareCodes |
| Constructor and description |
|---|
BinaryObjectExpressionHelper(WriterController controller)Creates an object-specialized binary expression helper. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
doubleTwoOperands(org.objectweb.asm.MethodVisitor mv)* Duplicates the two operands already on the operand stack. * *
|
|
protected ClassNode |
getArrayGetResultType()*
|
|
protected int |
getBitwiseOperationBytecode(int type)* Returns the bitwise opcode for the supplied token. * *
|
|
protected int |
getCompareCode()*
|
|
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 void |
removeTwoOperands(org.objectweb.asm.MethodVisitor mv)* Removes the two operands already on the operand stack. * *
|
|
public boolean |
write(int operation, boolean simulate)* Attempts to write the supplied binary operation. * *
|
|
protected boolean |
writeDivision(boolean simulate)* Writes a division operation for the current primitive type. * *
|
|
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. * *
|
|
public boolean |
writePostOrPrefixMethod(int operation, boolean simulate)* Attempts to write a postfix or prefix increment/decrement operation. * *
|
Creates an object-specialized binary expression helper.
controller - the active writer controller* Duplicates the two operands already on the operand stack. * *
mv - the current method visitor*
* Returns the bitwise opcode for the supplied token. * *
type - the normalized token index
**
*
*
* 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
** Removes the two operands already on the operand stack. * *
mv - the current method visitor* Attempts to write the supplied binary operation. * *
operation - the token type
*simulate - whether to probe support without emitting bytecode
*true if the operation is supported* Writes a division operation for the current primitive type. * *
simulate - whether to probe support without emitting bytecode
*true if division is supported* Emits a prefix/postfix decrement. * *
mv - the current method visitor* Emits a prefix/postfix increment. * *
mv - the current method visitor* Attempts to write a postfix or prefix increment/decrement operation. * *
operation - the token type
*simulate - whether to probe support without emitting bytecode
*true if the operation is supportedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.