Package ghidra.program.model.symbol

# Interface ShiftedReference

All Superinterfaces:
  `Comparable<Reference>`, `Reference`

public interface ShiftedReference extends Reference
`ShiftedReference` is a memory reference whose "to" address is computed from a base value left shifted by a shift amount.

- ## Field Summary

  ### Fields inherited from interface ghidra.program.model.symbol.Reference

  `MNEMONIC, OTHER`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getShift()`
  Returns the left shift amount.
  `long`
  `getValue()`
  Returns the base value.

  ### Methods inherited from interface java.lang.Comparable

  `compareTo`

  ### Methods inherited from interface ghidra.program.model.symbol.Reference

  `getFromAddress, getOperandIndex, getReferenceType, getSource, getSymbolID, getToAddress, isEntryPointReference, isExternalReference, isMemoryReference, isMnemonicReference, isOffsetReference, isOperandReference, isPrimary, isRegisterReference, isShiftedReference, isStackReference`

- ## Method Details

  - ### getShift

    int getShift()
    Returns the left shift amount.
    Returns:
      the shift

  - ### getValue

    long getValue()
    Returns the base value.
    Returns:
      the value