Class BinaryExpression
java.lang.Object
ghidra.app.plugin.processors.generic.BinaryExpression
- All Implemented Interfaces:
ExpressionValue
,OperandValue
,Serializable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBinaryExpression
(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAllHandles
(ArrayList<Handle> handles, Position position, int off) Method getHandle.int
getSize()
Get the size in bits of the value used in the instruction to create this value.int
void
linkRelativeOffsets
(Hashtable<String, Operand> opHash) Method linkRelativeOffsets.long
void
setSpace
(AddressSpace space) void
Construct operand representation as a list of objects
-
Field Details
-
INVALID_OP
public static final int INVALID_OP- See Also:
-
ADD
public static final int ADD- See Also:
-
SUB
public static final int SUB- See Also:
-
MUL
public static final int MUL- See Also:
-
DIV
public static final int DIV- See Also:
-
EQ
public static final int EQ- See Also:
-
AND
public static final int AND- See Also:
-
-
Constructor Details
-
BinaryExpression
public BinaryExpression(int op, ExpressionTerm l, ExpressionTerm r, AddressSpace c) throws SledException - Throws:
SledException
-
-
Method Details
-
setSpace
-
length
- Specified by:
length
in interfaceExpressionValue
- Specified by:
length
in interfaceOperandValue
- Throws:
Exception
-
getInfo
- Specified by:
getInfo
in interfaceOperandValue
- Throws:
Exception
-
longValue
- Specified by:
longValue
in interfaceExpressionValue
- Throws:
Exception
-
toString
- Specified by:
toString
in interfaceOperandValue
- Throws:
Exception
-
linkRelativeOffsets
Method linkRelativeOffsets.- Parameters:
opHash
-
-
getHandle
- Specified by:
getHandle
in interfaceOperandValue
- Parameters:
position
-off
-- Returns:
- Handle
- Throws:
Exception
-
getHandle
Description copied from interface:OperandValue
Method getHandle.- Specified by:
getHandle
in interfaceOperandValue
- Parameters:
pcode
-position
-off
-- Returns:
- Handle
- Throws:
Exception
-
getAllHandles
- Specified by:
getAllHandles
in interfaceOperandValue
- Throws:
Exception
-
toList
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:
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
-