Package cppclassanalyzer.data.manager
Class LibraryClassTypeInfoManager
java.lang.Object
cppclassanalyzer.data.manager.LibraryClassTypeInfoManager
- All Implemented Interfaces:
ClassTypeInfoManager,ErrorHandler
public final class LibraryClassTypeInfoManager extends Object implements ClassTypeInfoManager
A ClassTypeInfoManager representing an external library
-
Field Summary
Fields inherited from interface cppclassanalyzer.data.ClassTypeInfoManager
INVALID_KEY -
Method Summary
Modifier and Type Method Description voiddbError(IOException e)IcongetIcon(boolean expanded)Gets the icon for this manager to be used in theTypeInfoArchiveGTreeStringgetName()Gets the name of this managerProjectClassTypeInfoManagergetProjectManager()Gets the project manager containing this libraryTypeInfoTreeNodeManagergetTreeNodeManager()Gets theTypeInfoTreeNodeManagerfor this ClassTypeInfoManagerArchivedClassTypeInfogetType(long key)Gets the ClassTypeInfo for the corresponding database keyArchivedClassTypeInfogetType(Function fun)Gets the ClassTypeInfo for the correspondingFunctionArchivedClassTypeInfogetType(GhidraClass gc)Gets the ClassTypeInfo for the correspondingGhidraClassArchivedClassTypeInfogetType(String symbolName)Gets the ClassTypeInfo with the specified symbol.ArchivedClassTypeInfogetType(String name, Namespace namespace)Gets the ClassTypeInfo with the specified name andNamespaceintgetTypeCount()Gets the number of managed ClassTypeInfosIterable<ClassTypeInfoDB>getTypes()Gets an iterable over all the managed ClassTypeInfosStream<ClassTypeInfoDB>getTypeStream()Gets a stream of all the managed ClassTypeInfosvoidrename(String name)Renames this libraryArchivedClassTypeInforesolve(ClassTypeInfo type)Returns a ClassTypeInfo that is managed by this ClassTypeInfoManager.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cppclassanalyzer.data.ClassTypeInfoManager
addListener, removeListener
-
Method Details
-
getName
Description copied from interface:ClassTypeInfoManagerGets the name of this manager- Specified by:
getNamein interfaceClassTypeInfoManager- Returns:
- the managers name
-
resolve
Description copied from interface:ClassTypeInfoManagerReturns a ClassTypeInfo that is managed by this ClassTypeInfoManager. If one does not currently exist a new one is created.- Specified by:
resolvein interfaceClassTypeInfoManager- Parameters:
type- the type to resolve- Returns:
- the equivalent type managed by this ClassTypeInfoManager
-
getType
Description copied from interface:ClassTypeInfoManagerGets the ClassTypeInfo for the correspondingGhidraClass- Specified by:
getTypein interfaceClassTypeInfoManager- Parameters:
gc- the GhidraClass- Returns:
- the ClassTypeInfo or null if it doesn't exist
-
getType
Description copied from interface:ClassTypeInfoManagerGets the ClassTypeInfo for the correspondingFunction- Specified by:
getTypein interfaceClassTypeInfoManager- Parameters:
fun- the function- Returns:
- the ClassTypeInfo or null if it doesn't exist
-
getType
Description copied from interface:ClassTypeInfoManagerGets the ClassTypeInfo with the specified name andNamespace- Specified by:
getTypein interfaceClassTypeInfoManager- Parameters:
name- the type's namenamespace- the type's namespace- Returns:
- the ClassTypeInfo or null if it doesn't exist
-
getType
Description copied from interface:ClassTypeInfoManagerGets the ClassTypeInfo with the specified symbol. The supplied symbol should be mangled.- Specified by:
getTypein interfaceClassTypeInfoManager- Parameters:
symbolName- the mangled symbol name- Returns:
- the ClassTypeInfo or null if it doesn't exist
-
getTypes
Description copied from interface:ClassTypeInfoManagerGets an iterable over all the managed ClassTypeInfos- Specified by:
getTypesin interfaceClassTypeInfoManager- Returns:
- an iterable over all the managed ClassTypeInfos
-
getTypeStream
Description copied from interface:ClassTypeInfoManagerGets a stream of all the managed ClassTypeInfos- Specified by:
getTypeStreamin interfaceClassTypeInfoManager- Returns:
- a stream of all the managed ClassTypeInfos
-
getTypeCount
public int getTypeCount()Description copied from interface:ClassTypeInfoManagerGets the number of managed ClassTypeInfos- Specified by:
getTypeCountin interfaceClassTypeInfoManager- Returns:
- the number of managed ClassTypeInfos
-
getIcon
Description copied from interface:ClassTypeInfoManagerGets the icon for this manager to be used in theTypeInfoArchiveGTree- Specified by:
getIconin interfaceClassTypeInfoManager- Parameters:
expanded- true if the manager tree node is expanded- Returns:
- the icon to be used in the tree
-
getTreeNodeManager
Description copied from interface:ClassTypeInfoManagerGets theTypeInfoTreeNodeManagerfor this ClassTypeInfoManager- Specified by:
getTreeNodeManagerin interfaceClassTypeInfoManager- Returns:
- this manager's TypeInfoTreeNodeManager
-
getType
Description copied from interface:ClassTypeInfoManagerGets the ClassTypeInfo for the corresponding database key- Specified by:
getTypein interfaceClassTypeInfoManager- Parameters:
key- the database key- Returns:
- the ClassTypeInfo or null if it doesn't exist
-
getProjectManager
Gets the project manager containing this library- Returns:
- the project manager
-
dbError
- Specified by:
dbErrorin interfaceErrorHandler
-
rename
Renames this library- Parameters:
name- the new library name- Throws:
InvalidNameException- if the new name is invalidDuplicateNameException- if a library with this name already exists in the project manager.
-
toString
-