Class BinaryExpression
- java.lang.Object
- 
- ghidra.app.plugin.processors.generic.BinaryExpression
 
- 
- All Implemented Interfaces:
- ExpressionValue,- OperandValue,- java.io.Serializable
 
 public class BinaryExpression extends java.lang.Object implements OperandValue, ExpressionValue - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BinaryExpression(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAllHandles(java.util.ArrayList<Handle> handles, Position position, int off)HandlegetHandle(Position position, int off)HandlegetHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off)Method getHandle.ConstructorInfogetInfo(MemBuffer buf, int off)intgetSize()Get the size in bits of the value used in the instruction to create this value.intlength(MemBuffer buf, int off)voidlinkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash)Method linkRelativeOffsets.longlongValue(MemBuffer buf, int off)voidsetSpace(AddressSpace space)voidtoList(java.util.ArrayList<Handle> list, Position position, int off)Construct operand representation as a list of objectsjava.lang.StringtoString(MemBuffer buf, int off)
 
- 
- 
- 
Field Detail- 
INVALID_OPpublic static final int INVALID_OP - See Also:
- Constant Field Values
 
 - 
ADDpublic static final int ADD - See Also:
- Constant Field Values
 
 - 
SUBpublic static final int SUB - See Also:
- Constant Field Values
 
 - 
MULpublic static final int MUL - See Also:
- Constant Field Values
 
 - 
DIVpublic static final int DIV - See Also:
- Constant Field Values
 
 - 
EQpublic static final int EQ - See Also:
- Constant Field Values
 
 - 
ANDpublic static final int AND - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
BinaryExpressionpublic BinaryExpression(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c) throws SledException- Throws:
- SledException
 
 
- 
 - 
Method Detail- 
setSpacepublic void setSpace(AddressSpace space) 
 - 
lengthpublic int length(MemBuffer buf, int off) throws java.lang.Exception - Specified by:
- lengthin interface- ExpressionValue
- Specified by:
- lengthin interface- OperandValue
- Throws:
- java.lang.Exception
 
 - 
getInfopublic ConstructorInfo getInfo(MemBuffer buf, int off) throws java.lang.Exception - Specified by:
- getInfoin interface- OperandValue
- Throws:
- java.lang.Exception
 
 - 
longValuepublic long longValue(MemBuffer buf, int off) throws java.lang.Exception - Specified by:
- longValuein interface- ExpressionValue
- Throws:
- java.lang.Exception
 
 - 
toStringpublic java.lang.String toString(MemBuffer buf, int off) throws java.lang.Exception - Specified by:
- toStringin interface- OperandValue
- Throws:
- java.lang.Exception
 
 - 
linkRelativeOffsetspublic void linkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash) Method linkRelativeOffsets.- Parameters:
- opHash-
 
 - 
getHandlepublic Handle getHandle(Position position, int off) throws java.lang.Exception - Specified by:
- getHandlein interface- OperandValue
- Returns:
- Handle
- Throws:
- java.lang.Exception
 
 - 
getHandlepublic Handle getHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off) throws java.lang.Exception Description copied from interface:OperandValueMethod getHandle.- Specified by:
- getHandlein interface- OperandValue
- Returns:
- Handle
- Throws:
- java.lang.Exception
 
 - 
getAllHandlespublic void getAllHandles(java.util.ArrayList<Handle> handles, Position position, int off) throws java.lang.Exception - Specified by:
- getAllHandlesin interface- OperandValue
- Throws:
- java.lang.Exception
 
 - 
toListpublic void toList(java.util.ArrayList<Handle> list, Position position, int off) throws java.lang.Exception Description copied from interface:OperandValueConstruct operand representation as a list of objects- Specified by:
- toListin interface- OperandValue
- Throws:
- java.lang.Exception
 
 - 
getSizepublic int getSize() Description copied from interface:OperandValueGet the size in bits of the value used in the instruction to create this value.- Specified by:
- getSizein interface- OperandValue
 
 
- 
 
-