Package ghidra.program.model.correlate

# Class DisambiguateByParent

java.lang.Object
ghidra.program.model.correlate.DisambiguateByParent

All Implemented Interfaces:
  `DisambiguateStrategy`

public class DisambiguateByParent extends Object implements DisambiguateStrategy
Attempt to disambiguate similar n-grams by looking at the parents of blocks containing the n-grams

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DisambiguateByParent()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ArrayList<Hash>`
  `calcHashes(InstructHash instHash, int matchSize, HashStore store)`
  Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DisambiguateByParent

    public DisambiguateByParent()

- ## Method Details

  - ### calcHashes

    public ArrayList<Hash> calcHashes(InstructHash instHash, int matchSize, HashStore store) throws CancelledException
    Description copied from interface: `DisambiguateStrategy`
    Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions. Hashes are attached to the block's disambigHash list.
    Specified by:
      `calcHashes` in interface `DisambiguateStrategy`
    Parameters:
      `instHash` - the instruction hash
      `matchSize` - the number of instructions to match
      `store` - is the HashStore used to store the disambiguating hashes
    Returns:
      the list of disambiguating hashes
    Throws:
      `CancelledException`