Interface ICodeHierarchy


public interface ICodeHierarchy
Get a tree representing the code hierarchy of a code unit.
  • Method Summary

    Modifier and Type
    Method
    Description
    default ICodeNode
    findNode(String address)
    Retrieve the node at the provided address.
    findNode(String address, boolean bestEffort)
    Retrieve the node that best matches the provided address.
    Retrieve the root code node.
  • Method Details

    • getRoot

      ICodeNode getRoot()
      Retrieve the root code node.

      Note: Code nodes should not to be confused with code objects.

      Returns:
      the code node root, generally a package (namespace)
    • findNode

      default ICodeNode findNode(String address)
      Retrieve the node at the provided address.
      Parameters:
      address - code node address
      Returns:
      a node or null
    • findNode

      ICodeNode findNode(String address, boolean bestEffort)
      Retrieve the node that best matches the provided address.
      Parameters:
      address - code node address
      bestEffort - if true, will attempt to resolve to the nearest or most appropriate node if the address is not the exact one of a node
      Returns:
      a node or null