Package cppclassanalyzer.utils
Class CppClassAnalyzerUtils
java.lang.Object
cppclassanalyzer.utils.CppClassAnalyzerUtils
public final class CppClassAnalyzerUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringCONSTRUCTORstatic StringDESTRUCTORstatic StringDESTRUCTOR_CHAR -
Method Summary
Modifier and Type Method Description static FunctioncreateThunkFunctions(Function function)Recursively creates thunked functions starting a the following potential thunked function.static List<MemoryBlock>getAllDataBlocks(Program program)Gets all MemoryBlocks in a Program which hold non-volatile datastatic ProgramClassTypeInfoManagergetManager(Program program)Gets the ClassTypeInfoManager for the specified programstatic ClassTypeInfoManagerServicegetService(Program program)static PluginToolgetTool(DomainObject obj)Gets the first PluginTool which has the provided domain object openedstatic booleanisAbstract(ClassTypeInfo type, String pureVirtualFunctionName)static booleanisDataBlock(MemoryBlock block)Returns true if this MemoryBlock has non-volatile datastatic booleanisDefaultFunction(Function function)Checks if the function is a default functionstatic booleanisDestructor(Function function)Checks if the function is a destructorstatic voidsetConstructorDestructorTag(Function function, boolean isConstructor)Sets the Constructor/Destructor tags for the function
-
Field Details
-
CONSTRUCTOR
- See Also:
- Constant Field Values
-
DESTRUCTOR
- See Also:
- Constant Field Values
-
DESTRUCTOR_CHAR
- See Also:
- Constant Field Values
-
-
Method Details
-
getTool
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
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
Checks if the function is a destructor- Parameters:
function- the function to check- Returns:
- true if the function is a desructor
-
setConstructorDestructorTag
Sets the Constructor/Destructor tags for the function- Parameters:
function- the functionisConstructor- true if the function is a constructor
-
createThunkFunctions
Recursively creates thunked functions starting a the following potential thunked function.- Parameters:
function- the potential thunked function- Returns:
- the thunked-to function
-
getService
-
getManager
Gets the ClassTypeInfoManager for the specified program- Parameters:
program- the program- Returns:
- the program's ClassTypeInfoManager
-
getAllDataBlocks
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
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
-