Class NamespaceCache

java.lang.Object
ghidra.app.util.NamespaceCache

public class NamespaceCache extends Object
Static class for remember the last few namespaces used for a program.
  • Field Details

  • Constructor Details

    • NamespaceCache

      public NamespaceCache()
  • Method Details

    • get

      public static List<Namespace> get(Program program)
      Returns the list of recently used namespaces for the given program.
      Parameters:
      program - the program to get namespaces for
      Returns:
      the list of recently used namespaces for the given program
    • add

      public static void add(Program program, Namespace namespace)
      Adds a recently used namespace for a program.
      Parameters:
      program - the program to add a recently namespace
      namespace - the recently used namespace to remember