public class BinaryIntExpressionHelper extends BinaryExpressionWriter
Constructor and Description |
---|
BinaryIntExpressionHelper(WriterController wc) |
BinaryIntExpressionHelper(WriterController wc,
MethodCaller arraySet,
MethodCaller arrayGet) |
Modifier and Type | Method and Description |
---|---|
protected void |
doubleTwoOperands(org.objectweb.asm.MethodVisitor mv) |
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, getArrayGetCaller, getArrayGetResultType, getArraySetCaller, getController, setArraySetAndGet, write, writeBitwiseOp, writeDivision, writePostOrPrefixMethod, writeShiftOp, writeStdOperators
public BinaryIntExpressionHelper(WriterController wc)
public BinaryIntExpressionHelper(WriterController wc, MethodCaller arraySet, MethodCaller arrayGet)
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 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