public abstract class BinaryExpressionWriter extends Object
Base class for writing primitive typed operations
Modifiers | Name | Description |
---|---|---|
protected static int[] |
stdCompareCodes |
Constructor and description |
---|
BinaryExpressionWriter
(WriterController controller, MethodCaller arraySet, MethodCaller arrayGet) |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
arrayGet(int operation, boolean simulate) |
|
boolean |
arraySet(boolean simulate) |
|
protected void |
doubleTwoOperands(org.objectweb.asm.MethodVisitor mv) |
|
protected MethodCaller |
getArrayGetCaller() |
|
protected ClassNode |
getArrayGetResultType() |
|
protected MethodCaller |
getArraySetCaller() |
|
protected int |
getBitwiseOperationBytecode(int type) |
|
protected int |
getCompareCode() |
|
WriterController |
getController() return writer controller |
|
protected ClassNode |
getDevisionOpResultType() |
|
protected ClassNode |
getNormalOpResultType() |
|
protected int |
getShiftOperationBytecode(int type) |
|
protected int |
getStandardOperationBytecode(int type) |
|
protected void |
removeTwoOperands(org.objectweb.asm.MethodVisitor mv) |
|
void |
setArraySetAndGet(MethodCaller arraySet, MethodCaller arrayGet) |
|
protected boolean |
supportsDivision() |
|
boolean |
write(int operation, boolean simulate) |
|
protected boolean |
writeBitwiseOp(int type, boolean simulate) writes some the bitwise operations. type is one of BITWISE_OR, BITWISE_AND, BITWISE_XOR |
|
protected boolean |
writeDivision(boolean simulate) |
|
protected void |
writeMinusMinus(org.objectweb.asm.MethodVisitor mv) |
|
protected void |
writePlusPlus(org.objectweb.asm.MethodVisitor mv) |
|
boolean |
writePostOrPrefixMethod(int operation, boolean simulate) |
|
protected boolean |
writeShiftOp(int type, boolean simulate) Write shifting operations. |
|
protected boolean |
writeSpaceship(int type, boolean simulate) |
|
protected boolean |
writeStdCompare(int type, boolean simulate) writes some int standard operations for compares |
|
protected boolean |
writeStdOperators(int type, boolean simulate) |
return writer controller
writes some the bitwise operations. type is one of BITWISE_OR, BITWISE_AND, BITWISE_XOR
type
- the token typeWrite shifting operations. Type is one of LEFT_SHIFT, RIGHT_SHIFT, or RIGHT_SHIFT_UNSIGNED
type
- the token typewrites some int standard operations for compares
type
- the token typeCopyright © 2003-2020 The Apache Software Foundation. All rights reserved.