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 |
---|---|---|
|
public boolean |
arrayGet(int operation, boolean simulate) |
|
public boolean |
arraySet(boolean simulate) |
|
protected abstract void |
doubleTwoOperands(org.objectweb.asm.MethodVisitor mv) |
|
protected MethodCaller |
getArrayGetCaller() |
|
protected ClassNode |
getArrayGetResultType() |
|
protected MethodCaller |
getArraySetCaller() |
|
protected abstract int |
getBitwiseOperationBytecode(int type) |
|
protected abstract int |
getCompareCode() |
|
public WriterController |
getController() return writer controller |
|
protected abstract ClassNode |
getDevisionOpResultType() |
|
protected abstract ClassNode |
getNormalOpResultType() |
|
protected abstract int |
getShiftOperationBytecode(int type) |
|
protected abstract int |
getStandardOperationBytecode(int type) |
|
protected abstract void |
removeTwoOperands(org.objectweb.asm.MethodVisitor mv) |
|
public void |
setArraySetAndGet(MethodCaller arraySet, MethodCaller arrayGet) |
|
protected boolean |
supportsDivision() |
|
public 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 abstract void |
writeMinusMinus(org.objectweb.asm.MethodVisitor mv) |
|
protected abstract void |
writePlusPlus(org.objectweb.asm.MethodVisitor mv) |
|
public 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-2021 The Apache Software Foundation. All rights reserved.