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 Summary
Constructors Constructor Description BinaryExpression(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c)
-
Method Summary
All 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_OP
public static final int INVALID_OP
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
SUB
public static final int SUB
- See Also:
- Constant Field Values
-
MUL
public static final int MUL
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c) throws SledException- Throws:
SledException
-
-
Method Detail
-
setSpace
public void setSpace(AddressSpace space)
-
length
public int length(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
lengthin interfaceExpressionValue- Specified by:
lengthin interfaceOperandValue- Throws:
java.lang.Exception
-
getInfo
public ConstructorInfo getInfo(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
getInfoin interfaceOperandValue- Throws:
java.lang.Exception
-
longValue
public long longValue(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
longValuein interfaceExpressionValue- Throws:
java.lang.Exception
-
toString
public java.lang.String toString(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
toStringin interfaceOperandValue- Throws:
java.lang.Exception
-
linkRelativeOffsets
public void linkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash)
Method linkRelativeOffsets.- Parameters:
opHash-
-
getHandle
public Handle getHandle(Position position, int off) throws java.lang.Exception
- Specified by:
getHandlein interfaceOperandValue- Returns:
- Handle
- Throws:
java.lang.Exception
-
getHandle
public Handle getHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off) throws java.lang.Exception
Description copied from interface:OperandValueMethod getHandle.- Specified by:
getHandlein interfaceOperandValue- Returns:
- Handle
- Throws:
java.lang.Exception
-
getAllHandles
public void getAllHandles(java.util.ArrayList<Handle> handles, Position position, int off) throws java.lang.Exception
- Specified by:
getAllHandlesin interfaceOperandValue- Throws:
java.lang.Exception
-
toList
public 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 interfaceOperandValue- Parameters:
list- the list to fillposition- the operand positionoff- the offset- Throws:
java.lang.Exception
-
getSize
public 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 interfaceOperandValue
-
-