public class BinaryIntExpressionHelper extends BinaryExpressionWriter
Constructor and Description |
---|
BinaryIntExpressionHelper(WriterController wc) |
Modifier and Type | Method and Description |
---|---|
protected void |
doubleTwoOperands(org.objectweb.asm.MethodVisitor mv) |
protected MethodCaller |
getArrayGetCaller() |
protected MethodCaller |
getArraySetCaller() |
protected int |
getBitwiseOperationBytecode(int type) |
protected int |
getCompareCode() |
protected ClassNode |
getDevisionOpResultType() |
protected ClassNode |
getNormalOpResultType() |
protected int |
getShiftOperationBytecode(int type) |
protected int |
getStandardOperationBytecode(int type) |
protected void |
removeTwoOperands(org.objectweb.asm.MethodVisitor mv) |
protected boolean |
supportsDivision() |
protected void |
writeMinusMinus(org.objectweb.asm.MethodVisitor mv) |
protected void |
writePlusPlus(org.objectweb.asm.MethodVisitor mv) |
protected boolean |
writeSpaceship(int type,
boolean simulate)
writes the spaceship operator, type should be COMPARE_TO
|
protected boolean |
writeStdCompare(int type,
boolean simulate)
writes a std compare.
|
arrayGet, arraySet, getArrayGetResultType, write, writeBitwiseOp, writeDivision, writePostOrPrefixMethod, writeShiftOp, writeStdOperators
public BinaryIntExpressionHelper(WriterController wc)
protected boolean writeStdCompare(int type, boolean simulate)
writeStdCompare
in class BinaryExpressionWriter
type
- the token typeprotected boolean writeSpaceship(int type, boolean simulate)
writeSpaceship
in class BinaryExpressionWriter
type
- the token typeprotected void doubleTwoOperands(org.objectweb.asm.MethodVisitor mv)
doubleTwoOperands
in class BinaryExpressionWriter
protected MethodCaller getArrayGetCaller()
getArrayGetCaller
in class BinaryExpressionWriter
protected MethodCaller getArraySetCaller()
getArraySetCaller
in class BinaryExpressionWriter
protected int getBitwiseOperationBytecode(int type)
getBitwiseOperationBytecode
in class BinaryExpressionWriter
protected int getCompareCode()
getCompareCode
in class BinaryExpressionWriter
protected ClassNode getNormalOpResultType()
getNormalOpResultType
in class BinaryExpressionWriter
protected int getShiftOperationBytecode(int type)
getShiftOperationBytecode
in class BinaryExpressionWriter
protected int getStandardOperationBytecode(int type)
getStandardOperationBytecode
in class BinaryExpressionWriter
protected void removeTwoOperands(org.objectweb.asm.MethodVisitor mv)
removeTwoOperands
in class BinaryExpressionWriter
protected void writeMinusMinus(org.objectweb.asm.MethodVisitor mv)
writeMinusMinus
in class BinaryExpressionWriter
protected void writePlusPlus(org.objectweb.asm.MethodVisitor mv)
writePlusPlus
in class BinaryExpressionWriter
protected ClassNode getDevisionOpResultType()
getDevisionOpResultType
in class BinaryExpressionWriter
protected boolean supportsDivision()
supportsDivision
in class BinaryExpressionWriter