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 String
CONSTRUCTOR
static String
DESTRUCTOR
static String
DESTRUCTOR_CHAR
-
Method Summary
Modifier and Type Method Description static Function
createThunkFunctions(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 ProgramClassTypeInfoManager
getManager(Program program)
Gets the ClassTypeInfoManager for the specified programstatic ClassTypeInfoManagerService
getService(Program program)
static PluginTool
getTool(DomainObject obj)
Gets the first PluginTool which has the provided domain object openedstatic boolean
isAbstract(ClassTypeInfo type, String pureVirtualFunctionName)
static boolean
isDataBlock(MemoryBlock block)
Returns true if this MemoryBlock has non-volatile datastatic boolean
isDefaultFunction(Function function)
Checks if the function is a default functionstatic boolean
isDestructor(Function function)
Checks if the function is a destructorstatic void
setConstructorDestructorTag(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
-