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 void
getAllHandles(java.util.ArrayList<Handle> handles, Position position, int off)
Handle
getHandle(Position position, int off)
Handle
getHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off)
Method getHandle.ConstructorInfo
getInfo(MemBuffer buf, int off)
int
getSize()
Get the size in bits of the value used in the instruction to create this value.int
length(MemBuffer buf, int off)
void
linkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash)
Method linkRelativeOffsets.long
longValue(MemBuffer buf, int off)
void
setSpace(AddressSpace space)
void
toList(java.util.ArrayList<Handle> list, Position position, int off)
Construct operand representation as a list of objectsjava.lang.String
toString(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:
length
in interfaceExpressionValue
- Specified by:
length
in interfaceOperandValue
- Throws:
java.lang.Exception
-
getInfo
public ConstructorInfo getInfo(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
getInfo
in interfaceOperandValue
- Throws:
java.lang.Exception
-
longValue
public long longValue(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
longValue
in interfaceExpressionValue
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString(MemBuffer buf, int off) throws java.lang.Exception
- Specified by:
toString
in 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:
getHandle
in 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:OperandValue
Method getHandle.- Specified by:
getHandle
in 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:
getAllHandles
in 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:OperandValue
Construct operand representation as a list of objects- Specified by:
toList
in interfaceOperandValue
- Parameters:
list
- the list to fillposition
- the operand positionoff
- the offset- Throws:
java.lang.Exception
-
getSize
public int getSize()
Description copied from interface:OperandValue
Get the size in bits of the value used in the instruction to create this value.- Specified by:
getSize
in interfaceOperandValue
-
-