Package ghidra.program.util
Class EquateInfo
java.lang.Object
ghidra.program.util.EquateInfo
Class to hold information about an Equate; it is used
in a ProgramChangeRecord when an equate is created and
when references to the Equate are updated.
-
Constructor Summary
ConstructorDescriptionEquateInfo
(String name, long value, Address refAddr, int opIndex, long dynamicHash) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the varnode dynamic hash of where the equate was placed; This value is meaningful only if the reference address is not null, and may be 0 if only the operand index applies.getName()
Get the equate name.int
Get the operand index of where the equate was placed; This value is meaningful only if the reference address is not null, and may be -1 if only the dynamicHash applies.Get the reference address.long
getValue()
Get the equate value.toString()
Return a meaningful string for debugging purposes.
-
Constructor Details
-
EquateInfo
Constructor.- Parameters:
name
- Equate namevalue
- Equate valuerefAddr
- Reference address (may be null for some event types)opIndex
- operand index for the reference; useful only if refAddr is not null. May be -1 if only dynamicHash applies.dynamicHash
- dynamic hash. May be 0 if only opIndex applies.
-
-
Method Details
-
getName
Get the equate name. -
getValue
public long getValue()Get the equate value. -
getReferenceAddress
Get the reference address. -
getOperandIndex
public int getOperandIndex()Get the operand index of where the equate was placed; This value is meaningful only if the reference address is not null, and may be -1 if only the dynamicHash applies. -
getDynamicHash
public long getDynamicHash()Get the varnode dynamic hash of where the equate was placed; This value is meaningful only if the reference address is not null, and may be 0 if only the operand index applies. -
toString
Return a meaningful string for debugging purposes.
-