Package ghidra.program.model.symbol
Class DataRefType
- java.lang.Object
-
- ghidra.program.model.symbol.RefType
-
- ghidra.program.model.symbol.DataRefType
-
public final class DataRefType extends RefType
Class to define reference types for data.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
INDX
protected static int
READX
protected static int
WRITEX
-
Fields inherited from class ghidra.program.model.symbol.RefType
CALL_OVERRIDE_UNCONDITIONAL, CALL_TERMINATOR, CALLOTHER_OVERRIDE_CALL, CALLOTHER_OVERRIDE_JUMP, COMPUTED_CALL, COMPUTED_CALL_TERMINATOR, COMPUTED_JUMP, CONDITIONAL_CALL, CONDITIONAL_CALL_TERMINATOR, CONDITIONAL_COMPUTED_CALL, CONDITIONAL_COMPUTED_JUMP, CONDITIONAL_JUMP, CONDITIONAL_TERMINATOR, DATA, DATA_IND, EXTERNAL_REF, FALL_THROUGH, FLOW, INDIRECTION, INVALID, JUMP_OVERRIDE_UNCONDITIONAL, JUMP_TERMINATOR, PARAM, READ, READ_IND, READ_WRITE, READ_WRITE_IND, TERMINATOR, THUNK, UNCONDITIONAL_CALL, UNCONDITIONAL_JUMP, WRITE, WRITE_IND
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataRefType(byte type, java.lang.String name, int access)
Constructs a DataRefType with the given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isData()
Returns true if the reference is to databoolean
isIndirect()
Returns true if the reference is indirectboolean
isRead()
Returns true if the reference is a readboolean
isWrite()
Returns true if the reference is a write-
Methods inherited from class ghidra.program.model.symbol.RefType
equals, getName, getValue, hasFallthrough, hashCode, isCall, isComputed, isConditional, isFallthrough, isFlow, isJump, isOverride, isTerminal, isUnConditional, toString
-
-
-
-
Field Detail
-
READX
protected static final int READX
- See Also:
- Constant Field Values
-
WRITEX
protected static final int WRITEX
- See Also:
- Constant Field Values
-
INDX
protected static final int INDX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isData
public boolean isData()
Description copied from class:RefType
Returns true if the reference is to data
-
isRead
public boolean isRead()
Description copied from class:RefType
Returns true if the reference is a read
-
isWrite
public boolean isWrite()
Description copied from class:RefType
Returns true if the reference is a write
-
isIndirect
public boolean isIndirect()
Description copied from class:RefType
Returns true if the reference is indirect- Overrides:
isIndirect
in classRefType
- Returns:
- true if the reference is indirect
-
-