Package ghidra.program.util
Class EquateInfo
- java.lang.Object
-
- ghidra.program.util.EquateInfo
-
public class EquateInfo extends java.lang.ObjectClass 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
Constructors Constructor Description EquateInfo(java.lang.String name, long value, Address refAddr, int opIndex, long dynamicHash)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDynamicHash()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.java.lang.StringgetName()Get the equate name.intgetOperandIndex()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.AddressgetReferenceAddress()Get the reference address.longgetValue()Get the equate value.java.lang.StringtoString()Return a meaningful string for debugging purposes.
-
-
-
Constructor Detail
-
EquateInfo
public EquateInfo(java.lang.String name, long value, Address refAddr, int opIndex, long dynamicHash)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 Detail
-
getName
public java.lang.String getName()
Get the equate name.
-
getValue
public long getValue()
Get the equate value.
-
getReferenceAddress
public Address 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
public java.lang.String toString()
Return a meaningful string for debugging purposes.- Overrides:
toStringin classjava.lang.Object
-
-