Package org.codehaus.groovy.classgen.asm
Class BinaryIntExpressionHelper
java.lang.Object
org.codehaus.groovy.classgen.asm.BinaryExpressionWriter
org.codehaus.groovy.classgen.asm.BinaryIntExpressionHelper
- Direct Known Subclasses:
- BinaryBooleanExpressionHelper
- 
Constructor SummaryConstructorsConstructorDescriptionBinaryIntExpressionHelper(WriterController wc, MethodCaller arraySet, MethodCaller arrayGet) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoubleTwoOperands(org.objectweb.asm.MethodVisitor mv) protected intgetBitwiseOperationBytecode(int type) protected intprotected ClassNodeprotected ClassNodeprotected intgetShiftOperationBytecode(int type) protected intgetStandardOperationBytecode(int type) protected voidremoveTwoOperands(org.objectweb.asm.MethodVisitor mv) protected booleanprotected voidwriteMinusMinus(org.objectweb.asm.MethodVisitor mv) protected voidwritePlusPlus(org.objectweb.asm.MethodVisitor mv) protected booleanwriteSpaceship(int type, boolean simulate) writes the spaceship operator, type should be COMPARE_TOprotected booleanwriteStdCompare(int type, boolean simulate) writes a std compare.Methods inherited from class org.codehaus.groovy.classgen.asm.BinaryExpressionWriterarrayGet, arraySet, getArrayGetCaller, getArrayGetResultType, getArraySetCaller, getController, setArraySetAndGet, write, writeBitwiseOp, writeDivision, writePostOrPrefixMethod, writeShiftOp, writeStdOperators
- 
Constructor Details- 
BinaryIntExpressionHelper
- 
BinaryIntExpressionHelper- Since:
- 2.5.0
 
 
- 
- 
Method Details- 
writeStdCompareprotected boolean writeStdCompare(int type, boolean simulate) writes a std compare. This involves the tokens IF_ICMPEQ, IF_ICMPNE, IF_ICMPEQ, IF_ICMPNE, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE and IF_ICMPLT- Overrides:
- writeStdComparein class- BinaryExpressionWriter
- Parameters:
- type- the token type
- Returns:
- true if a successful std compare write
 
- 
writeSpaceshipprotected boolean writeSpaceship(int type, boolean simulate) writes the spaceship operator, type should be COMPARE_TO- Overrides:
- writeSpaceshipin class- BinaryExpressionWriter
- Parameters:
- type- the token type
- Returns:
- true if a successful spaceship operator write
 
- 
doubleTwoOperandsprotected void doubleTwoOperands(org.objectweb.asm.MethodVisitor mv) - Specified by:
- doubleTwoOperandsin class- BinaryExpressionWriter
 
- 
getBitwiseOperationBytecodeprotected int getBitwiseOperationBytecode(int type) - Specified by:
- getBitwiseOperationBytecodein class- BinaryExpressionWriter
 
- 
getCompareCodeprotected int getCompareCode()- Specified by:
- getCompareCodein class- BinaryExpressionWriter
 
- 
getNormalOpResultType- Specified by:
- getNormalOpResultTypein class- BinaryExpressionWriter
 
- 
getShiftOperationBytecodeprotected int getShiftOperationBytecode(int type) - Specified by:
- getShiftOperationBytecodein class- BinaryExpressionWriter
 
- 
getStandardOperationBytecodeprotected int getStandardOperationBytecode(int type) - Specified by:
- getStandardOperationBytecodein class- BinaryExpressionWriter
 
- 
removeTwoOperandsprotected void removeTwoOperands(org.objectweb.asm.MethodVisitor mv) - Specified by:
- removeTwoOperandsin class- BinaryExpressionWriter
 
- 
writeMinusMinusprotected void writeMinusMinus(org.objectweb.asm.MethodVisitor mv) - Specified by:
- writeMinusMinusin class- BinaryExpressionWriter
 
- 
writePlusPlusprotected void writePlusPlus(org.objectweb.asm.MethodVisitor mv) - Specified by:
- writePlusPlusin class- BinaryExpressionWriter
 
- 
getDevisionOpResultType- Specified by:
- getDevisionOpResultTypein class- BinaryExpressionWriter
 
- 
supportsDivisionprotected boolean supportsDivision()- Overrides:
- supportsDivisionin class- BinaryExpressionWriter
 
 
-