Class CppClassAnalyzerUtils

java.lang.Object
cppclassanalyzer.utils.CppClassAnalyzerUtils

public final class CppClassAnalyzerUtils
extends Object
  • Field Details

  • Method Details

    • getTool

      public static PluginTool getTool​(DomainObject obj)
      Gets the first PluginTool which has the provided domain object opened
      Parameters:
      obj - the domain object
      Returns:
      the first found PluginTool or null if none found
    • isDefaultFunction

      public static boolean isDefaultFunction​(Function function)
      Checks if the function is a default function
      Parameters:
      function - the function to check
      Returns:
      true if the function is a default function or if it is null
    • isDestructor

      public static boolean isDestructor​(Function function)
      Checks if the function is a destructor
      Parameters:
      function - the function to check
      Returns:
      true if the function is a desructor
    • setConstructorDestructorTag

      public static void setConstructorDestructorTag​(Function function, boolean isConstructor)
      Sets the Constructor/Destructor tags for the function
      Parameters:
      function - the function
      isConstructor - true if the function is a constructor
    • createThunkFunctions

      public static Function createThunkFunctions​(Function function)
      Recursively creates thunked functions starting a the following potential thunked function.
      Parameters:
      function - the potential thunked function
      Returns:
      the thunked-to function
    • getService

      public static ClassTypeInfoManagerService getService​(Program program)
    • getManager

      public static ProgramClassTypeInfoManager getManager​(Program program)
      Gets the ClassTypeInfoManager for the specified program
      Parameters:
      program - the program
      Returns:
      the program's ClassTypeInfoManager
    • getAllDataBlocks

      public static List<MemoryBlock> getAllDataBlocks​(Program program)
      Gets all MemoryBlocks in a Program which hold non-volatile data
      Parameters:
      program - the program to be searched
      Returns:
      A list of all memory blocks whose name contains "data" with non-volatile data
    • isDataBlock

      public static boolean isDataBlock​(MemoryBlock block)
      Returns true if this MemoryBlock has non-volatile data
      Parameters:
      block - the memory block to test
      Returns:
      true if this MemoryBlock has non-volatile data
    • isAbstract

      public static boolean isAbstract​(ClassTypeInfo type, String pureVirtualFunctionName)